Peer video stream from webrtc is distorted

Busayo Famutimi famutimi.busayo at gmail.com
Fri Sep 25 07:42:47 UTC 2020


Hi guys, 

Please I am developing a video call application that uses webrtc. The goal
is to have two desktop clients (running the application) communicate with
each other via Gstreamer's webrtcbin.

I am using the  sendrecv
<https://gitlab.freedesktop.org/gstreamer/gst-examples/-/tree/master/webrtc/sendrecv/gst> 
example as a guide. I am also using  https://webrtc.nirbheek.in/
<https://webrtc.nirbheek.in/>   to connect the peers. However, the video
sent from desktop to the browser is fine while the video stream returned
from the browser to the desktop is very distorted.

The application video source is the webcam and audio source is the
microphone as shown below:
pipe1 =
        gst_parse_launch("webrtcbin bundle-policy=max-bundle name=sendrecv "
            STUN_SERVER
            "*ksvideosrc*! videoconvert ! queue ! vp8enc deadline=1 !
rtpvp8pay ! "
            "queue ! " RTP_CAPS_VP8 "96 ! sendrecv. "
            "*wasapisrc*! audioconvert ! audioresample ! queue ! opusenc !
rtpopuspay ! "
            "queue ! " RTP_CAPS_OPUS "97 ! sendrecv. ", &error);


Desktop to browser image:
<http://gstreamer-devel.966125.n4.nabble.com/file/t379493/Screenshot_20200924-215134.png> 

Browser to desktop image:
<http://gstreamer-devel.966125.n4.nabble.com/file/t379493/Screenshot_%2827a%29.png> 

Incoming streams on the desktop is handled using decodebin but the video
streams are highly distorted. How can I fix this please?

Thanks. 



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list