命令
nisy@raspberrypi:~ $ uname -a
Linux raspberrypi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
nisy@raspberrypi:~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 11 (bullseye)"
NAME="Raspbian GNU/Linux"
VERSION_ID="11"
VERSION="11 (bullseye)"
VERSION_CODENAME=bullseye
ID=raspbian
ID_LIKE=debian
HOME_URL="<http://www.raspbian.org/>"
SUPPORT_URL="<http://www.raspbian.org/RaspbianForums>"
BUG_REPORT_URL="<http://www.raspbian.org/RaspbianBugs>"
文件系统
sysfs文件系统
nisy@raspberrypi:~ $ ls -al /sys/devices/platform/
total 0
drwxr-xr-x 26 root root 0 Sep 13 2022 .
drwxr-xr-x 10 root root 0 Sep 13 2022 ..
drwxr-xr-x 4 root root 0 Mar 19 23:06 3ef62cc0.nvram
drwxr-xr-x 3 root root 0 Mar 19 23:06 arm-pmu
drwxr-xr-x 4 root root 0 Mar 19 23:06 cam1_regulator
drwxr-xr-x 4 root root 0 Mar 19 23:06 cam_dummy_reg
drwxr-xr-x 3 root root 0 Mar 19 23:06 chosen
drwxr-xr-x 3 root root 0 Mar 19 23:06 cpufreq-dt
drwxr-xr-x 4 root root 0 Sep 13 2022 emmc2bus
drwxr-xr-x 4 root root 0 Mar 19 23:06 'Fixed MDIO bus.0'
drwxr-xr-x 4 root root 0 Mar 19 23:06 fixedregulator_3v3
drwxr-xr-x 4 root root 0 Mar 19 23:06 fixedregulator_5v0
drwxr-xr-x 5 root root 0 Mar 19 23:06 gpu
drwxr-xr-x 3 root root 0 Mar 19 23:06 kgdboc
drwxr-xr-x 4 root root 0 Mar 19 23:06 leds
drwxr-xr-x 3 root root 0 Mar 19 23:06 phy
drwxr-xr-x 2 root root 0 Mar 19 23:23 power
drwxr-xr-x 4 root root 0 Mar 19 23:06 reg-dummy
drwxr-xr-x 3 root root 0 Mar 19 23:06 regulatory.0
drwxr-xr-x 7 root root 0 Mar 19 23:06 scb
drwxr-xr-x 4 root root 0 Mar 19 23:06 sd_io_1v8_reg
drwxr-xr-x 4 root root 0 Mar 19 23:06 sd_vcc_reg
drwxr-xr-x 3 root root 0 Mar 19 23:06 snd-soc-dummy
drwxr-xr-x 31 root root 0 Mar 19 23:06 soc
drwxr-xr-x 3 root root 0 Mar 19 23:06 timer
-rw-r--r-- 1 root root 4096 Mar 19 23:06 uevent
drwxr-xr-x 4 root root 0 Mar 19 23:06 v3dbus
摄像头相关
//从基于Debian Bullseye 的 Raspberry Pi OS 开始的操作系统版本,将不再支持旧的相机系统和应用程序,而 Raspberry Pi 的 libcamera-app将被构建和预安装。
libcamera-apps是基于libcamera的相机控制例程,它提供了一系列的功能来控制和获取相机的图像和视频。以下是如何在树莓派上使用libcamera-apps的一些例子:
- libcamera-hello:
这个应用主要用于输出从相机中获取的预览图像。你可以通过运行以下命令来使用它:
libcamera-hello
运行此命令后,你应该能在终端窗口中看到从相机捕获的实时预览图像。 2. libcamera-jpeg:
这个应用允许你通过相机获取高分辨率的JPEG图像。你可以使用以下命令来捕获并保存一张JPEG图像:
libcamera-jpeg -o output.jpg
这将使用相机捕获一张JPEG图像,并将其保存为output.jpg
。
3. libcamera-still:
这个应用的功能类似于raspistill,它用于捕获相机的静态图像。你可以使用类似的命令来捕获图像,并指定输出文件名和格式。 4. libcamera-vid:
这是一个视频捕获程序,允许你录制相机的视频流。例如,要录制一个5秒钟的视频,你可以使用以下命令:
libcamera-vid -t 5 -o output.h264
这将录制一个5秒钟的视频,并将其保存为H.264格式的output.h264
文件。
5. libcamera-raw:
这个程序允许你直接从相机中获取未压缩的原始RAW图像。这对于需要最大图像质量和后处理灵活性的用户来说非常有用。 6. libcamera-detect:
如果用户在树莓派上安装了TensorFlow Lite软件,则可以使用此程序进行目标检测图像捕获。这允许你使用机器学习模型在实时视频流中检测特定的对象或特征。
请注意,使用libcamera-apps之前,你需要确保你的树莓派已经正确安装了libcamera和相关依赖,并且相机硬件已经正确连接和配置。
为了获得更详细的信息和更多的使用示例,你可以查阅libcamera-apps的官方文档或相关的社区论坛。这些资源通常提供了更深入的指南和常见问题解答,帮助你更好地理解和使用这些应用。
v4l2-ctl 命令(参考 wiki.100ask.org/V4l2-ctl ):
Raspbian GNU/Linux 10 (buster)下
pi@raspberrypi:~ $ ls -al /dev/video*
crw-rw----+ 1 root video 81, 6 4\u6708 18 23:44 /dev/video0
crw-rw----+ 1 root video 81, 4 4\u6708 18 23:44 /dev/video10
crw-rw----+ 1 root video 81, 5 4\u6708 18 23:44 /dev/video11
crw-rw----+ 1 root video 81, 7 4\u6708 18 23:44 /dev/video12
crw-rw----+ 1 root video 81, 0 4\u6708 18 23:44 /dev/video13
crw-rw----+ 1 root video 81, 1 4\u6708 18 23:44 /dev/video14
crw-rw----+ 1 root video 81, 2 4\u6708 18 23:44 /dev/video15
crw-rw----+ 1 root video 81, 3 4\u6708 18 23:44 /dev/video16
pi@raspberrypi:~ $ v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
/dev/video10
/dev/video11
/dev/video12
bcm2835-isp (platform:bcm2835-isp):
/dev/video13
/dev/video14
/dev/video15
/dev/video16
mmal service 16.1 (platform:bcm2835-v4l2-0):
/dev/video0
pi@raspberrypi:~ $ v4l2-ctl -d /dev/video0 -D
Driver Info:
Driver name : bm2835 mmal
Card type : mmal service 16.1
Bus info : platform:bcm2835-v4l2-0
Driver version : 5.10.52
Capabilities : 0x85200005
Video Capture
Video Overlay
Read/Write
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x05200005
Video Capture
Video Overlay
Read/Write
Streaming
Extended Pix Format
pi@raspberrypi:~ $ v4l2-ctl -d /dev/video10 -D
Driver Info:
Driver name : bcm2835-codec
Card type : bcm2835-codec-decode
Bus info : platform:bcm2835-codec
Driver version : 5.10.52
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-codec
Model : bcm2835-codec
Serial : 0000
Bus info : platform:bcm2835-codec
Media version : 5.10.52
Hardware revision: 0x00000001 (1)
Driver version : 5.10.52
Interface Info:
ID : 0x0300000c
Type : V4L Video
Entity Info:
ID : 0x00000001 (1)
Name : bcm2835-codec-decode-source
Function : V4L2 I/O
Pad 0x01000002 : 0: Source
Link 0x02000008: to remote pad 0x1000004 of entity 'bcm2835-codec-decode-proc': Data, Enabled, Immutable
pi@raspberrypi:~ $ v4l2-ctl -d /dev/video11 -D
Driver Info:
Driver name : bcm2835-codec
Card type : bcm2835-codec-encode
Bus info : platform:bcm2835-codec
Driver version : 5.10.52
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-codec
Model : bcm2835-codec
Serial : 0000
Bus info : platform:bcm2835-codec
Media version : 5.10.52
Hardware revision: 0x00000001 (1)
Driver version : 5.10.52
Interface Info:
ID : 0x0300001a
Type : V4L Video
Entity Info:
ID : 0x0000000f (15)
Name : bcm2835-codec-encode-source
Function : V4L2 I/O
Pad 0x01000010 : 0: Source
Link 0x02000016: to remote pad 0x1000012 of entity 'bcm2835-codec-encode-proc': Data, Enabled, Immutable
pi@raspberrypi:~ $ v4l2-ctl -d /dev/video12 -D
Driver Info:
Driver name : bcm2835-codec
Card type : bcm2835-codec-isp
Bus info : platform:bcm2835-codec
Driver version : 5.10.52
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-codec
Model : bcm2835-codec
Serial : 0000
Bus info : platform:bcm2835-codec
Media version : 5.10.52
Hardware revision: 0x00000001 (1)
Driver version : 5.10.52
Interface Info:
ID : 0x03000028
Type : V4L Video
Entity Info:
ID : 0x0000001d (29)
Name : bcm2835-codec-isp-source
Function : V4L2 I/O
Pad 0x0100001e : 0: Source
Link 0x02000024: to remote pad 0x1000020 of entity 'bcm2835-codec-isp-proc': Data, Enabled, Immutable
pi@raspberrypi:~ $ v4l2-ctl -d /dev/video0 -L
User Controls
brightness 0x00980900 (int) : min=0 max=100 step=1 default=50 value=50 flags=slider
contrast 0x00980901 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
saturation 0x00980902 (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
red_balance 0x0098090e (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider
blue_balance 0x0098090f (int) : min=1 max=7999 step=1 default=1000 value=1000 flags=slider
horizontal_flip 0x00980914 (bool) : default=0 value=0
vertical_flip 0x00980915 (bool) : default=0 value=0
power_line_frequency 0x00980918 (menu) : min=0 max=3 default=1 value=1
0: Disabled
1: 50 Hz
2: 60 Hz
3: Auto
sharpness 0x0098091b (int) : min=-100 max=100 step=1 default=0 value=0 flags=slider
color_effects 0x0098091f (menu) : min=0 max=15 default=0 value=0
0: None
1: Black & White
2: Sepia
3: Negative
4: Emboss
5: Sketch
6: Sky Blue
7: Grass Green
8: Skin Whiten
9: Vivid
10: Aqua
11: Art Freeze
12: Silhouette
13: Solarization
14: Antique
15: Set Cb/Cr
rotate 0x00980922 (int) : min=0 max=360 step=90 default=0 value=0 flags=modify-layout
color_effects_cbcr 0x0098092a (int) : min=0 max=65535 step=1 default=32896 value=32896
Codec Controls
video_bitrate_mode 0x009909ce (menu) : min=0 max=1 default=0 value=0 flags=update
0: Variable Bitrate
1: Constant Bitrate
video_bitrate 0x009909cf (int) : min=25000 max=25000000 step=25000 default=10000000 value=10000000
repeat_sequence_header 0x009909e2 (bool) : default=0 value=0
h264_i_frame_period 0x00990a66 (int) : min=0 max=2147483647 step=1 default=60 value=60
h264_level 0x00990a67 (menu) : min=0 max=13 default=11 value=11
0: 1
1: 1b
2: 1.1
3: 1.2
4: 1.3
5: 2
6: 2.1
7: 2.2
8: 3
9: 3.1
10: 3.2
11: 4
12: 4.1
13: 4.2
h264_profile 0x00990a6b (menu) : min=0 max=4 default=4 value=4
0: Baseline
1: Constrained Baseline
2: Main
4: High
Camera Controls
auto_exposure 0x009a0901 (menu) : min=0 max=3 default=0 value=0
0: Auto Mode
1: Manual Mode
exposure_time_absolute 0x009a0902 (int) : min=1 max=10000 step=1 default=1000 value=1000
exposure_dynamic_framerate 0x009a0903 (bool) : default=0 value=0
auto_exposure_bias 0x009a0913 (intmenu): min=0 max=24 default=12 value=12
0: -4000 (0xfffffffffffff060)
1: -3667 (0xfffffffffffff1ad)
2: -3333 (0xfffffffffffff2fb)
3: -3000 (0xfffffffffffff448)
4: -2667 (0xfffffffffffff595)
5: -2333 (0xfffffffffffff6e3)
6: -2000 (0xfffffffffffff830)
7: -1667 (0xfffffffffffff97d)
8: -1333 (0xfffffffffffffacb)
9: -1000 (0xfffffffffffffc18)
10: -667 (0xfffffffffffffd65)
11: -333 (0xfffffffffffffeb3)
12: 0 (0x0)
13: 333 (0x14d)
14: 667 (0x29b)
15: 1000 (0x3e8)
16: 1333 (0x535)
17: 1667 (0x683)
18: 2000 (0x7d0)
19: 2333 (0x91d)
20: 2667 (0xa6b)
21: 3000 (0xbb8)
22: 3333 (0xd05)
23: 3667 (0xe53)
24: 4000 (0xfa0)
white_balance_auto_preset 0x009a0914 (menu) : min=0 max=10 default=1 value=1
0: Manual
1: Auto
2: Incandescent
3: Fluorescent
4: Fluorescent H
5: Horizon
6: Daylight
7: Flash
8: Cloudy
9: Shade
10: Greyworld
image_stabilization 0x009a0916 (bool) : default=0 value=0
iso_sensitivity 0x009a0917 (intmenu): min=0 max=4 default=0 value=0
0: 0 (0x0)
1: 100000 (0x186a0)
2: 200000 (0x30d40)
3: 400000 (0x61a80)
4: 800000 (0xc3500)
iso_sensitivity_auto 0x009a0918 (menu) : min=0 max=1 default=1 value=1
0: Manual
1: Auto
exposure_metering_mode 0x009a0919 (menu) : min=0 max=3 default=0 value=0
0: Average
1: Center Weighted
2: Spot
3: Matrix
scene_mode 0x009a091a (menu) : min=0 max=13 default=0 value=0
0: None
8: Night
11: Sports
JPEG Compression Controls
compression_quality 0x009d0903 (int) : min=1 max=100 step=1 default=30 value=30
pi@raspberrypi:~ $
pi@raspberrypi:~ $ v4l2-ctl --list-formats-ext
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture
[0]: 'YU12' (Planar YUV 4:2:0)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[1]: 'YUYV' (YUYV 4:2:2)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[2]: 'RGB3' (24-bit RGB 8-8-8)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[3]: 'JPEG' (JFIF JPEG, compressed)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[4]: 'H264' (H.264, compressed)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[5]: 'MJPG' (Motion-JPEG, compressed)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[6]: 'YVYU' (YVYU 4:2:2)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[7]: 'VYUY' (VYUY 4:2:2)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[8]: 'UYVY' (UYVY 4:2:2)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[9]: 'NV12' (Y/CbCr 4:2:0)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[10]: 'BGR3' (24-bit BGR 8-8-8)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[11]: 'YV12' (Planar YVU 4:2:0)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[12]: 'NV21' (Y/CrCb 4:2:0)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
[13]: 'RX24' (32-bit XBGR 8-8-8-8)
Size: Stepwise 32x32 - 2592x1944 with step 2/2
pi@raspberrypi:~ $
其他
内核config文件 nisy@raspberrypi:/boot $ mousepad config.txt
# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16
# uncomment to force a console size. By default it will be display's size minus
# overscan.
#framebuffer_width=1280
#framebuffer_height=720
# uncomment if hdmi display is not detected and composite is being output
#hdmi_force_hotplug=1
# uncomment to force a specific HDMI mode (this will force VGA)
#hdmi_group=1
#hdmi_mode=1
# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2
# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4
# uncomment for composite PAL
#sdtv_mode=2
#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800
# Uncomment some or all of these to enable the optional hardware interfaces
#dtparam=i2c_arm=on
#dtparam=i2s=on
#dtparam=spi=on
# Uncomment this to enable infrared communication.
#dtoverlay=gpio-ir,gpio_pin=17
#dtoverlay=gpio-ir-tx,gpio_pin=18
# Additional overlays and parameters are documented /boot/overlays/README
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
# Automatically load overlays for detected cameras
camera_auto_detect=1
# Automatically load overlays for detected DSI displays
display_auto_detect=1
# Enable DRM VC4 V3D driver
dtoverlay=vc4-kms-v3d
max_framebuffers=2
# Disable compensation for displays with overscan
disable_overscan=1
[cm4]
# Enable host mode on the 2711 built-in XHCI USB controller.
# This line should be removed if the legacy DWC2 controller is required
# (e.g. for USB device mode) or if USB support is not required.
otg_mode=1
[all]
[pi4]
# Run as fast as firmware / board allows
arm_boost=1
[all]
# NOOBS Auto-generated Settings:
Raspbian GNU/Linux 11 (bullseye)下接摄像头
nisy@raspberrypi:~ $ ls -al /sys/bus/media/devices
total 0
drwxr-xr-x 2 root root 0 Mar 19 22:31 .
drwxr-xr-x 4 root root 0 Mar 19 22:17 ..
lrwxrwxrwx 1 root root 0 Mar 19 22:31 media0 -> ../../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/media0
lrwxrwxrwx 1 root root 0 Mar 19 22:31 media1 -> ../../../devices/platform/soc/fe801000.csi/media1
lrwxrwxrwx 1 root root 0 Mar 19 22:31 media2 -> ../../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/media2
lrwxrwxrwx 1 root root 0 Mar 19 22:31 media3 -> ../../../devices/platform/scb/feb10000.codec/media3
lrwxrwxrwx 1 root root 0 Mar 19 22:31 media4 -> ../../../devices/platform/soc/fe00b840.mailbox/bcm2835-codec/media4
nisy@raspberrypi:~ $ ls -al /sys/class/video4linux
total 0
drwxr-xr-x 2 root root 0 Mar 19 22:17 .
drwxr-xr-x 63 root root 0 Sep 13 2022 ..
lrwxrwxrwx 1 root root 0 Mar 19 22:17 v4l-subdev0 -> ../../devices/platform/soc/fe205000.i2c/i2c-22/i2c-10/10-0036/video4linux/v4l-subdev0
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video0 -> ../../devices/platform/soc/fe801000.csi/video4linux/video0
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video10 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-codec/video4linux/video10
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video11 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-codec/video4linux/video11
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video12 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-codec/video4linux/video12
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video13 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video13
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video14 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video14
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video15 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video15
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video16 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video16
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video18 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-codec/video4linux/video18
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video19 -> ../../devices/platform/scb/feb10000.codec/video4linux/video19
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video20 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video20
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video21 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video21
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video22 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video22
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video23 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-isp/video4linux/video23
lrwxrwxrwx 1 root root 0 Mar 19 22:17 video31 -> ../../devices/platform/soc/fe00b840.mailbox/bcm2835-codec/video4linux/video31
nisy@raspberrypi:~ i ;echo dev:i/dev); echo name:i/name);echo index:i/index);echo link_name:i/link_name);echo; done
/sys/class/video4linux/video0
dev:81:14
name:unicam-image
index:0
cat: /sys/class/video4linux/video0/link_name: No such file or directory
link_name:
/sys/class/video4linux/video10
dev:81:8
name:bcm2835-codec-decode
index:0
cat: /sys/class/video4linux/video10/link_name: No such file or directory
link_name:
/sys/class/video4linux/video11
dev:81:10
name:bcm2835-codec-encode
index:0
cat: /sys/class/video4linux/video11/link_name: No such file or directory
link_name:
/sys/class/video4linux/video12
dev:81:11
name:bcm2835-codec-isp
index:0
cat: /sys/class/video4linux/video12/link_name: No such file or directory
link_name:
/sys/class/video4linux/video13
dev:81:0
name:bcm2835-isp-output0
index:0
cat: /sys/class/video4linux/video13/link_name: No such file or directory
link_name:
/sys/class/video4linux/video14
dev:81:1
name:bcm2835-isp-capture0
index:1
cat: /sys/class/video4linux/video14/link_name: No such file or directory
link_name:
/sys/class/video4linux/video15
dev:81:2
name:bcm2835-isp-capture1
index:2
cat: /sys/class/video4linux/video15/link_name: No such file or directory
link_name:
/sys/class/video4linux/video16
dev:81:3
name:bcm2835-isp-stats2
index:3
cat: /sys/class/video4linux/video16/link_name: No such file or directory
link_name:
/sys/class/video4linux/video18
dev:81:12
name:bcm2835-codec-image_fx
index:0
cat: /sys/class/video4linux/video18/link_name: No such file or directory
link_name:
/sys/class/video4linux/video19
dev:81:9
name:rpivid
index:0
cat: /sys/class/video4linux/video19/link_name: No such file or directory
link_name:
/sys/class/video4linux/video20
dev:81:4
name:bcm2835-isp-output0
index:0
cat: /sys/class/video4linux/video20/link_name: No such file or directory
link_name:
/sys/class/video4linux/video21
dev:81:5
name:bcm2835-isp-capture0
index:1
cat: /sys/class/video4linux/video21/link_name: No such file or directory
link_name:
/sys/class/video4linux/video22
dev:81:6
name:bcm2835-isp-capture1
index:2
cat: /sys/class/video4linux/video22/link_name: No such file or directory
link_name:
/sys/class/video4linux/video23
dev:81:7
name:bcm2835-isp-stats2
index:3
cat: /sys/class/video4linux/video23/link_name: No such file or directory
link_name:
/sys/class/video4linux/video31
dev:81:13
name:bcm2835-codec-encode_image
index:0
cat: /sys/class/video4linux/video31/link_name: No such file or directory
link_name:
nisy@raspberrypi:~ i ;echo dev:i/dev); echo name:i/name);echo index:i/index);echo link_name:i/link_name);echo; done
/sys/class/video4linux/v4l-subdev0
dev:81:15
name:ov5647 10-0036
index:1
cat: /sys/class/video4linux/v4l-subdev0/link_name: No such file or directory
link_name:
nisy@raspberrypi:~ i ;echo dev:i/dev); echo model:i/model);echo; done
/sys/bus/media/devices/media0
dev:238:0
model:bcm2835-isp
/sys/bus/media/devices/media1
dev:238:1
model:unicam
/sys/bus/media/devices/media2
dev:238:2
model:bcm2835-isp
/sys/bus/media/devices/media3
dev:238:3
model:rpivid
/sys/bus/media/devices/media4
dev:238:4
model:bcm2835-codec
nisy@raspberrypi:~ $ ls -al /dev/video*
crw-rw----+ 1 root video 81, 14 Mar 17 20:29 /dev/video0
crw-rw----+ 1 root video 81, 4 Mar 17 20:29 /dev/video10
crw-rw----+ 1 root video 81, 5 Mar 17 20:29 /dev/video11
crw-rw----+ 1 root video 81, 6 Mar 17 20:29 /dev/video12
crw-rw----+ 1 root video 81, 1 Mar 17 20:29 /dev/video13
crw-rw----+ 1 root video 81, 2 Mar 17 20:29 /dev/video14
crw-rw----+ 1 root video 81, 3 Mar 17 20:29 /dev/video15
crw-rw----+ 1 root video 81, 7 Mar 17 20:29 /dev/video16
crw-rw----+ 1 root video 81, 10 Mar 17 20:29 /dev/video18
crw-rw----+ 1 root video 81, 0 Mar 17 20:29 /dev/video19
crw-rw----+ 1 root video 81, 8 Mar 17 20:29 /dev/video20
crw-rw----+ 1 root video 81, 9 Mar 17 20:29 /dev/video21
crw-rw----+ 1 root video 81, 11 Mar 17 20:29 /dev/video22
crw-rw----+ 1 root video 81, 12 Mar 17 20:29 /dev/video23
crw-rw----+ 1 root video 81, 13 Mar 17 20:29 /dev/video31
nisy@raspberrypi:~ $ v4l2-ctl --list-devices
bcm2835-codec-decode (platform:bcm2835-codec):
/dev/video10
/dev/video11
/dev/video12
/dev/video18
/dev/video31
/dev/media4
bcm2835-isp (platform:bcm2835-isp):
/dev/video13
/dev/video14
/dev/video15
/dev/video16
/dev/video20
/dev/video21
/dev/video22
/dev/video23
/dev/media0
/dev/media2
unicam (platform:fe801000.csi):
/dev/video0
/dev/media1
rpivid (platform:rpivid):
/dev/video19
/dev/media3
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video0 -D
Driver Info:
Driver name : unicam
Card type : unicam
Bus info : platform:fe801000.csi
Driver version : 6.1.21
Capabilities : 0xa5a00001
Video Capture
Metadata Capture
Read/Write
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x25200001
Video Capture
Read/Write
Streaming
Extended Pix Format
Media Driver Info:
Driver name : unicam
Model : unicam
Serial :
Bus info : platform:fe801000.csi
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
Interface Info:
ID : 0x03000005
Type : V4L Video
Entity Info:
ID : 0x00000003 (3)
Name : unicam-image
Function : V4L2 I/O
Flags : default
Pad 0x01000004 : 0: Sink
Link 0x02000007: from remote pad 0x1000002 of entity 'ov5647 10-0036': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video10 -D
Driver Info:
Driver name : bcm2835-codec
Card type : bcm2835-codec-decode
Bus info : platform:bcm2835-codec
Driver version : 6.1.21
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-codec
Model : bcm2835-codec
Serial : 0000
Bus info : platform:bcm2835-codec
Media version : 6.1.21
Hardware revision: 0x00000001 (1)
Driver version : 6.1.21
Interface Info:
ID : 0x0300000c
Type : V4L Video
Entity Info:
ID : 0x00000001 (1)
Name : bcm2835-codec-decode-source
Function : V4L2 I/O
Pad 0x01000002 : 0: Source
Link 0x02000008: to remote pad 0x1000004 of entity 'bcm2835-codec-decode-proc': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video11 -D
Driver Info:
Driver name : bcm2835-codec
Card type : bcm2835-codec-encode
Bus info : platform:bcm2835-codec
Driver version : 6.1.21
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-codec
Model : bcm2835-codec
Serial : 0000
Bus info : platform:bcm2835-codec
Media version : 6.1.21
Hardware revision: 0x00000001 (1)
Driver version : 6.1.21
Interface Info:
ID : 0x0300001a
Type : V4L Video
Entity Info:
ID : 0x0000000f (15)
Name : bcm2835-codec-encode-source
Function : V4L2 I/O
Pad 0x01000010 : 0: Source
Link 0x02000016: to remote pad 0x1000012 of entity 'bcm2835-codec-encode-proc': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video12 -D
Driver Info:
Driver name : bcm2835-codec
Card type : bcm2835-codec-isp
Bus info : platform:bcm2835-codec
Driver version : 6.1.21
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-codec
Model : bcm2835-codec
Serial : 0000
Bus info : platform:bcm2835-codec
Media version : 6.1.21
Hardware revision: 0x00000001 (1)
Driver version : 6.1.21
Interface Info:
ID : 0x03000028
Type : V4L Video
Entity Info:
ID : 0x0000001d (29)
Name : bcm2835-codec-isp-source
Function : V4L2 I/O
Pad 0x0100001e : 0: Source
Link 0x02000024: to remote pad 0x1000020 of entity 'bcm2835-codec-isp-proc': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video13 -D
Driver Info:
Driver name : bcm2835-isp
Card type : bcm2835-isp
Bus info : platform:bcm2835-isp
Driver version : 6.1.21
Capabilities : 0x84200002
Video Output
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200002
Video Output
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-isp
Model : bcm2835-isp
Serial :
Bus info : platform:bcm2835-isp
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
FAIL: could not find device 81:0 in topology
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video14 -D
Driver Info:
Driver name : bcm2835-isp
Card type : bcm2835-isp
Bus info : platform:bcm2835-isp
Driver version : 6.1.21
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-isp
Model : bcm2835-isp
Serial :
Bus info : platform:bcm2835-isp
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
FAIL: could not find device 81:1 in topology
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video15 -D
Driver Info:
Driver name : bcm2835-isp
Card type : bcm2835-isp
Bus info : platform:bcm2835-isp
Driver version : 6.1.21
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-isp
Model : bcm2835-isp
Serial :
Bus info : platform:bcm2835-isp
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
FAIL: could not find device 81:2 in topology
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video16 -D
Driver Info:
Driver name : bcm2835-isp
Card type : bcm2835-isp
Bus info : platform:bcm2835-isp
Driver version : 6.1.21
Capabilities : 0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-isp
Model : bcm2835-isp
Serial :
Bus info : platform:bcm2835-isp
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
FAIL: could not find device 81:3 in topology
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video18 -D
Driver Info:
Driver name : bcm2835-codec
Card type : bcm2835-codec-image_fx
Bus info : platform:bcm2835-codec
Driver version : 6.1.21
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-codec
Model : bcm2835-codec
Serial : 0000
Bus info : platform:bcm2835-codec
Media version : 6.1.21
Hardware revision: 0x00000001 (1)
Driver version : 6.1.21
Interface Info:
ID : 0x03000036
Type : V4L Video
Entity Info:
ID : 0x0000002b (43)
Name : bcm2835-codec-image_fx-source
Function : V4L2 I/O
Pad 0x0100002c : 0: Source
Link 0x02000032: to remote pad 0x100002e of entity 'bcm2835-codec-image_fx-proc': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video19 -D
Driver Info:
Driver name : rpivid
Card type : rpivid
Bus info : platform:rpivid
Driver version : 6.1.21
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : rpivid
Model : rpivid
Serial :
Bus info : platform:rpivid
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
Interface Info:
ID : 0x0300000c
Type : V4L Video
Entity Info:
ID : 0x00000001 (1)
Name : rpivid-source
Function : V4L2 I/O
Pad 0x01000002 : 0: Source
Link 0x02000008: to remote pad 0x1000004 of entity 'rpivid-proc': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video20 -D
Driver Info:
Driver name : bcm2835-isp
Card type : bcm2835-isp
Bus info : platform:bcm2835-isp
Driver version : 6.1.21
Capabilities : 0x84200002
Video Output
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200002
Video Output
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-isp
Model : bcm2835-isp
Serial :
Bus info : platform:bcm2835-isp
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
Interface Info:
ID : 0x03000008
Type : V4L Video
Entity Info:
ID : 0x00000006 (6)
Name : bcm2835-isp0-output0
Function : V4L2 I/O
Pad 0x01000007 : 0: Source
Link 0x0200000a: to remote pad 0x1000002 of entity 'bcm2835_isp0': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video21 -D
Driver Info:
Driver name : bcm2835-isp
Card type : bcm2835-isp
Bus info : platform:bcm2835-isp
Driver version : 6.1.21
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-isp
Model : bcm2835-isp
Serial :
Bus info : platform:bcm2835-isp
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
Interface Info:
ID : 0x0300000e
Type : V4L Video
Entity Info:
ID : 0x0000000c (12)
Name : bcm2835-isp0-capture1
Function : V4L2 I/O
Pad 0x0100000d : 0: Sink
Link 0x02000010: from remote pad 0x1000003 of entity 'bcm2835_isp0': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video22 -D
Driver Info:
Driver name : bcm2835-isp
Card type : bcm2835-isp
Bus info : platform:bcm2835-isp
Driver version : 6.1.21
Capabilities : 0x84200001
Video Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04200001
Video Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-isp
Model : bcm2835-isp
Serial :
Bus info : platform:bcm2835-isp
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
Interface Info:
ID : 0x03000014
Type : V4L Video
Entity Info:
ID : 0x00000012 (18)
Name : bcm2835-isp0-capture2
Function : V4L2 I/O
Pad 0x01000013 : 0: Sink
Link 0x02000016: from remote pad 0x1000004 of entity 'bcm2835_isp0': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video23 -D
Driver Info:
Driver name : bcm2835-isp
Card type : bcm2835-isp
Bus info : platform:bcm2835-isp
Driver version : 6.1.21
Capabilities : 0x84a00000
Metadata Capture
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04a00000
Metadata Capture
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-isp
Model : bcm2835-isp
Serial :
Bus info : platform:bcm2835-isp
Media version : 6.1.21
Hardware revision: 0x00000000 (0)
Driver version : 6.1.21
Interface Info:
ID : 0x0300001a
Type : V4L Video
Entity Info:
ID : 0x00000018 (24)
Name : bcm2835-isp0-capture3
Function : V4L2 I/O
Pad 0x01000019 : 0: Sink
Link 0x0200001c: from remote pad 0x1000005 of entity 'bcm2835_isp0': Data, Enabled, Immutable
nisy@raspberrypi:~ $ v4l2-ctl -d /dev/video31 -D
Driver Info:
Driver name : bcm2835-codec
Card type : bcm2835-codec-encode_image
Bus info : platform:bcm2835-codec
Driver version : 6.1.21
Capabilities : 0x84204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04204000
Video Memory-to-Memory Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : bcm2835-codec
Model : bcm2835-codec
Serial : 0000
Bus info : platform:bcm2835-codec
Media version : 6.1.21
Hardware revision: 0x00000001 (1)
Driver version : 6.1.21
Interface Info:
ID : 0x03000044
Type : V4L Video
Entity Info:
ID : 0x00000039 (57)
Name : bcm2835-codec-encode_image-source
Function : V4L2 I/O
Pad 0x0100003a : 0: Source
Link 0x02000040: to remote pad 0x100003c of entity 'bcm2835-codec-encode_image-proc': Data, Enabled, Immutable