Sending TS over TCP

Peter Maersk-Moller pmaersk at gmail.com
Tue Jul 8 05:01:24 PDT 2014


The following will work like a charm

gst-launch-1.0 -v videotestsrc is-live=true ! x264enc ! h264parse !
matroskamux streamable=true ! queue ! tcpserversink host=0.0.0.0 port=5000
sync-method=2 recover-policy=keyframe

gst-launch-1.0 tcpclientsrc host=127.0.0.1 port=5000 ! decodebin !
autovideosink

The follwoing works .... but usually takes 4-20 seconds before it will
play. Go figure. Maybe TS is still broken in GStreamer 1.3.2

gst-launch-1.0 -v videotestsrc is-live=true ! x264enc ! h264parse !
mpegtsmux ! tsparse ! queue ! tcpserversink host=0.0.0.0 port=5000
sync-method=2 recover-policy=keyframe

gst-launch-1.0 tcpclientsrc host=127.0.0.1 port=5000 ! decodebin !
autovideosink

Omit the tsparse in the server then the client will often take a longer
time to play or never play at all, but then again, sometimes it works.
Seems broken that way. Go figure.

best regards
Peter MM




On Tue, Jul 8, 2014 at 12:05 PM, Baby Octopus <jagadishkamathk at gmail.com>
wrote:

> Hi,
>
> I want to send TS packets over TCP and receive ta as follows
>
> *Sender*
> gst-launch-1.0 videotestsrc ! videoconvert ! x264enc ! mpegtsmux !
> tcpclientsink
>
> *Receiver*
> gst-launch-1.0 tcpserversrc ! decodebin ! videoconvert ! autovideosink
>
> I'm not sure if this would work since TCP is a stream based protocol. Will
> adding gdppay and gdpdepay help here? Any ideas pls :)
>
> ~BO
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Sending-TS-over-TCP-tp4667832.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140708/10e1026d/attachment.html>


More information about the gstreamer-devel mailing list