Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 02-08-2010, 08:20 PM   #2 (permalink)
Mr Jack
Maker of Games
 
Mr Jack's Avatar
 
Join Date: Nov 2009
Location: Coventry, UK
Posts: 395
Default

Yes, it is possible, although it's not entirely easy. Most app footage is actually recorded from the simulator, rather than the device itself.

However, I did it for Alien Swing by using glReadPixels to store frames saving it to the documents, transferring the data to the Mac and then using OpenCV to convert the stills into video.

Although, actually it's a bit more complicated than that because glReadPixels is slow, and you rack up a lot of data quite quickly so if you're at all tight on memory you'll need to write to disk frequently which slows things down making it hard to play. Now, with Alien Swing I'm fortunate in that most of the screen doesn't change, so I could store which parts were changing and only capture these parts keeping the storage requirements down to sensible levels and mean I could keep running at 60fps with only the occasional slowdowns when it has to write out to disk while recording at 20 fps.

You can see some resulting footage here (cut together with iMovie) and here - obviously this method doesn't record sound so I had to patch that in afterwards, although I suspect it could be automated with a little more work.

I posted about this on my blog as well.

Now, if you wanted to do it on the device, you'd have to do the coding on the device and I don't know of any good libraries to do that so you might have to write your own. Otherwise I suppose you could upload data to a server and have the server process and pass it on to YouTube - although that would add server costs.
__________________


Visit Mr Jack Games for my blog and more about my games

Last edited by Mr Jack; 02-09-2010 at 12:31 PM. Reason: grammar fail
Mr Jack is offline   Reply With Quote
 

» Advertisements
» Online Users: 797
26 members and 771 guests
acegames, ADY, aslyworo, ckgni, dabvid, GFish, GHuebner, ghz.rai, Graham, ilmman, iph_s, joeallenpro, john love, keeshux, kusreekumar, marcelglaeser, MarkC, marto1914, Ndpiparava, nfung, Pandafox, RoryHarvey, tomtom100, VikMyr, waq963
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,869
Threads: 89,225
Posts: 380,693
Top Poster: BrianSlick (7,129)
Welcome to our newest member, aslyworo
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 06:37 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.