RTMP to RTP problem

amiznikov amiznikov at gmail.com
Mon Sep 30 09:00:53 UTC 2019


Hello everyone, i have command -
PEER_A=audio_port PEER_V=video_port PEER_IP=ip_server \
SELF_PATH="rtmp://streamrtmp:port/?key" \
SELF_A=5006 SELF_ASSRC=445566 \
SELF_V=5004 SELF_VSSRC=112233 \
GST_DEBUG=4 \
bash -c 'gst-launch-1.0 -e \
  rtpbin name=r
sdes="application/x-rtp-source-sdes,cname=(string)\"user\@example.com\"" \
  rtmpsrc location="$SELF_PATH live=1" ! decodebin name=d \
  d. ! queue ! audioconvert ! opusenc \
    ! rtpopuspay !
"application/x-rtp,payload=(int)96,clock-rate=(int)48000,ssrc=(uint)$SELF_ASSRC"
\
    ! r.send_rtp_sink_0 \
  d. ! queue ! videoconvert ! x264enc tune=zerolatency \
    ! rtph264pay !
"application/x-rtp,payload=(int)103,clock-rate=(int)90000,ssrc=(uint)$SELF_VSSRC"
\
    ! r.send_rtp_sink_1 \
  r.send_rtp_src_0 ! udpsink host=$PEER_IP port=$PEER_A bind-port=$SELF_A \
  r.send_rtcp_src_0 ! udpsink host=$PEER_IP port=$((PEER_A+1))
bind-port=$((SELF_A+1)) sync=false async=false \
  udpsrc port=$((SELF_A+1)) ! r.recv_rtcp_sink_0 \
  r.send_rtp_src_1 ! udpsink host=$PEER_IP port=$PEER_V bind-port=$SELF_V \
  r.send_rtcp_src_1 ! udpsink host=$PEER_IP port=$((PEER_V+1))
bind-port=$((SELF_V+1)) sync=false async=false \
  udpsrc port=$((SELF_V+1)) ! tee name=t \
    t. ! queue ! r.recv_rtcp_sink_1 \
    t. ! queue ! fakesink dump=true async=false'  

but it doesn't work
<http://gstreamer-devel.966125.n4.nabble.com/file/t379089/name.jpg> 

thanks for help!



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


More information about the gstreamer-devel mailing list