Chrome can't decode a short MP3 file |
||||
Issue description
<audio> tag or AudioContext.decodeAudioData() can't decode a short (10ms >) MP3 file. Please find attached file for the reproduction.
I am suspecting this is FFMpeg's issue.
The file info from afinfo:
---
File: app/data/440hz-10ms.mp3
File type ID: MPG3
Num Tracks: 1
Data format: 1 ch, 44100 Hz, '.mp3' (0x00000000) 0 bits/channel, 0 bytes/packet, 1152 frames/packet, 0 bytes/frame
no channel layout.
estimated duration: 0.052245 sec
audio bytes: 1096
audio packets: 2
bit rate: 167000 bits per second
packet size upper bound: 1052
maximum packet size: 835
audio data file offset: 498
optimized
audio 441 valid frames + 576 priming + 1287 remainder = 2304
---
,
Apr 20 2016
FWIW, I traced through this a bit. avformat_open is failing to open the file. I didn't investigate further than that, since that's in ffmpeg. Curiously avplay shows something, but won't play any sound until I quit avplay.
,
Apr 21 2017
This issue has been available for more than 365 days, and should be re-evaluated. Please re-triage this issue. The Hotlist-Recharge-Cold label is applied for tracking purposes, and should not be removed after re-triaging the issue. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Apr 21 2017
Tested this with Chrome canary and decodeAudioData correctly decodes this into an AudioBuffer with a duration of 0.01 sec, as expected. Audio tag appears to work too. Closing as fixed. If this is incorrect, please reopen or file a new bug.
,
May 23 2017
Verified on 9578.0.0 / 60.0.3105.0 |
||||
►
Sign in to add a comment |
||||
Comment 1 by hongchan@chromium.org
, Apr 12 2016