Opened 17 years ago
Closed 17 years ago
#738 closed defect (remind)
Incorrect duration detected on VBR MP3s
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | normal | Component: | libavcodec |
Version: | unspecified | Severity: | minor |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Reproduced by developer: | no | Analyzed by developer: | no |
Description
Hello.
I have discovered that the duration detected by ffmpeg -i (and also mplayer) is incorrect for VBR MP3s. This is because the decoder is not looking at the Xing or Info VBR headers. Other decoders use these headers to determine the total number of frames in the stream without having to parse the entire stream. The duration is then computed as :
duration = total_frames * frame_size / sample_rate.
Attached you will find a patch that reports the correct duration for VBR mp3s.
Thanks and best regards.
Attachments (2)
Change History (7)
by , 17 years ago
comment:1 by , 17 years ago
comment:2 by , 17 years ago
attachments.isobsolete: | 0 → 1 |
---|
comment:3 by , 17 years ago
Resolution: | → duplicate |
---|---|
Status: | new → closed |
someone look at bug 738
for the vbr mp3 patch.
* This bug has been marked as a duplicate of bug 465 *
comment:4 by , 17 years ago
Resolution: | duplicate |
---|---|
Status: | closed → reopened |
oops, ffmpeg is not mplayer... how silly of me.
apologies.
comment:5 by , 17 years ago
Resolution: | → remind |
---|---|
Status: | reopened → closed |
ffmpeg bugs moved to ffmpeg roundup tracker
patch for VBR durations