Confusing Gstreamer behavior

Michael Gruner michael.gruner at ridgerun.com
Sun Dec 15 17:05:27 UTC 2019


Hi Veela

Thanks for coming back with the solutions.

On the same note, I was just wondering why aren’t you using RTSP instead? It will handle all these nuances underneath.

Michael

> On Dec 15, 2019, at 08:55, veek <kurien.varugis at gmail.com> wrote:
> 
> 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/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


More information about the gstreamer-devel mailing list