diff --git a/index.html b/index.html index e2756f2..03cb130 100644 --- a/index.html +++ b/index.html @@ -1149,12 +1149,12 @@ foreach ($file in $inputfiles) { - -
ffmpeg -i input_file -f framemd5 -an output_file
This will create an MD5 checksum per video frame.
ffmpeg -i input_file -filter_complex "asetnsamples=n=48000" -f framemd5 -vn output_file
This will create an MD5 checksum for each group of 48000 audio samples.
The number of samples per group can be set arbitrarily, but it's good practice to match the samplerate of the media file (so you will get one checksum per second).
+ Examples for other samplerates:
+
You may verify an MD5 checksum file created this way by using a Bash script.
+ +Generate a SMPTE bars test video + a 1kHz sine wave as audio testsignal.
+ffmpeg -f lavfi -i smptebars=size=720x576:rate=25 -f lavfi -i "sine=frequency=1000:sample_rate=48000" -c:a pcm_s16le -t 10 -c:v ffv1 output_file
size
and rate
options allow you to choose a specific frame size and framerate. [more]pcm_s16le
(the default encoding for wav files). pcm represents pulse-code modulation format (raw bytes), 16
means 16 bits per sample, and le
means "little endian"