How to set framerate for raw video in rtsp

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

How to set framerate for raw video in rtsp

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

Re: How to set framerate for raw video in rtsp

Michael MacIntosh
You might want to check what your network usage is at, because at that
resolution and frame rate you are probably saturating any network device
you could possibly want to use (on the order of several gigabytes per
second so well past 10 gbps).  You should probably encode the video.

On 3/30/2019 3:46 AM, longkas wrote:

> 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/
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel