how to convert m4v to image sequence?
I am trying to extract frames from m4v files compressed with H264. I am studying the compression artifacts generated by h264 so I actually need the exact frames (re-encoding is not an option). I know that VirtualDub allows me to do th开发者_StackOverflow中文版is for .avi or .divx files, but doesn't work with m4v files. Is there a tool that would allow me to do this?
In case you want to extract a longer sequence and MPEG Streamclip doesn't work on your system, you can use ffmpeg.
ffmpeg -i input.dv -r 25 -f image2 images%05d.png
You may need to replace the 25 with the actual frame rate of the video. I'm not sure if ffmpeg would blend between multiple frames if you set the frame rate to something different than the source frame rate.
More information is avalable at stream0.org, where I found it.
One of my favourite video tools is MPEG Streamclip.
I just tried to export the m4v sample here to a sequence of images, and it works.
UPDATE
Said tool is only available for Windows and Mac OS X.
精彩评论