Calculating RAW Audio Buffer Size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi,

For Layer 1 it is 384 samples per frame I guess, which is neways obsolete now :)
For AAC HE I think it is 1024 samples per frame. (1024  * sample_width
* channels.)
You can refer gst-plugins-bad-0.10.8/ext/faad/gstfaad.c

Ved

On Wed, Dec 24, 2008 at 11:49 AM, Michael Smith <msmith at xiph.org> wrote:
> On Tue, Dec 23, 2008 at 9:22 PM, Sameer Naik
> <sameer.subscriptions at damagehead.com> wrote:
>> Thanks a lot Mike, thats just what i needed to know.
>>
>> to confirm, the samples_per_frame for mp3 frames can be either 1152 or 576. So
>> basically a buffer of (1152 * width * channels) size should handle all (mpeg1,
>> layer{1,2,3}) cases, right!
>
> Correct.
>
>>
>> Secondly, how would the buffer size calculation go for AAC-HE audio frames, for
>> say bitrate:320Kbps
>> channels: 2
>> sampling rate: 48000Hz
>> width: 16bits
>
> You'd need to refer to the AAC-HE specification; I don't have a copy
> so I can't do this, to see what the possible frame sizes are.
>
> Mike
>
> ------------------------------------------------------------------------------
> _______________________________________________
> Gstreamer-embedded mailing list
> Gstreamer-embedded at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-embedded
>




[Index of Archives]     [Linux Embedded]     [Linux ARM Kernel]     [Linux for ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux Media]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux