Putting together a complex gstreamer command line...

nicko nick at desmith.net
Tue Apr 5 10:30:00 UTC 2016


I now have got a lot further - with running both cameras simultaneously using
a new kernel (4.4.6+) and v4l2 driver for the Pi. However, the following
gstreamer command just hangs consuming zero CPU - I can't see why. The
pipeline goes into PLAYING but CPU usage is 0% and no data is streamed...
the videomixer element is just placing the two streams side-by-side...

Thoughts appreciated!

Thanks

Nick
 
FPS=10                          # Frames per second
WIDTH=320                       # Image width
HEIGHT=240                      # Image height
UPLINK_HOST=192.168.1.73        # Receiving host
PORT=5200                       # UDP port
#
# Start streaming data
#
function start_streaming
{
  gst-launch-1.0 -v videomixer name=mixer sink_1::xpos=0 sink_2::xpos=$WIDTH
\
  ! x264enc tune=zerolatency \
  ! h264parse \
  ! rtph264pay config-interval=10 pt=96 \
  ! queue \
  ! udpsink host=$UPLINK_HOST port=$PORT \
  v4l2src device=/dev/video0 \
  ! video/x-h264,width=$WIDTH,height=$HEIGHT,framerate=$FPS/1 \
  ! h264parse \
  ! decodebin \
  ! queue \
  ! mixer.sink_1 \
  v4l2src device=/dev/video1 \
  ! video/x-h264,width=$WIDTH,height=$HEIGHT,framerate=$FPS/1 \
  ! h264parse \
  ! decodebin \
  ! queue \
  ! mixer.sink_2
}
start_streamer



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Putting-together-a-complex-gstreamer-command-line-tp4676713p4676761.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list