[gst-devel] Incorrect frame rate in streaming video through UDP.

Yiliang Bao yiliangb at gmail.com
Thu Aug 27 04:55:00 CEST 2009


Hello,

I just started learning gstreamer. I tried to stream live video through UDP,
but could not get the frame rate right. The capture frame rate is 25 FPS,
PAL, but the playback frame rate is only around 1 FPS. 

I use the following pipeline in the sender side:

gst-launch v4l2src ! video/x-raw-yuv, width=320, height=240 ! tee name=t !
x264enc ! rtph264pay ! udpsink host=192.168.1.64 port=5000 t. ! queue !
xvimagesink &

And I use the this pipeline for the receiver:

gst-launch udpsrc
caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
port=5000 ! rtph264depay ! decodebin ! xvimagesink

I reduced the resolution so the sender does not have any CPU issue.  I also
tried the following pipeline to confirm that the frame rate out of the
encoder is right.

gst-launch v4l2src ! video/x-raw-yuv, width=320, height=240 ! x264enc
bitrate=64 ! tee name=t ! rtph264pay ! udpsink host=192.168.1.64 port=5000
t. ! queue ! decodebin ! xvimagesink &

What can I do the get the normal frame rate?

Thanks,
Yiliang

-- 
View this message in context: http://www.nabble.com/Incorrect-frame-rate-in-streaming-video-through-UDP.-tp25165354p25165354.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.





More information about the gstreamer-devel mailing list