Putting together a complex gstreamer command line...

Christophe Lafolet christophe.lafolet at laposte.net
Tue Apr 5 17:15:38 UTC 2016


Hello Nicko

- videomixer need a video/x-raw format and your camera are configured in 
video/x-h264
- In my release, x264enc need video/x-raw { I420, YV12, Y42B, Y444, 
NV12, I420_10LE, I422_10LE, Y444_10LE }
so it seems you will need a videoconvert between videomixer and x264enc


Regards




Le 05/04/2016 12:30, nicko a écrit :
> 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.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list