don't play rtp stream c++

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

don't play rtp stream c++

simba9
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/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: don't play rtp stream c++

simba9
SOLVED, need on receiver set caps =
"application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel