
FFmpeg image file demuxer documentation.In the above examples each associated frame for the input and output share the same hash ensuring that the frames are identical and that the output is lossless. $ ffmpeg -i output.mkv -map 0:v -f framehash. The framehash muxer can be used to compare the unique hash of each frame to ensure that the result is truly lossless: $ ffmpeg -i input%03d.jpg -f framehash. You can use jpegtran to perform lossless optimization on each frame which may provide significant file size savings: mkdir outputdirįor f in *.jpg do jpegtran -optimize -copy none -perfect -v "$f" > "outputdir/$f" done Note that if you omit -framerate then a default of -framerate 25 will be applied to the input. You can simply mux the JPG images to make a video: ffmpeg -framerate 30 -i input%03d.jpg -codec copy output.mkv
