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

FFmpeg Playlist: https://www.youtube.com/playlist?list=PLErU2HjQZ_ZOPDZ71Khzt5PX4X4j6flkg

Convert JPEG Timelapse to mp4: https://youtu.be/6dLm59_Eyi0

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 *