[MPlayer-users] FAAD bitrate never gets set, and channels always fall back to 2 (stereo)
Justin Randall
jrrandall at gmail.com
Thu May 8 15:43:45 CEST 2008
On Thu, May 8, 2008 at 8:43 AM, Nico Sabbi <Nicola.Sabbi at poste.it> wrote:
> On Thursday 08 May 2008 14:06:12 Justin Randall wrote:
> > Hi everyone,
>
> >
> >
> > Could a developer in the know or someone with knowledge of the mp4
> > container please shed some light on the first issue? Is this a
> > limitation with FAAD, or does mplayer just not support detecting
> > the bitrate from the AAC track?
> >
> > Thanks,
> > Justin
>
> in AAC the bitrate is not always specified and/or it may be variable.
> You had better give up on this issue or calculate an average value
> with mencoder -oac copy ...
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-users at mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
So you're saying the line that says: sh->i_bps = 128*1000/8; // XXX:
HACK!!! ::atmos
is good enough? Even if the bitrate is variable there must be a way
to calculate an average if given the sample rate, total track time,
and total byte size. IMO setting it to 128kbps if it's not defined in
the header seems like a hack to me (as it is clearly commented). I
wasn't trying to be rude, I was just trying to understand why it's
being done that way.
Thanks,
Justin
More information about the MPlayer-users
mailing list