how to determine number of channels from codec_data

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to determine number of channels from codec_data

techie tone
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.

Thanks.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: how to determine number of channels from codec_data

michael smith-6-3
On Thu, Sep 11, 2008 at 5:02 AM, techie tone <[hidden email]> 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

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel