Opened 4 months ago

#9445 new defect

QDM2 wrong samplerate

Reported by: cgbug Owned by:
Priority: normal Component: avcodec
Version: git-master Keywords: qdm2
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

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

Attachments (1)

qdm2_32000hz_detected_as_44100hz.zip (89.1 KB ) - added by cgbug 4 months ago.
sample file

Download all attachments as: .zip

Change History (1)

by cgbug, 4 months ago

sample file

Note: See TracTickets for help on using tickets.