Using FFmpeg to Convert JPEG Images To and From MJPEG (Losslessly)

FFmpeg Playlist:

Convert JPEG Timelapse to mp4:

Convert JPEG Image Sequence to MKV (with MJPEG encoding)
ffmpeg -framerate 30 -pattern_type glob -i 'timelapse/*.JPG' -codec copy out.mkv
Convert MKV (with MJPEG encoding) to JPEG Image Sequence
ffmpeg -i out.mkv -vcodec copy timelapse/pic%d.jpg
Extract Single JPEG Image from MKV (with MJPEG encoding)
ffmpeg -ss 00:00:00.03 -i out.mkv -vframes 1 -codec copy output.jpg

Leave a comment

Your email address will not be published. Required fields are marked *