需求:获取相机画面,并在连接HDMI线,在显示器上显示
查找设备
v4l2-ctl --list-devices
H65 USB CAMERA: H65 USB CAMERA (usb-0000:00:14.0-1):
/dev/video2
/dev/video3
播放视频
gst-launch-1.0 v4l2src device=/dev/video22 ! video/x-raw,width=640,height=480,framerate=30/1 ! videoconvert ! autovideosink
注意:把device替换成连接的摄像头设备
参考资料: