Skip to content

Commit 32260c4

Browse files
privatezeroretokromer
authored andcommitted
Add stream md5s (#294)
1 parent d142564 commit 32260c4

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

index.html

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1672,6 +1672,28 @@ <h3>Create MD5 checksums (audio samples)</h3>
16721672
</div>
16731673
<!-- ends Create frame md5s (audio) -->
16741674

1675+
<!-- Create stream md5s -->
1676+
<label class="recipe" for="create_stream_md5s">Create MD5 checksum(s) for A/V stream data only</label>
1677+
<input type="checkbox" id="create_stream_md5s">
1678+
<div class="hiding">
1679+
<h3>Create stream MD5s</h3>
1680+
<p><code>ffmpeg -i <i>input_file</i> -map 0:v:0 -c:v copy -f md5 <i>output_file_1</i> -map 0:a:0 -c:a copy -f md5 <i>output_file_2</i></code></p>
1681+
<p>This will create MD5 checksums for the first video and the first audio stream in a file. If only one of these is necessary (for example if used on a WAV file) either part of the command can be excluded to create the desired MD5 only. Use of this kind of checksum enables integrity of the A/V information to be verified independently of any changes to surrounding metadata.</p>
1682+
<dl>
1683+
<dt>ffmpeg</dt><dd>starts the command</dd>
1684+
<dt>-i <i>input_file</i></dt><dd>path, name and extension of the input file</dd>
1685+
<dt>-map 0:v:0</dt><dd>selects the first video stream from the input</dd>
1686+
<dt>-c:v copy</dt><dd>ensures that FFmpeg will not transcode the video to a different codec before generating the MD5</dd>
1687+
<dt><i>output_file_1</i></dt><dd>is the output file for the video stream MD5. Example file extensions are <code>.md5</code> and <code>.txt</code></dd>
1688+
<dt>-map 0:a:0</dt><dd>selects the first audio stream from the input</dd>
1689+
<dt>-c:a copy</dt><dd>ensures that FFmpeg will not transcode the audio to a different codec before generating the MD5 (by default FFmpeg will use 16 bit PCM for audio MD5s).</dd>
1690+
<dt><i>output_file_2</i></dt><dd>is the output file for the audio stream MD5.</dd>
1691+
</dl>
1692+
<p><b>Note:</b>The MD5s generated by running this command on WAV files are compatible with those embedded by the <a href="https://mediaarea.net/BWFMetaEdit" target="_blank">BWF MetaEdit</a> tool and can be compared.</p>
1693+
<p class="link"></p>
1694+
</div>
1695+
<!-- ends Create stream md5s -->
1696+
16751697
<!-- QCTools Report -->
16761698
<label class="recipe" for="qctools">QCTools report (with audio)</label>
16771699
<input type="checkbox" id="qctools">

0 commit comments

Comments
 (0)