You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<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 <ahref="https://mediaarea.net/BWFMetaEdit" target="_blank">BWF MetaEdit</a> tool and can be compared.</p>
0 commit comments