gst 测试摄像头命令

万事须己运,他得非我贤。这篇文章主要讲述gst 测试摄像头命令相关的知识,希望能为你提供帮助。
【gst 测试摄像头命令】
二、不显示图像的

gst-launch-1.0 v4l2src device=/dev/video0 num-buffers=300 ! video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h264enc maxperf-enable=true MeasureEncoderLatency=true ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 -v


gst-launch-1.0 v4l2src device=/dev/video1 num-buffers=300 ! video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h264enc maxperf-enable=true MeasureEncoderLatency=true ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 -v



gst-launch-1.0 v4l2src device=/dev/video2 num-buffers=300 ! video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h264enc maxperf-enable=true MeasureEncoderLatency=true ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 -v


gst-launch-1.0 v4l2src device=/dev/video3 num-buffers=300 ! video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h264enc maxperf-enable=true MeasureEncoderLatency=true ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 -v


gst-launch-1.0 v4l2src device=/dev/video4 num-buffers=300 ! video/x-raw,format=UYVY,width=1920,height=1080,framerate=30/1 ! nvvidconv ! video/x-raw(memory:NVMM),format=NV12 ! nvv4l2h264enc maxperf-enable=true MeasureEncoderLatency=true ! fpsdisplaysink text-overlay=0 video-sink=fakesink sync=0 -v



正常如下:显示
gst 测试摄像头命令

文章图片




    推荐阅读