ffmpeg - Extract undecoded audio payload from song file? -
what tools available extract raw undecoded audio payload song file?
i looking solution work on wma, m4a, mp3, , ogg files.
one of purposes able calculate md5sum of audio payload.
i tried ffmpeg -i <song file> -f md5 - decoding pass not desired. seems produce different results depending on versions of decoders in use.
i tried ffmpeg -i <song file> -acodec copy - > <raw payload file> ffmpeg complains not know desired output format though copy explicitly specified.
i've tried various incarnations of -map_metadata -1 documentation obtuse @ best.
in end ideal have stdout of raw undecoded audio portion of song file.
any ideas?
you're really, close. if trying checksum raw audio data, combine 2 command lines posted-- use '-acodec copy' extract raw data , '-f md5' compute md5:
ffmpeg audio.file -acodec copy -f md5 - that dump md5 sum stdout. replace '-' @ end of command line filename if want hash go file instead.
is there reason wanted extract raw audio data? know it's possible, doing feels might fall category of "solving wrong problem". if extract raw audio data diverse range of formats (like wma, m4a, mp3, , ogg), you'll left no context how use data later (unless you're planning store context elsewhere, in database).
Comments
Post a Comment