- Home /
show video frame on texture in ios
Is it possible to show a frame from a video on a texture in iphone?
I don't need to play the video, just show a frame.
Dan
What's your video source? It's not possible to export the frame as an image before runtime?
Yes I agree with agenttom, if you only need to display a frame, it's better to export the frame first, extracting a frame from a video in runtime is complex since you need to first decode the video for at least a GOP before you could extract an image, and you also need some library to do this like ffmpeg.
Answer by tvranjith · May 21, 2015 at 03:27 PM
There is no direct way to retrieve video frames from video.
One approach could be to draw video on to a RenderTexture and then create texture from it.
See here http://chikkooos.blogspot.jp/2015/05/extracting-video-frames-in-unity-3d-as.html
$$anonymous$$y understanding of the code is that you need to play the whole video to extract the frames? Can I get all the frames I need when at the beginning of run time?