[FFmpeg-trac] #9445(avcodec:new): QDM2 wrong samplerate
FFmpeg
trac at avcodec.org
Thu Sep 30 18:12:55 EEST 2021
#9445: QDM2 wrong samplerate
---------------------------------+--------------------------------------
Reporter: cgbug | Type: defect
Status: new | Priority: normal
Component: avcodec | Version: git-master
Keywords: qdm2 | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
---------------------------------+--------------------------------------
Sample file:
https://www32.zippyshare.com/v/aBw5JUeB/file.html
When FFmpeg parses the header the samplerate is detected as 44100hz. But
in reality the audio is actually 32000hz. So seems like an incorrect value
in the header.
MediaInfo correctly detects it as 32000hz. I can't find the relevant piece
of code in its source, so I can't say how it determined that value.
The file has 2 channels and bitrate in header is 128000. So maybe
samplerate could be calculated based on that?
128000 (bitrate) / 2 (channels) / 2 (16 bits per sample) = 32000
--
Ticket URL: <https://trac.ffmpeg.org/ticket/9445>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list