[英]If anyone has experience with the Nvidia Jetbot, do you know how to change the gstreamer pipeline to work with a webcam? I'm using a c170 Logitech
此管道使用 4l2 与 gst-launch-1.0 一起使用:
gst-launch-1.0 v4l2src device="/dev/video2" name=e, 'video/x-raw, width=640, height=480', videoconvert, 'video/x-raw, width=640, height=480 ,格式=(字符串)YUY2'! xvimagesink
这是原始模块使用的管道:
'nvarguscamerasrc: video/x-raw(memory,NVMM), width=%d, height=%d, format=(string)NV12, framerate=(fraction)%d/1, nvvidconv, video/x-raw。 宽度=(int)%d,高度=(int)%d。 格式=(字符串)BGRx,视频转换。 应用程序' % ( self,capture_width.self,capture_height.self.fps, self.width, self.height)
原始模块以nvarguscamerasrc
appsink
。 nvarguscamerasrc
读取到 NVVM memory,因此您需要使用 nvvidconv 将其转换为 cpu nvvidconv
。
对于 v4l,它直接读取到 cpu memory 所以你不需要nvvidconv
,但是你需要使用videoconvert
将它转换为 BGR 所以我相信这应该可以工作:
'v4l2src device=/dev/video2 ! video/x-raw, width=640, height=480 ! videoconvert ! appsink'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.