Delta Engine Blog

All about multiplatform and game development

Capture the iPhone screen as a video

As the PilotTest video now is done, d like to tell you what I did, to capture the screen of the iPhone. (Without using an extern camera, of course)
In general: when I say "iPhone" in this post, I mean "iPhone or iPod touch, both at firmware 3.0 or higher". (Sorry but I'm lazy and this will be a lot of text anyway)
Because it's needed for this method, at the end of this post I will give some information for those, who are not familiar with the jailbreak and installing apps.

Let's start with the equipment you will need:
  • A jailbroken iPhone
  • The Apple Composite AV-Cable
  • A Video-Grabbing-Card
  • An Application called ScreenSplitr
  • Video-Grabbing software
Unfortunately it seems you need a jailbroken iPhone, as far as the App we will use is not published in the App-Store. Hence I have the source code of this Application (it's open source), maybe one of the developers can build a version from it, we can use without a jailbreak.
I know, buying an original Apple AV cable is annoying, but with the iPhone OS 3.0 Apple has blocked most third party cables on the devices, it has to be the original.
The device for grabbing the signal to your computer can be whatever you like, while it has a Composite-Plug and if you want to have some sound, additionally two cinch-audio-plugs.
I have used this one for example...

Now for the Application: ScreenSplitr is an Open Source project, which uses the screenshot ability, that came with iPhone OS 3.0, to give a video output to the AV-Cable (yepp, audio too). While the actual release uses a very low frame-rate, I have altered the software to give a better framerate. (I will attach 2 versions, one for NTSC output and one for PAL output) Decide for a signal-encoding standard and install the corresponding application on your iPhone. Also make sure your iPhone's settings (Settings->Video->TV-Signal) match this.

Now connect the iPhone to the AV-cable, the AV-Cable to your Grabber and the Grabber to your computer (the order should not matter). It's time to open your Video-Grabbing software. (I can recommend Virtual VCR to windows users) Most programs offer a preview, so you can see if ScreenSplitr is started properly. And again: make sure the video-grabber is set to the same video-encoding settings.
Next you can start ScreenSplitr. ScreenSplitr checks the orientation of your iPhone when it's started. If you want to capture a game, that uses the landscape orientation, turn your iPhone before you start ScreenSplitr.
After starting ScreenSplitr, will close immediately, but on the thumbnail on your home-screen, it now shows a small "on" sign on its thumbnail. (ScreenSplittr now runs in background, "open" it again to stop it)
Now everything your iPhone's display shows is copied to the AV-output. You can start recording in your grabbing-software now.

When you’re done with your recording, you should first stop your grabbing-software and then close ScreenSplitr, since for the grabber stopping ScreenSplitr feels like pulling the cable, and some grabbers react badly to this.

Small summary:
So far I did not talk about the outcome of using a composite cable. In general using a composite connection is not the very best idea, since all color-information of our picture (R,G,B) is send in only one signal. This is of course reducing the pictures quality like nothing else. But why do we use this? Don't we have an alternate? There is an alternate, but as any good alternate it's more expencive. Instead of using the Apple-Composite-AV-Cable you can use the Apple-Component-AV-Cable, which provides a loseless connection. The problem is, tha capture devices that provide a component input are a lot more expensive than composite devices. (A quick look at google-shopping results ~25 € for a composite and ~ 160 € for a component capturer)

More information...
The Jailbreak
To jailbreak an iPhone, for me the easiest way is the blackra1n jailbreak, found here.
Once you have jailbroken the iPhone, you have a blackrain App on your iPhone’s screen, with that you can install one of the “underground AppStores” Cydia or Rock. Both are equal to the AppStore-App, but they use another repository instead, which is not under Apples control.

Get ready to install own apps
To install selfmade applications, you will first have to install an OpenSSH server via Cydia or Rock. After installing this you can access your iPhone via SSH. Just like everybody else, including some viruses looking for jailbroken iPhones still using the initial password.
So let’s change this: (Windows-users have to download a client like Putty, everybody else opens a terminal.) Your iPhone’s IP can be seen in “Settings->WiFi->(your networks name)” on the iPhone. Connect as root to your iPhone, e.g. “ssh root@192.168.1.1”. The initial root-password for the iPhones with firmware 3.0 is “alpine”. After this change the password with the command “passwd”, enter the new password in the next line and press return.

Install ScreenSplitr
The files are copied to the iPhone by using SCP(Windows: e.g. FileZilla using Port 22). Copy the .app to the “/Application” folder on the iPhone, e.g. “scp –r ./ScreenSplitr.app root@192.168.1.1:/Applications/ScreenSplitr.app”.
Make sure all files in the folder "ScreenSplitr[_25].app" have the permission to be executed. (to make sure, just execute "chmod 755 *" in the folder.
After this you need to restart your iPhone, so the app will be listed on the home-screen.
Attached to this post is file called “restart”, copy this to “/usr/bin/” on the iPhone. Now you can execute “ssh root@192.168.1.1 'restart'” to restart the iPhone.

ScreenSplitr_NTSC.zip - 30 Hz version (465.95 kb)

ScreenSplitr_PAL.zip - 25 Hz version(466.44 kb)

restart (8.88 kb)

Comments (38) -

  • monitor stands

    1/5/2010 8:20:24 AM |

    Why does my ASP.NET application work on my local machine but not when I upload it to the server?

  • Festgeldkonten

    1/14/2010 7:33:33 AM |

    Hi,
    tutorials for capturing the Iphone screen I'm already looking for a while. Is there any possibility for a non jailbroken Iphone?

  • Interview Scheduling

    1/14/2010 9:11:24 AM |

    Resource Datamine makes your Interview Scheduling and Passive Candidates Search easy. The advanced features of Resource Datamine helps you to make interview scheduling and search of passive candidates fast and efficient. Visit us to know more about Interview Scheduling of Passive Candidates.

  • Seo Services India

    1/14/2010 9:12:38 AM |

    NetEdge resolves Internet marketing SEO services in India and globally which in simpler terms means Search Engine Optimization, getting TOP positions for words or phrases which people might search for in search engines. We have been in Internet Marketing Industry for over 15 + years.

  • dating websites

    1/19/2010 9:37:36 AM |

    Why didn’t I find this post earlier? Keep up the good work!

  • SEO

    1/21/2010 11:01:50 AM |

    Starting to understand a bit more now... Thanks for keeping it simple!

  • UK broadband

    1/25/2010 7:24:30 AM |

    ScreenSplitr is a new application developed from Cydia which helps us to display our iPhone screen on TV or PC while we are using the iPhone. New and interesting application to work with.

  • antivirus firewall

    2/2/2010 5:22:14 PM |

    Starting to understand a bit more now... Thanks for keeping it simple!

  • Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative. I can’t wait to read lots of your posts.

  • Tammo

    2/5/2010 9:09:12 AM |

    Can´t get your version to work. I tried to capture some material from my game using the original app but performance is poor. So, what can i do to tweak it like you did? as mentioned above - when i use your custome app it gives me only a black screen when the actual game starts. Menues and loading screen are shown properly...
    Any Ideas?

  • A+ Garage doors

    2/6/2010 11:43:40 AM |

    hi,
       Really appreciate this post. It’s hard to sort the good from the bad sometimes, but I think you’ve nailed it!

  • internet dating

    2/9/2010 4:39:29 AM |

    HI,
       Great post, I look forward to reading more.

  • asus laptops

    2/9/2010 11:01:26 AM |

    Sensational info. I look forward to seeing more.

  • anti spyware

    2/9/2010 12:15:18 PM |

    I’m impressed, you know what you’re talking about

  • approach women

    2/10/2010 8:37:11 AM |

    Brilliant post mate, keep up the good work

  • Web content writing service

    2/11/2010 5:13:17 AM |

    Admiring the time and effort you put into your blog and detailed information you offer! I will bookmark your blog and have my children check up here often. Thumbs up!

  • submit free articles

    2/16/2010 6:54:35 AM |

    i have done my A+ certification from comptia.i must say the credibility and reliability are its best factors.

  • rocket spanish

    2/22/2010 11:53:15 PM |

    Internet has become one of the most greatest mode of information sharing. One could even do online courses and learn languages such as Spanish etc without much difficulty!

  • business internet

    2/23/2010 9:59:52 AM |

    Really appreciate this post. It’s hard to sort the good from the bad sometimes, but I think you’ve nailed it!

  • ICO

    2/25/2010 8:34:50 PM |

    We got a good book on that matter from our local library and most books where not as influensive as your information.

  • management training

    2/26/2010 8:16:11 AM |

    Really appreciate this post. It’s hard to sort the good from the bad sometimes, but I think you’ve nailed it!
    a

  • oil drilling

    3/1/2010 9:05:01 AM |

    What do you think of this commercial video?

  • Eli Wilner Master Framer

    3/2/2010 7:21:38 AM |

    Awesome stuff you guys got here.  I really like the theme of the website and how well you organized the content.  It's a marvelous job I will come back and check you out sometime.

  • Home Restoration

    3/3/2010 7:39:41 PM |

    Very good looking post! Hope to see more from you in the future.

  • website optimization

    3/9/2010 9:02:23 PM |

    Took me time to read all the comments, but I really enjoyed the article. It proved to be Very helpful to me and I am sure to all the commenters here! It's always nice when you can not only be informed, but also entertained!

  • Amanda

    3/12/2010 9:13:53 PM |

    This is quiet an interesting  blog will like to keep regular tabs on it.

  • webthesurfi rugs webdesign

    3/15/2010 10:42:14 AM |

    Thanks for posting this info. I just want to let you know that I just check out your site and I find it very interesting and informative.

  • Scary Halloween Masks

    3/17/2010 6:40:31 PM |

    Awesome!Never knew that you could do it!Your steps are very easy to understand and follow!I have bookmarked it for my further visits!

  • girl games

    3/18/2010 3:33:19 PM |

    Very useful information, thank you.

  • fashion games

    3/18/2010 3:34:05 PM |

    very interesting post.
    thank you.

  • Debt solutions

    3/20/2010 11:08:44 AM |

    This is a really good read for me, Must admit that you are one of the best bloggers I ever saw..People having problems regarding Debts can visit this site..You may get the professional solutions to your financial situations.Have a glance at this and satisfy with the services.

  • online poker strategy

    3/22/2010 10:25:20 AM |

    It’s hard to find knowledgeable people on this topic, but you sound like you know what you’re talking about! Thanks

  • Dora games

    3/23/2010 7:13:42 AM |

    Hi,
    tutorials for capturing the Iphone screen I'm already looking for a while and now i found it, thanks

  • Bike games

    3/23/2010 7:14:12 AM |

    This is a really good read for me, Must admit that you are one of the best bloggers I ever saw..People having problems regarding Debts can visit this site

  • Free Xbox Live Codes

    4/4/2010 2:22:22 AM |

    I wish they would allow us to do this without jailbreaking the ipod.

  • Ariane Nehring

    5/6/2010 11:51:14 AM |

    Very nice information, hope you will stick to this theme? very best wishes from germany.

  • kids slippers

    5/18/2010 10:25:12 AM |

    This looks really interesting. Thanks making the source code available.

Comments are closed