[FFmpeg-devel] [PATCH] Notify user when encode a CBR mp3 file without "-write_xing false". This may result in mp3 file duration incorect on ios safari browser and webview. I try to fix it but it can’t be done as mp3 muxer don’t know it is a CBR file until encode process finished. And it’s hard to remove the first frame at that time. Only the mp3 encoder(such as libmp3lame) know it is CBR or not before encoding start.
michael at niedermayer.cc
Sat Apr 22 19:29:56 EEST 2017
On Fri, Apr 21, 2017 at 10:59:41PM +0800, sharpbai at gmail.com wrote:
> From: sharpbai <sharpbai at gmail.com>
> Bug example:
> ffmpeg -i a.mp3 -c:a mp3 -ab 32k -ar 44100 -ac 1 b.mp3
> The duration of the generated file b.mp3 is wrong on ios safari browser from ios7 to ios10.
> libavformat/mp3enc.c | 7 ++++++-
> 1 file changed, 6 insertions(+), 1 deletion(-)
ios safari browser doesnt support the xing header ?
Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
Why not whip the teacher when the pupil misbehaves? -- Diogenes of Sinope
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 181 bytes
Desc: Digital signature
More information about the ffmpeg-devel