webrtcbin state change issue

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

webrtcbin state change issue

Lusine
Hi Folks,

I need to change my pipeline(which streams with webrtcbin) state from
PLAYING to READY and then again recover the playing state.
 gst_element_set_state(pipe1, GST_STATE_READY);
// DO something and then again set the playing state.
 gst_element_set_state(pipe1, GST_STATE_PLAYING);

My pipeline is this:
https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/webrtc/webrtc.c

But after setting the PLAYING state again the streaming doesn't work, is
there an issue or do I need to do some extra step to recover the PLAYING
state?

Regards,
Lusine



--
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: webrtcbin state change issue

Matthew Waters
Hi,

webrtcbin doesn't really support restarting at all.  Why are you setting
webrtcbin to READY?

Cheers
-Matt

On 16/3/21 12:10 am, Lusine wrote:

> Hi Folks,
>
> I need to change my pipeline(which streams with webrtcbin) state from
> PLAYING to READY and then again recover the playing state.
>   gst_element_set_state(pipe1, GST_STATE_READY);
> // DO something and then again set the playing state.
>   gst_element_set_state(pipe1, GST_STATE_PLAYING);
>
> My pipeline is this:
> https://cgit.freedesktop.org/gstreamer/gst-plugins-bad/tree/tests/examples/webrtc/webrtc.c
>
> But after setting the PLAYING state again the streaming doesn't work, is
> there an issue or do I need to do some extra step to recover the PLAYING
> state?
>
> Regards,
> Lusine
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


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

OpenPGP_signature (505 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: webrtcbin state change issue

Lusine
Hi Matt,
I need to change tune & speed-preset properties of x264enc elements at
runtime. These properties are only possible to change when the x264enc is in
ready state. That's why I's thinking to set the pipeline in the ready state,
change these properties and then recover the playing state which doesn't
work. Is there any other way to achieve what I want?

Regards,
Lusine



--
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: webrtcbin state change issue

Matthew Waters
You can only set x264enc to READY state then instead of the entire pipeline.

That may result in a different stream configuration though which may
require a reconfiguration of the input stream (another thing that
webrtcbin doesn't really support at the moment) and renegotiating the SDP.

On 18/3/21 10:34 pm, Lusine wrote:

> Hi Matt,
> I need to change tune & speed-preset properties of x264enc elements at
> runtime. These properties are only possible to change when the x264enc is in
> ready state. That's why I's thinking to set the pipeline in the ready state,
> change these properties and then recover the playing state which doesn't
> work. Is there any other way to achieve what I want?
>
> Regards,
> Lusine
>

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

OpenPGP_signature (505 bytes) Download Attachment