Problems with RTSP streaming

Matthias Dodt MDodt at
Thu Feb 23 09:11:06 PST 2012


I am streaming an h264 encoded video in MPEG2TS. This works fine using
the RTSP Server but the playback on the client is full of artifacts
using playbin2.

However if i store the stream into a file and play it back later it
works perfect!:

gst-launch-0.10 rtspsrc location=rtsp:// !
rtpmp2tdepay ! ffdemux_mpegts name=dem ! video/x-h264 ! filesink

play video/h264 file(works):
gst-launch-0.10 filesrc location=d:/ !
video/x-h264,width=(int)1920,height=(int)1080,framerate=(fraction)25/1 !
ffdec_h264 ! queue ! ffmpegcolorspace ! D3dvideosink

If i use playbin2 directly to playback the video the ffdec_h264
complains a lot about the stream. Setting sync=false on the videosink
will make the playback stall from time to time, but most of the
artifacts are gone. So it seems that the data is beeing transmitted to
slow? It's an HD video... But bandwidth shouldn't be a problem ...

I read something about timestamps that need to be recomputed..?

Thanks for any hint!



More information about the gstreamer-devel mailing list