Confusing Gstreamer behavior

veek kurien.varugis at gmail.com
Sun Dec 15 12:16:11 UTC 2019


I was able to solve this problem and the solution is posted here in the hope
that it can be of help to someone else. 

Server
-------------
gst-launch-1.0 -v rtpbin name=rtpbin filesrc
location=./gravity_audio_opus_video_h264.mkv ! matroskademux name=demux
demux.video_0 ! decodebin ! x264enc ! rtph264pay ! rtpbin.send_rtp_sink_0 \
	    demux.audio_0 ! decodebin ! opusenc ! rtpopuspay !
rtpbin.send_rtp_sink_1 \
	    rtpbin.send_rtp_src_0 ! udpsink port=5000 sync=true async=false \
	    rtpbin.send_rtp_src_1 ! udpsink port=5002 sync=true async=false \
	    rtpbin.send_rtcp_src_0 ! udpsink port=5001 sync=false async=false
udpsrc port=5005 ! rtpbin.recv_rtcp_sink_0  \
  rtpbin.send_rtcp_src_1 ! udpsink port=5003 sync=false async=false udpsrc
port=5007 ! rtpbin.recv_rtcp_sink_1

Client
----------
gst-launch-1.0 -v rtpbin name=rtpbin \
udpsrc caps="application/x-rtp, media=video, clock-rate=90000,
encoding-name=H264" port=5000 ! rtpbin.recv_rtp_sink_0 rtpbin. !
rtph264depay ! decodebin ! videoconvert ! autovideosink sync=false \
udpsrc port=5001 ! rtpbin.recv_rtcp_sink_0 rtpbin.send_rtcp_src_0 ! udpsink
port=5005 host=127.0.0.1 sync=false async=false \
udpsrc
caps="application/x-rtp,media=(string)audio,clock-rate=(int)48000,encoding-name=(string)OPUS"
port=5002 ! rtpbin.recv_rtp_sink_1 rtpbin. ! rtpopusdepay ! decodebin !
audioconvert ! queue ! autoaudiosink sync=true    \
udpsrc port=5003 ! rtpbin.recv_rtcp_sink_1    \
rtpbin.send_rtcp_src_1 ! udpsink port=5007 sync=false async=false




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


More information about the gstreamer-devel mailing list