MPikkemaat wrote:Hello all,
I've been searching for a way to stream video without delay, and although I found some examples, I had problems getting it right, until I found the following commands to make it happen with gstreamer. Thought I would share it here:
on the pi:
Code: Select all
/opt/vc/bin/raspivid -t 999999 -h 720 -w 1080 -fps 25 -b 2000000 -o - | gst-launch-0.10 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.1.44 port=5000
on a pc or laptop (this was using ubuntu 12.10)
Code: Select all
gst-launch-0.10 -v tcpclientsrc host=192.168.1.44 port=5000 ! gdpdepay ! rtph264depay ! ffdec_h264 ! autovideosink sync=false
I'm trying something based on this with Gstreamer 1.0 from a Pi to a Pi with a slightly modified command on the receiver side.
The Commands I am using are:
Sender:
Code: Select all
raspivid -t 999999 -h 720 -w 1080 -fps 25 -b 2000000 -o - | gst-launch-1.0 -v fdsrc ! h264parse ! rtph264pay config-interval=1 pt=96 ! gdppay ! tcpserversink host=192.168.1.101 port=5000
Receiver:
Code: Select all
gst-launch-1.0 -v tcpclientsrc host=192.168.1.101 port=5000 ! gdpdepay ! rtph264depay ! h264parse ! omxh264dec ! videoconvert ! autovideosink sync=false
Although the video displays there is significant lag and the following types of warnings are continuously and repetitively being produced in great numbers on both the sender and the receiver:
Code: Select all
(gst-launch-1.0:10272): GStreamer-WARNING **: gstpad.c:3908:gst_pad_push_data:<gdppay0:src> Got data flow before stream-start event
(gst-launch-1.0:10272): GStreamer-WARNING **: gstpad.c:3677:gst_pad_chain_data_unchecked:<tcpserversink0:sink> Got data flow before stream-start event
(gst-launch-1.0:10272): GStreamer-WARNING **: gstpad.c:3908:gst_pad_push_data:<gdppay0:src> Got data flow before stream-start event
(gst-launch-1.0:10272): GStreamer-WARNING **: gstpad.c:3677:gst_pad_chain_data_unchecked:<tcpserversink0:sink> Got data flow before stream-start event
Has anyone got any thoughts on how to modify the pipelines to prevent/correct these warnings?