Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get image from a video frame in iPhone

Is it possible using the iPhone SDK to grab a frame from a video in iPhone and save it or use it in any way in the application? Does the SDK give any control over the video other than play/stop or maybe access to the binary data of the video?

Also is it possible to know the time at which the user stopped watching the video (i know in SDK 3.0 it is possible to start the video from a specific time).

Thanks

EDIT: If not through the official APIs, is there another way to do any of the above in a way that won't ban the application from the AppStore?

like image 883
Dimitris Avatar asked May 01 '09 09:05

Dimitris


People also ask

Can you get a still picture from a video on iPhone?

Open the video you'd like to take a picture from. Select the frame you want to turn into a picture. Using the volume-up and side buttons, take a screenshot of the frame, and crop it to your liking. Access the screenshot from your camera roll as you normally would.


2 Answers

Here's a blog post about extracting frames from movies using ffmpeg:

http://www.codza.com/extracting-frames-from-movies-on-iphone

The corresponding project on github: iFrameExtractor

like image 156
lajos Avatar answered Nov 15 '22 05:11

lajos


You can use lib used by ffmpeg to extract a frame like libh264

http://en.wikipedia.org/wiki/X264

Live TV apps on iPhone do that.

Hope this helps.

Thierry

like image 31
thierryb Avatar answered Nov 15 '22 05:11

thierryb