现在有4个摄像头,
如何捕获4个摄像头(/dev/video0 - video3)在一个进程像这样:
现在只能捕捉一个相机使用gst-launch如下:
gst-launch-1.0 v4l2src device=/dev/video0 ! video/x-raw,width=1280,height=720 ! videoconvert ! video/x-raw,format=I420 ! xvimagesink sync=0
- gst-launch-1.0 nvcompositor name=comp sink_0::xpos=0 sink_0::ypos=0 sink_0::width=1280 sink_0::height=720 \
- sink_1::xpos=1280 sink_1::ypos=0 sink_1::width=1280 sink_1::height=720 \
- sink_2::xpos=0 sink_2::ypos=720 sink_2::width=1280 sink_2::height=720 \
- sink_3::xpos=1280 sink_3::ypos=720 sink_3::width=1280 sink_3::height=720 \
- ! nvvidconv \
- ! 'video/x-raw(memory:NVMM