Skip to content

Commit

Permalink
Merge pull request #353 from amiaopensource/ab/add-get-checksum-on-st…
Browse files Browse the repository at this point in the history
…reams

Add get checksum on streams
  • Loading branch information
ablwr authored Nov 9, 2018
2 parents 2d14e32 + e431fbb commit 76a93b7
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1856,11 +1856,30 @@ <h3>Create stream MD5s</h3>
<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><em>output_file_2</em></dt><dd>is the output file for the audio stream MD5.</dd>
</dl>
<p><strong>Note:</strong>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><strong>Note:</strong> 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 -->

<!-- Get checksum for video/audio stream -->
<label class="recipe" for="get_stream_checksum">Get checksum for video/audio stream</label>
<input type="checkbox" id="get_stream_checksum">
<div class="hiding">
<h3>Get checksum for video/audio stream</h3>
<p><code>ffmpeg -loglevel error -i <em>input_file</em> -map 0:v:0 -f hash -hash md5 -</code></p>
<p>This script will perform a fixity check on a specified audio or video stream of the file, useful for checking that the content within a video has not changed even if the container format has changed.</p>
<dl>
<dt>ffmpeg</dt><dd>starts the command</dd>
<dt>-loglevel error</dt><dd>sets the verbosity of logging to show all errors</dd>
<dt>-i <em>input_file</em></dt><dd>path, name and extension of the input file</dd>
<dt>-map 0:v:0</dt><dd>designated the first video stream as the stream on which to perform this hash generation operation. <code>-map 0</code> can be used to run the operation on all streams.</dd>
<dt>-f hash -hash md5</dt><dd>produce a checksum hash, and set the hash algorithm to md5. See the official <a href="https://ffmpeg.org/ffmpeg-formats.html#hash">documentation on hash</a> for other algorithms.</dd>
<dt>-</dt><dd>FFmpeg syntax requires a specified output, and <code>-</code> is just a place holder. No file is actually created.</dd>
</dl>
<p class="link"></p>
</div>
<!-- ends Get checksum for video/audio stream -->

<!-- QCTools Report -->
<label class="recipe" for="qctools">QCTools report (with audio)</label>
<input type="checkbox" id="qctools">
Expand Down

0 comments on commit 76a93b7

Please sign in to comment.