From 4de365b31cab75b9e64af466f433aac996297687 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 1 Mar 2022 20:00:58 +0530 Subject: [PATCH] webrtc_sendrecv.py: Sync element props with C version Also add indentation to make it easier to read Part-of: --- .../gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py index 9c3311818c..deb71cf686 100644 --- a/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py +++ b/subprojects/gst-examples/webrtc/sendrecv/gst/webrtc_sendrecv.py @@ -22,12 +22,14 @@ except ImportError: print('gstreamer-python binding overrides aren\'t available, please install them') raise +# These properties all mirror the ones in webrtc-sendrecv.c, see there for explanations PIPELINE_DESC = ''' webrtcbin name=sendrecv bundle-policy=max-bundle stun-server=stun://stun.l.google.com:19302 - videotestsrc is-live=true pattern=ball ! videoconvert ! queue ! vp8enc deadline=1 ! rtpvp8pay ! - queue ! application/x-rtp,media=video,encoding-name=VP8,payload=97 ! sendrecv. + videotestsrc is-live=true pattern=ball ! videoconvert ! queue ! \ + vp8enc deadline=1 keyframe-max-dist=2000 ! rtpvp8pay ! + queue ! application/x-rtp,media=video,encoding-name=VP8,payload=97 ! sendrecv. audiotestsrc is-live=true wave=red-noise ! audioconvert ! audioresample ! queue ! opusenc ! rtpopuspay ! - queue ! application/x-rtp,media=audio,encoding-name=OPUS,payload=96 ! sendrecv. + queue ! application/x-rtp,media=audio,encoding-name=OPUS,payload=96 ! sendrecv. ''' from websockets.version import version as wsv