can't restream rtp(udpsink) to webrtc

pash2048 pash.u2048 at gmail.com
Wed Jun 9 08:00:06 UTC 2021


hi,
this is few days that i try to restream rts h264 stream to webrtc with
gstreamer.
i try all of this commend for sent stream over udp 

gst-launch-1.0 videotestsrc ! x264enc ! rtph264pay ! udpsink host=127.0.0.1
port=5000

or this command

gst-launch-1.0 -v ximagesrc ! video/x-raw,framerate=20/1 ! videoscale !
videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast !
rtph264pay ! udpsink host=127.0.0.1 port=5000 
and try all of this PIPELINE_DESC for restream it over webrtc
webrtcbin name=sendrecv bundle-policy=max-compat
stun-server=stun://stun.l.google.com:19302 udpsrc port=5000 !
application/x-rtp ! rtph264depay ! avdec_h264 ! queue ! videoconvert !
x264enc speed-preset=2 tune=zerolatency ! video/x-h264,framerate=58/1,
profile=(string)baseline ! rtph264pay ! queue !
application/x-rtp,media=video,encoding-name=H264,payload=96,gop-size=180 !
sendrecv.

or this

webrtcbin name=sendrecv bundle-policy=max-compat
stun-server=stun://stun.l.google.com:19302 udpsrc port=5000 caps =
"application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264, payload=(int)96" ! parser ! payloader !
sendrecv.


but in browser stream not played and just stay in Sending SDP answer.
can u help me ?

i do all of this action in  sendrecv code example
<https://gitlab.freedesktop.org/gstreamer/gst-examples/-/tree/master/webrtc/sendrecv/gst> 
.thank u.



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


More information about the gstreamer-devel mailing list