Karen's FotoPage

By: Karen Gilliams

[Recommend this Fotopage] | [Share this Fotopage]
View complete fotopage

Friday, 12-Apr-2013 13:30 Email | Share | Bookmark
Playing a real time video stream from iPhone camera on a 20 seco

I am trying to see if it is possible to record a video from the iPhone's camera and write this to a file. I then want the video to start playing on the screen a set time after. This all needs to happen continuously. For example,Sherlock dvd I want the video on the screen to always be 20 seconds behind what the camera is recording.

Some background:

I have a friend who is a coach and would like for his players to be able to see their last play. This could be accomplished by a feed going to a TV from an iPad always 20 seconds behind what is recorded. This needs to Nikita series continually run until practice is over. (I would connect the iPad to the TV either with a cable or AirPlay to an Apple TV). The video would never need to be saved and should just be discarded after playing.

Is this even possible with the APIs AVFoundation offers? Will the iPhone let you write to a file and read from a file at the same time to accomplish this? Any other better way to accomplish this?

You can probably do things to help shrink the amount of memory you need to buffer, like reduce the size of the frame or resolution. As for playing those frames out of the buffer, you could either write the last X seconds from that circular buffer out to a file (which you could then open via AVAsset assetWithURL:) or you might be able to create something from the buffer directly via AVAssetReader.Breaking Bad dvd I not 100% certain, having never done exactly what you trying to do myself. Michael Dautermann Jan 19 '12 at 23:11

View complete fotopage

© Pidgin Technologies Ltd. 2016