How to specify property of source selected by uri in gst-launch

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

How to specify property of source selected by uri in gst-launch

Pavel Hofman
Hello,

May I ask for help with this IMO trivial issue? Unfortunately I could
not google out the answer.

The following command plays correctly, however the CD drive spins too fast

gst-launch-1.0 cdda://5 ! alsasink

I can specify the read-speed property of cdparanoiasrc which runs just
great:

gst-launch-1.0 cdparanoiasrc track=5 read-speed=1 ! alsasink


Please is there a way to specify the read-speed property when
cdparanoiasrc is selected automatically based on the uri? I have tried
with no success

gst-launch-1.0 cdda://5 read-speed=1  ! alsasink
WARNING: erroneous pipeline: syntax error


Thanks a lot for any help.

Pavel.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to specify property of source selected by uri in gst-launch

Vinod Kesti
Hi Pavel,

What you mean by cdparanoiasrc is selected automatically based on the uri?
Are you u using uridecodebin??

If you are using uridecodebin then You can use source-setup signal of
uridecodebin to set the source specific property. Here GstElement* arg0 is
source element object.

  "source-setup" :  void user_function (GstElement* object,
                                        GstElement* arg0,
                                        gpointer user_data);
More in uridecodebin
https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-uridecodebin.html



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: How to specify property of source selected by uri in gst-launch

Pavel Hofman
Hi Vinod,

Thanks a lot for your great hint. Looking at the signal would have never
occurred to me. The cdparanoiasrc element indeed showed up in
source-setup handler of the python gstreamer library. Adding the
property was simple and now the cd drive playes silently.

Once more, thanks a lot!

Best regards,

Pavel.

Dne 24.10.2017 v 08:06 Vinod Kesti napsal(a):

> Hi Pavel,
>
> What you mean by cdparanoiasrc is selected automatically based on the uri?
> Are you u using uridecodebin??
>
> If you are using uridecodebin then You can use source-setup signal of
> uridecodebin to set the source specific property. Here GstElement* arg0 is
> source element object.
>
>    "source-setup" :  void user_function (GstElement* object,
>                                          GstElement* arg0,
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel