h.264 Video Streaming over TCP

Tim-Philipp Müller t.i.m at zen.co.uk
Mon Mar 4 02:56:02 PST 2013


On Mon, 2013-03-04 at 00:00 -0800, pfarmer wrote:

> To a)
> Server:
>  gst-launch-1.0 videotestsrc horizontal-speed=5 ! x264enc tune="zerolatency"
> threads=1 ! tcpserversink port=8554
> Receiver:
>  gst-launch-1.0 tcpclientsrc port=8554 host=localhost ! h264parse !
> avdec_h264 ! xvimagesink
> 
> *The receiver does not go from the Prerolling into the Playing state. I
> somehow should to say to the piple to be live which does not need to
> preroll. How can I do this?*

Pass -v to gst-launch-1.0 and check what H264 caps are negotiated at the
sender. It should be stream-format=byte-stream, not avc. If it's avc,
add an .... ! video/x-h264,stream-format=byte-stream ! ...  after the
encoder.

Cheers
 -Tim

> To b)
> Server:
>  gst-launch-1.0 videotestsrc horizontal-speed=5 ! x264enc tune="zerolatency"
> threads=1 ! rtph264pay config-interval=1 ! gdppay ! tcpserversink port=8554
> Receiver:
>  gst-launch-1.0 tcpclientsrc port=8554 host=localhost ! gdpdepay !
> application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay ! avdec_h264
> ! xvimagesink
> 
> This works. But well its somewhat in a roundabout way and has quiet some
> overhead.
> 
> 
> To c)
> Server:
>  gst-launch-1.0 videotestsrc horizontal-speed=5 ! x264enc tune="zerolatency"
> threads=1 ! mpegtsmux ! tcpserversink port=8554 
> Receiver:
>  gst-launch-1.0 tcpclientsrc port=8554 host=localhost  ! tsdemux ! h264parse
> ! avdec_h264 ! xvimagesink
>  
> This works fine. Is it normal that there must be no tsparse before the
> tsdemux?
> 
> 
> 
> --
> View this message in context: http://gstreamer-devel.966125.n4.nabble.com/h-264-Video-Streaming-over-TCP-tp4658747p4658856.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




More information about the gstreamer-devel mailing list