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.
+
+
ffmpeg
starts the command
+
-loglevel error
sets the verbosity of logging to show all errors
+
-i input_file
path, name and extension of the input file
+
-map 0:v:0
designated the first video stream as the stream on which to perform this hash generation operation. -map 0 can be used to run the operation on all streams.
+
-f hash -hash md5
produce a checksum hash, and set the hash algorithm to md5. See the official documentation on hash for other algorithms.
+
-
FFmpeg syntax requires a specified output, and - is just a place holder. No file is actually created.