Add stream md5s (#294)

This commit is contained in:
Andrew Weaver 2018-01-05 09:26:10 -08:00 committed by Reto Kromer
parent d142564f36
commit 32260c405f

View File

@ -1672,6 +1672,28 @@
</div>
<!-- ends Create frame md5s (audio) -->
<!-- Create stream md5s -->
<label class="recipe" for="create_stream_md5s">Create MD5 checksum(s) for A/V stream data only</label>
<input type="checkbox" id="create_stream_md5s">
<div class="hiding">
<h3>Create stream MD5s</h3>
<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>
<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>
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-i <i>input_file</i></dt><dd>path, name and extension of the input file</dd>
<dt>-map 0:v:0</dt><dd>selects the first video stream from the input</dd>
<dt>-c:v copy</dt><dd>ensures that FFmpeg will not transcode the video to a different codec before generating the MD5</dd>
<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>
<dt>-map 0:a:0</dt><dd>selects the first audio stream from the input</dd>
<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>
<dt><i>output_file_2</i></dt><dd>is the output file for the audio stream MD5.</dd>
</dl>
<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>
<p class="link"></p>
</div>
<!-- ends Create stream md5s -->
<!-- QCTools Report -->
<label class="recipe" for="qctools">QCTools report (with audio)</label>
<input type="checkbox" id="qctools">