Bug#736088: libavcodec54: file command reports wrong bitrate on mp3 file encoded by libav

Alessandro Ghedini ghedo at debian.org
Sat Apr 12 14:32:40 UTC 2014


Control: tags -1 fixed-upstream

On sab, mar 08, 2014 at 09:25:35 -0500, Reinhard Tartler wrote:
> On Fri, Mar 07, 2014 at 12:04:25PM +0100, Alessandro Ghedini wrote:
> > So, I've done a bit of investigation, and it turns out that this is caused by
> > the way libavformat writes the XING header to mp3 files. Essentially, it uses
> > a fixed value for bitrate_idx... for any bitrate values.
> > 
> > This also makes tools like mediainfo detect an avconv-encoded mp3 file as
> > using constant bitrate, while in fact it might be using a variable bitrate
> > (though I'm not sure if this is actually the same bug, or a different bug in the
> > same code).
> > 
> > More or less copy-pasting the mp3_write_xing() function (libavformat/mp3enc.c)
> > from ffmpeg to libav seems to fix the problem.
> 
> Could you please provide a patch, and send (or copy) it to libav-devel at libav.org, please?

This is now fixed upstream [0].

Cheers

[0] https://git.libav.org/?p=libav.git;a=commit;h=617a1a98a6be3e59db6fbfc21afab2fb9a049c03

-- 
perl -E '$_=q;$/= @{[@_]};and s;\S+;<inidehG ordnasselA>;eg;say~~reverse'
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20140412/02eb8d3d/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list