How to stream mpegts over http?

Ian Molton imolton at ad-holdings.co.uk
Wed Feb 4 04:14:49 PST 2015


On 04/02/15 11:43, Arjen Veenhuizen wrote:
> You're probably better of using tcpserversink
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-plugins/html/gst-plugins-base-plugins-tcpserversink.html

Having recently become aware of the existence of this, how is it supposed to work?

It looks like it should fit pretty much anywhere in a pipeline, allowing you to fling the data to the remainder of the pipeline elsewhere, but in practice, it seems to do absolutely nothing...

#server
gst-launch-1.0 -v filesrc location=/home/ian/Downloads/big_buck_bunny_1080p_h264.mov ! qtdemux ! queue ! h264parse ! v4l2video3dec ! tcpserversink host=0.0.0.0 port=3000 sync=false

#clilent
gst-launch-1.0 tcpclientsrc port=3000 host=192.168.113.145 ! autovideoconvert ! autovideosink

It would be useful if gstreamer told me /why/ it planned on doing nothing... both ends just sit there, sulking.

The server end says:

/GstPipeline:pipeline0/GstTCPServerSink:tcpserversink0.GstPad:sink: caps = "video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)1920\,\ height\=\(int\)1088\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\ interlace-mode\=\(string\)progressive\,\ colorimetry\=\(string\)bt709\,\ framerate\=\(fraction\)24/1"
Redistribute latency...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock

And the client:

Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...

-Ian
-Ian


More information about the gstreamer-devel mailing list