webrtcbin create-answer returns unknown SDP type

Matthew Waters ystreet00 at gmail.com
Tue Jul 5 12:12:30 UTC 2022


Hi,

That SDP doesn't actually exist as a valid value.  You can enable
GStreamer debugging with GST_DEBUG=3,*webrtc*:7 and that may show
something interesting.

Otherwise, one has to figure out if the python bindings are doing
something weird here.  I assume you have a relevant gst-python
installation available and in use.

Cheers
-Matt

On 5/7/22 02:44, Alexei Golovko via gstreamer-devel wrote:
> Hi,
> I try to use webrtcbin with Janus.
> I've found examples like
> https://github.com/centricular/gstwebrtc-demos/blob/master/janus/janusvideoroom.py,
> https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/blob/master/tests/examples/webrtc/webrtcrenego.c,
> https://github.com/centricular/gstwebrtc-demos/blob/master/sendrecv/gst-rust/src/main.rs,
> https://gitlab.freedesktop.org/gstreamer/gst-examples/-/blob/master/webrtc/sendrecv/gst/webrtc_sendrecv.py.
>
> They tend to create an offer locally, send it to Janus, receive an
> answer and set it as a remote description. I would like to mimic
> behaviour, which we used to use with python's aiortc: get an offer
> from Janus, generate an answer and send it back.
>
> I set SDP offer from Janus with set-remote-description, then emit
> create-answer; but I get an answer WebRTCSessionDescription with an
> empty SDP and a very strange WebRTCSDPType=-43384639 (non-existing enum?).
>
> What am I doing wrong and how to fix this?
>
> The python script used is here: https://pastebin.com/WGPcF64m
> Module dvr_processor.dvr_processor.janus contains communication with
> Janus: https://pastebin.com/KAhTv8Lq
> Logs are here: https://pastebin.com/QVegDhRZ
>
> It is gstreamer 1.20.1 on ubuntu-22.04 based image.
>
> Regards,
> Alexei Golovko.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220705/665f109d/attachment-0001.sig>


More information about the gstreamer-devel mailing list