Difference between revisions of "ffmpeg"
From Noah.org
Jump to navigationJump to search (Created page with "Category: Engineering == MJPEG == You can losslessly extract individual JPEG imges from an '''mjpeg''' file. <pre> ffmpeg -i mjpegvideo.mov -vcodec copy frame%d.jpg </pr...") |
|||
Line 13: | Line 13: | ||
<pre> | <pre> | ||
ffmpeg -pattern_type glob -i "image-*.jpg" video.mov | ffmpeg -pattern_type glob -i "image-*.jpg" video.mov | ||
+ | </pre> | ||
+ | |||
+ | <pre> | ||
+ | ffmpeg -framerate 10 -pattern-type glob -i "*.jpg" -c:v libx264 -pix_fmt yuv420p -crf 23 output.mov | ||
</pre> | </pre> |
Revision as of 13:23, 30 September 2017
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