Does ffmpeg always produce the same YUV file when decode a video file?
A search didn't produce any indication of non-deterministic video decoding for a digital --&gt; digital signal flow.



In any case, you can first run :

ffmpeg -i in.mp4 -flags +bitexact out1.y4m

ffmpeg -i in.mp4 -flags +bitexact out2.y4m


And then run

ffmpeg -i out1.y4m -v 0 -f md5 -

ffmpeg -i out2.y4m -v 0 -f md5 -


Compare the MD5 values. Same here for H.264 input.