[gst-devel] how to determine number of channels from codec_data

Michael Smith msmith at xiph.org
Thu Sep 11 19:01:01 CEST 2008


On Thu, Sep 11, 2008 at 5:02 AM, techie tone <techietone at gmail.com> wrote:
> Hi All,
>
> Can we derive the information about number of channels from codec_data?
>
> I want to extract the number of channels information from codec_data (for
> AAC-LC decoder) received from ffdemux_mov_mp4_m4a_3gp_3g2_mj2.

Do not use that demuxer. Use qtdemux instead, it works much much better.

The codec_data for AAC does include information about the number of
channels, but it's an AAC-specific thing, you'd need to parse it
yourself to find out.

The channel count is probably also in the caps anyway (from the
demuxer, if you use a decent demuxer), so you don't need to do that.

Mike




More information about the gstreamer-devel mailing list