<p>A search didn't produce any indication of non-deterministic video decoding for a <code>digital --&gt; digital</code> signal flow.</p>

<hr>

<p>In any case, you can first run :</p>

<pre><code>ffmpeg -i in.mp4 -flags +bitexact out1.y4m

ffmpeg -i in.mp4 -flags +bitexact out2.y4m
</code></pre>

<p>And then run</p>

<pre><code>ffmpeg -i out1.y4m -v 0 -f md5 -

ffmpeg -i out2.y4m -v 0 -f md5 -
</code></pre>

<p>Compare the MD5 values. Same here for H.264 input.</p>

CC BY-SA 3.0
2017-04-03T07:36:55.057Z
2017-04-03T07:36:55.057Z
Gyan
<p>With the same computer, same OS, and same version of ffmpeg and decoder, does ffmpeg always produce the same YUV file when decode a video file? By same I mean the YUV value is exactly the same.</p>

<ffmpeg>
Does ffmpeg always produce the same YUV file when decode a video file?
shintaroid
# Does ffmpeg always produce the same YUV file when decode a video file?

(Asked by: username_0 on 2017-04-03)

With the same computer, same OS, and same version of ffmpeg and decoder, does ffmpeg always produce the same YUV file when decode a video file? By same I mean the YUV value is exactly the same.

**Tags:** ffmpeg


---

## 1 answers

### Answer by username_1 on 2017-04-03. Score: 1 | Accepted answer

A search didn't produce any indication of non-deterministic video decoding for a digital --> 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.


---

