don't play rtp stream c++

simba9 ostilia at mail.ru
Wed Nov 18 15:38:19 UTC 2020


I wrote an RTP server ( CODE <https://pastebin.com/UZ1kcpju>  ) and client (
code <https://pastebin.com/qy3XbAyz>  ) in C ++, but when I try to start the
client after building, it doesn't want to play the video captured from the
camera. Although when I use this script to play it all works. 
PEER_V=5004 PEER_IP=127.0.0.1 \
SELF_V=5000 \
CAPS_V="media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264,payload=(int)103"
\
bash -c 'gst-launch-1.0 -v -e \
  rtpsession name=r
sdes="application/x-rtp-source-sdes,cname=(string)\"user\@example.com\"" \
  udpsrc port=$SELF_V ! "application/x-rtp,$CAPS_V" ! r.recv_rtp_sink \
    r.recv_rtp_src ! rtph264depay ! decodebin ! autovideosink \
  udpsrc port=$((SELF_V+1)) ! r.recv_rtcp_sink \
  r.send_rtcp_src ! udpsink host=$PEER_IP port=$((PEER_V+1)) sync=false
async=false'


Why?




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


More information about the gstreamer-devel mailing list