RK3588 QT摄像头开发 v412-ctl

root@RK3588:~# v4l2-ctl --list-formats-ext --device /dev/video1
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'MJPG' (Motion-JPEG, compressed)
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 160x90
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 160x120
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 176x144
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 320x180
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 320x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 432x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 800x448
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 800x600
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 864x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1024x576
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1600x896
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1920x1080
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 272x144
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 368x208
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 384x216
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 480x272
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 624x352
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 912x512
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 424x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 480x270
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 848x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 960x540
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1440x1080
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 960x720
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1200x1080
			Interval: Discrete 0.033s (30.000 fps)
	[1]: 'YUYV' (YUYV 4:2:2)
		Size: Discrete 640x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 160x90
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 160x120
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 176x144
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 320x180
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 320x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 352x288
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 432x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 640x360
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 800x448
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 800x600
			Interval: Discrete 0.042s (24.000 fps)
		Size: Discrete 864x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 1024x576
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 1280x720
			Interval: Discrete 0.100s (10.000 fps)
		Size: Discrete 1600x896
			Interval: Discrete 0.143s (7.000 fps)
		Size: Discrete 1920x1080
			Interval: Discrete 0.500s (2.000 fps)
		Size: Discrete 272x144
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 368x208
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 384x216
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 480x272
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 624x352
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 912x512
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 424x240
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 480x270
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 848x480
			Interval: Discrete 0.033s (30.000 fps)
		Size: Discrete 960x540
			Interval: Discrete 0.067s (15.000 fps)
		Size: Discrete 1440x1080
			Interval: Discrete 0.200s (5.000 fps)
		Size: Discrete 960x720
			Interval: Discrete 0.100s (10.000 fps)
		Size: Discrete 1200x1080
			Interval: Discrete 0.200s (5.000 fps)
root@RK3588:~# ffmpeg configure -codecs | grep h264
ffmpeg version 4.4.1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 11.3.0 (Buildroot -g718e80e)
  configuration: --enable-cross-compile --cross-prefix=/home/wangyonglin/Neardi-3588-SDK-Linux-V4.0/buildroot/output/rockchip_rk3588/host/bin/aarch64-buildroot-linux-gnu- --sysroot=/home/wangyonglin/Neardi-3588-SDK-Linux-V4.0/buildroot/output/rockchip_rk3588/host/aarch64-buildroot-linux-gnu/sysroot --host-cc=/usr/bin/gcc --arch=aarch64 --target-os=linux --disable-stripping --pkg-config=/home/wangyonglin/Neardi-3588-SDK-Linux-V4.0/buildroot/output/rockchip_rk3588/host/bin/pkg-config --disable-static --enable-shared --prefix=/usr --enable-avfilter --disable-version3 --enable-logging --enable-optimizations --disable-extra-warnings --enable-avdevice --enable-avcodec --enable-avformat --enable-network --disable-gray --enable-swscale-alpha --disable-small --enable-dct --enable-fft --enable-mdct --enable-rdft --disable-crystalhd --disable-dxva2 --enable-runtime-cpudetect --disable-hardcoded-tables --disable-mipsdsp --disable-mipsdspr2 --disable-msa --enable-hwaccels --disable-cuda --disable-cuvid --disable-nvenc --disable-avisynth --disable-frei0r --disable-libopencore-amrnb --disable-libopencore-amrwb --disable-libdc1394 --disable-libgsm --disable-libilbc --disable-libvo-amrwbenc --disable-symver --disable-doc --enable-gpl --enable-nonfree --enable-ffmpeg --enable-ffplay --enable-libv4l2 --enable-avresample --enable-ffprobe --disable-libxcb --enable-postproc --enable-swscale --enable-indevs --enable-alsa --enable-outdevs --enable-pthreads --enable-zlib --enable-bzlib --disable-libfdk-aac --disable-libcdio --disable-gnutls --enable-openssl --enable-libdrm --disable-libopenh264 --enable-libvorbis --enable-muxer=ogg --enable-encoder=libvorbis --disable-vaapi --disable-vdpau --disable-mmal --disable-omx --disable-omx-rpi --disable-libopencv --enable-libopus --enable-libvpx --disable-libass --disable-libbluray --disable-libmfx --enable-librtmp --disable-libmp3lame --disable-libmodplug --enable-libspeex --enable-libtheora --disable-iconv --enable-libfreetype --enable-fontconfig --disable-libopenjpeg --enable-libx264 --enable-libx265 --disable-libdav1d --disable-x86asm --disable-mmx --disable-sse --disable-sse2 --disable-sse3 --disable-ssse3 --disable-sse4 --disable-sse42 --disable-avx --disable-avx2 --disable-armv6 --disable-armv6t2 --enable-vfp --enable-neon --disable-altivec --extra-libs=-latomic --enable-pic --cpu=cortex-a76.cortex-a55
  libavutil      56. 70.100 / 56. 70.100
  libavcodec     58.134.100 / 58.134.100
  libavformat    58. 76.100 / 58. 76.100
  libavdevice    58. 13.100 / 58. 13.100
  libavfilter     7.110.100 /  7.110.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  9.100 /  5.  9.100
  libswresample   3.  9.100 /  3.  9.100
  libpostproc    55.  9.100 / 55.  9.100
 DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_v4l2m2m ) (encoders: libx264 libx264rgb h264_v4l2m2m )
root@RK3588:~# v4l2-ctl --list-formats --device /dev/video1
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'MJPG' (Motion-JPEG, compressed)
	[1]: 'YUYV' (YUYV 4:2:2)
root@RK3588:~# gst-inspect-1.0 | grep mpp
rockchipmpp:  mpph264enc: Rockchip Mpp H264 Encoder
rockchipmpp:  mpph265enc: Rockchip Mpp H265 Encoder
rockchipmpp:  mppjpegdec: Rockchip's MPP JPEG image decoder
rockchipmpp:  mppjpegenc: Rockchip Mpp JPEG Encoder
rockchipmpp:  mppvideodec: Rockchip's MPP video decoder
rockchipmpp:  mppvpxalphadecodebin: VP8/VP9 Alpha Decoder
typefindfunctions: audio/x-musepack: mpc, mpp, mp+

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
### 回答1: 在RK3399平台上,使用v4l2-ctl命令来控制一个USB接口同时连接多个摄像头是可能的。v4l2-ctl是一个适用于V4L2设备的工具,可以对视频捕获设备进行配置和控制。 首先,我们需要确认RK3399平台上是否支持多个摄像头通过一个USB接口进行连接。一般来说,RK3399平台上的USB控制器应该支持多个USB摄像头设备同时操作。但是,需要注意的是,每个USB接口的带宽是有限的,如果连接太多的摄像头可能会导致数据传输速度降低或产生延迟。 接下来,我们可以通过v4l2-ctl命令来控制每个摄像头。v4l2-ctl命令是一个命令行工具,可以用于设置和查询V4L2设备的属性。在这种情况下,我们可以使用`v4l2-ctl --list-devices`命令来列出系统中连接的所有摄像头设备。 为了控制每个摄像头,我们可以使用相关的v4l2-ctl选项和参数。例如,可以使用`-d`或`--device`选项指定要控制的摄像头设备。此外,还可以使用其他选项和参数来设置摄像头的属性,如亮度、对比度、曝光等。 需要注意的是,由于连接多个摄像头可能会占用较多的系统资源和USB带宽,因此建议合理配置和管理摄像头设备,避免资源冲突和性能问题。此外,在使用v4l2-ctl命令前,需要确保已经正确安装了v4l2-utils软件包。 总的来说,通过在RK3399平台上使用v4l2-ctl命令,我们可以实现通过一个USB接口连接和控制多个摄像头设备。但是需要注意设备带宽和资源管理,以确保系统的稳定性和性能。 ### 回答2: RK3399是一款强大的处理器芯片,支持多媒体应用,包括视频录制和摄像功能。v4l2-ctl是Linux系统上用于控制视频设备的命令行工具。 在RK3399上,可以通过v4l2-ctl命令来控制多个连接到USB接口的摄像头。一般情况下,每个摄像头设备都被认为是一个独立的视频设备,有自己的设备节点。 要使用v4l2-ctl命令控制多个摄像头,首先需要找出每个摄像头设备的设备节点。可以通过ls命令查看/dev目录下的video设备节点,一般以videoX的形式命名,其中X为数字。 接下来,在终端中运行v4l2-ctl命令,指定要控制的摄像头设备节点,格式为v4l2-ctl -d /dev/videoX,其中X为摄像头设备的编号。这样就可以使用v4l2-ctl命令来控制该摄像头的相关参数,例如调整亮度、对比度、分辨率等。 如果想控制多个摄像头,只需分别运行v4l2-ctl命令,指定不同的摄像头设备节点即可。例如,如果有两个摄像头设备节点分别为/dev/video0和/dev/video1,可以同时运行两个v4l2-ctl命令来控制这两个摄像头的参数。 需要注意的是,同时使用多个摄像头可能会增加系统的资源消耗,并可能需要对摄像头进行适当的配置和优化,以确保正常运行。此外,可能还需要使用其他的软件工具或编程库来处理多个摄像头的输入流,以满足具体的应用需求。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值