[FFmpeg-user] Building framemd5 checksum for Audio per second

Bauer, Christoph Christoph.Bauer at slub-dresden.de
Wed Jul 24 11:46:05 EEST 2019


Hello everybody,

I was building framemd5-checksums for Audio with 96kHz sampling for every second, using this command line:

ffmpeg -i INPUT.mka -filter_complex "asetnsamples=n=96000" -f framemd5 OUTPUT.framemd5

The framemd5-file I get out of this starts with these lines:

#format: frame checksums
#version: 2
#hash: MD5
#software: Lavf58.27.102
#tb 0: 1/96000
#media_type 0: audio
#codec_id 0: pcm_s16le
#sample_rate 0: 96000
#channel_layout 0: 3
#channel_layout_name 0: stereo
#stream#, dts,        pts, duration,     size, hash
0,          0,          0,    96000,   384000, 1fd71ae8708c0b45e229b1d823eb362b
0,      96000,      96000,    96000,   384000, 2b9a626285c754e3b39d1555f202ad81
0,     192000,     192000,    96000,   384000, 8e9a791e7d5126e5208416f412f3ab26

The same file was delivered with a framemd5-file which starts with those lines:

#format: frame checksums
#version: 2
#hash: MD5
#software: Lavf58.20.100
#tb 0: 1/96000
#media_type 0: audio
#codec_id 0: pcm_s24le
#sample_rate 0: 96000
#channel_layout 0: 3
#channel_layout_name 0: stereo
#stream#, dts,        pts, duration,     size, hash
0,          0,          0,    96000,   576000, 2b31df8f73cf3d95b236d2dd16e6ba30
0,      96000,      96000,    96000,   576000, ebb8f1f3efde3fda9cb21ecd959ea076
0,     192000,     192000,    96000,   576000, 1a01031d660895b43f92234f2582a6a8

The difference between the checksum-files is as far that i can see at first the software (Lavf58.20.100 vs. Lavf58.27.102), at second the codec_id  (pcm_s24le vs. pcm_s16le) and thirdly  the size (576000 vs. 384000). Now my questions are the following:


-          Is it possible to get out those different framemd5-files out  of the same file?

-          Which parameters have to be added or changed in the command line above to get the result oft he second framemd5-file?


Thanks in advance

Christoph




More information about the ffmpeg-user mailing list