[FFmpeg-trac] #6319(undetermined:new): Raw audio is x2 times slower than it should be
FFmpeg
trac at avcodec.org
Sat Apr 15 04:32:34 EEST 2017
#6319: Raw audio is x2 times slower than it should be
-------------------------------------+-------------------------------------
Reporter: | Type: defect
yujxmaxzcjcllko | Priority: critical
Status: new | Version: 3.2.4
Component: | Blocked By:
undetermined | Reproduced by developer: 0
Keywords: raw-audio |
Blocking: |
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Summary of the bug: when converting mp3 file to raw audio file of format
s16l and then converting it back to mp3, audio is slower x2 times.
How to reproduce:
{{{
ffprobe 1.mp3
ffmpeg -i 1.mp3 -y -f s16le 1.hex
ffmpeg -f s16le -i 1.hex -y 1.mp3
ffprobe 1.mp3
}}}
This is latest FFMPEG version. Output of ffprobe is:
{{{
Input #0, mp3, from '1.mp3':
Metadata:
encoder : Lavf57.57.100
Duration: 00:00:03.02, start: 0.023021, bitrate: 128 kb/s
Stream #0:0: Audio: mp3, 48000 Hz, stereo, s16p, 128 kb/s
Metadata:
encoder : Lavc57.66
}}}
and
{{{
Input #0, mp3, from '1.mp3':
Metadata:
encoder : Lavf57.57.100
Duration: 00:00:06.56, start: 0.025057, bitrate: 64 kb/s
Stream #0:0: Audio: mp3, 44100 Hz, mono, s16p, 64 kb/s
}}}
If I change it to
{{{
ffmpeg -f s16le -ar 48000 -i 1.hex -y -b:a 128k 3.mp3
}}}
output frequency and bitrate are fixed, but audio is still x2 times slower
(duration is still 6 seconds instead of 3). It should be 3.
I think there's no need to upload example mp3, because this bug appears
with any mp3.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/6319>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list