Facing problem in autoplugging application

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

Facing problem in autoplugging application

shiva_mudugal
Hi,


I am writing a autoplugging application(one which is similar to the example given in gstreamer application development manual).

Steps I have followed:

1) Get a list of available factories from gstreamer registry.
2) Use typefind to get media type.
3) And the construct dynamic pipeline based on new pads created for every element.

I am trying to play a mp3 stream with my application. I am expecting open source "mad" decoder to get selected for play back but heaac decoder is getting selected.

I am using "gst_caps_intersect" api to check the matching element.   Is there any better way to match
capabilities, so that my application selects right decoder.


Can anyone help?


Reply | Threaded
Open this post in threaded view
|

Re: Facing problem in autoplugging application

Stefan Sauer
On 05/28/2012 11:17 AM, shiva_mudugal wrote:

> Hi,
>
>
> I am writing a autoplugging application(one which is similar to the example
> given in gstreamer application development manual).
>
> Steps I have followed:
>
> 1) Get a list of available factories from gstreamer registry.
> 2) Use typefind to get media type.
> 3) And the construct dynamic pipeline based on new pads created for every
> element.
You are doing that for educational purpose? Otherwise I'd recommend to
reuse playbin(2) or its parts (uridecodebin, decodebin(2))).
>
> I am trying to play a mp3 stream with my application. I am expecting open
> source "mad" decoder to get selected for play back but heaac decoder is
> getting selected.
>
> I am using "gst_caps_intersect" api to check the matching element.   Is
> there any better way to match
> capabilities, so that my application selects right decoder.
gst_caps_intersect is the right function to see if two caps have common
structures. Without any pointers to your code, you will have to debug
this yourself.

Stefan

>
>
> Can anyone help?
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Facing-problem-in-autoplugging-application-tp4655118.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel