rtsp-server framerate

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

rtsp-server framerate

cwhittenburg

I'm testing gst-rtsp-server, but the framerate of the stream doesn't seem to be getting passed to the client.  The server is 1.4.5 (i.mx6) and the client is 1.6.1.

The server is running test-launch with a pipeline of "(videotestsrc pattern=18 is-live=true do-timestamp=true ! video/x-raw,format=I420,width=640,height=480,framerate=(fraction)30/1 ! queue ! vpuenc_h264 gop-size=5 bitrate=5000 ! rtph264pay name=pay0 pt=96 )" 

The client is using this pipeline: gst-launch-1.0 -v rtspsrc location=rtsp://192.168.43.1:8554/test latency=50 ! decodebin ! autovideosink

The video plays, but it looks like framerate isn't getting passed to the client.  All framerates are showing 0/1.  When I play this stream with VLC, it is very jerky, I assume because of the lack of framerate information.

This is the receiver side output  http://pastebin.com/QgTYWjpP

Am I missing something here?


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: rtsp-server framerate

Olivier Crête-3
Hello,

On Mon, 2016-01-18 at 16:17 -0600, Chris Whittenburg wrote:

>
> I'm testing gst-rtsp-server, but the framerate of the stream doesn't
> seem to be getting passed to the client.  The server is 1.4.5 (i.mx6)
> and the client is 1.6.1.
>
> The server is running test-launch with a pipeline of "(videotestsrc
> pattern=18 is-live=true do-timestamp=true ! video/x-
> raw,format=I420,width=640,height=480,framerate=(fraction)30/1 ! queue
> ! vpuenc_h264 gop-size=5 bitrate=5000 ! rtph264pay name=pay0 pt=96
> )" 
>
> The client is using this pipeline: gst-launch-1.0 -v rtspsrc
> location=rtsp://192.168.43.1:8554/test latency=50 ! decodebin !
> autovideosink
>
> The video plays, but it looks like framerate isn't getting passed to
> the client.  All framerates are showing 0/1.  When I play this stream
> with VLC, it is very jerky, I assume because of the lack of framerate
> information.
>
> This is the receiver side output  http://pastebin.com/QgTYWjpP
>
> Am I missing something here?

The RTSP protocol doesn't deal with framerates, only with per-packet
timestamps. That said, the video shouldn't be jerky in VLC. You may
want to try to make sure your H.264 encoder doesn't produce B frames,
for example, by forcing the baseline profile instead of the main
profile and see if that helps.

--
Olivier Crête
[hidden email]


_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel