ffmpeg

From Noah.org
Revision as of 12:23, 30 September 2017 by Root (Talk | contribs) (Create video from a sequence of images)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


MJPEG

You can losslessly extract individual JPEG imges from an mjpeg file.

ffmpeg -i mjpegvideo.mov -vcodec copy frame%d.jpg

Create video from a sequence of images

If there is no format to the images you want to convert then you must use the pattern_type option:

ffmpeg -pattern_type glob -i "image-*.jpg" video.mov
ffmpeg -framerate 10 -pattern-type glob -i "*.jpg" -c:v libx264 -pix_fmt yuv420p -crf 23 output.mov