Get image from a video frame in iPhone

怎甘沉沦 提交于 2019-12-04 23:48:31

问题


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?


回答1:


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




回答2:


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




回答3:


please see the answer to my question here iphone sdk > 3.0 . Video Thumbnail? which answers this




回答4:


Check the sample code at This URL:https://github.com/benlodotcom/MyAVControllerDemo for extracting frames from video



来源:https://stackoverflow.com/questions/810764/get-image-from-a-video-frame-in-iphone

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!