How to set framerate for raw video in rtsp

longkas longkas at gmail.com
Sat Mar 30 10:46:52 UTC 2019


Hello,
I try to send raw video via rtsp and then play it, but the framerate is very
low, I have tried to set the frame rate in the sdp file but not work

1) #server: 
gst-launch-1.0 -v videotestsrc pattern=ball !
video/x-raw,format=UYVY,framerate=60/1,width=1920,height=1080 ! rtpvrawpay !
udpsink  host=127.0.0.1 port=5555

2) # sdp file
SDP:
v=0
o=- 0 0 IN IP4 127.0.0.1
s=No Name
t=0 0
a=tool:libavformat 58.20.100
m=video 5555 RTP/AVP 96
c=IN IP4 127.0.0.1
a=rtpmap:96 raw/90000
a=fmtp:96
rate=90000;sampling=YCbCr-4:2:2;depth=8;width=1920;height=1080;colorimetry=BT601-5;a-framerate=60
a=framerate:60

3)client:
gst-launch-1.0 -v sdpsrc location=sdp://d:/stream.sdp name=sdp  \
    sdp.  ! rtpvrawdepay   ! autovideosink



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


More information about the gstreamer-devel mailing list