RTSP Server test-launch question

Tim Müller tim at centricular.com
Thu May 29 08:18:05 PDT 2014


On Thu, 2014-05-29 at 14:16 +0100, Joel Holdsworth wrote:

Hi Joel,

> I'm trying to set up an RTSP server which plays the video stream
> directly from a file. I've been experimenting with test-launch:
> 
> ./test-launch "( filesrc location=/home/joel/Downloads/ToS-4k-1920.mov !
> qtdemux ! h264parse ! rtph264pay name=pay0 pt=96 )"
> 
> ./test-launch "( filesrc
> location=/home/joel/Downloads/Sintel.2010.1080p.mkv ! matroskademux !
> h264parse ! rtph264pay name=pay0 pt=96 )"
> 
> I either case the pipeline fails to start correctly when vlc connects.
> Looking at the debug output, it seems to be having trouble connecting
> the demux element to the h264parse element. Is there meant to be some
> other element in there?

No, that looks like it should work, assuming the video is actually H.264
(although there's no need to have an h264parse before the rtph264pay
payloader, the payloader should accept all variants of parsed h264
data).

> Weirdly everything works fine if I do this:
> 
> gst-launch filesrc location=/home/joel/Downloads/Sintel.2010.1080p.mkv !
> matroskademux ! h264parse ! decodebin ! autovideosink
> 
> ...no problem connecting the demux to the h264parse elements.
> 
> This was all done with gstreamer 0.10 series, which is what was
> available packaged in Ubuntu 13.10. Should I try gstreamer 1.0 series?
> What's the most convenient way to get this without messing up my
> distro's other gstreamer apps?

Yes, you should definitely use the 1.0 series.

I have tried this with git master (1.3.x):

 ~/gst/master/gst-rtsp-server/examples$ ./test-uri file:///path/foo.mkv
or
 ~/gst/master/gst-rtsp-server/examples$ ./test-uri file:///path/foo.mp4

and

 $ gst-play-1.0 rtsp://127.0.0.1:8554/test

and that works beautifully.

(Using gst-play from 1.2 I had some problems though, it didn't actually
start playing, didn't investigate why, looked like it didn't receive any
data for some reason).

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com



More information about the gstreamer-devel mailing list