Question ! who can help me
Closed this issue · 1 comments
I use pion mediadevices packege form my app
failed to find the best driver that fits the constraint
why don't get the best driver ,What's wrong
who can help me
my video is
[root@RV1126_RV1109:/userdata/kvm]# v4l2-ctl --list-devices
rkisp-statistics (platform: rkisp):
/dev/video9
/dev/video10
/dev/video11
rkispp_input_params (platform: rkispp):
/dev/video17
/dev/video18
rkisp_mainpath (platform:ffb50000.rkisp):
/dev/video0
/dev/video1
/dev/video2
/dev/video3
/dev/video4
/dev/video5
/dev/video6
/dev/video7
/dev/video8
rkispp_input_image (platform:ffb60000.rkispp):
/dev/video12
/dev/video13
/dev/video14
/dev/video15
/dev/video16
[root@RV1126_RV1109:/userdata/kvm]# v4l2-ctl -d /dev/video0 --all
Driver Info:
Driver name : rkisp_v4
Card type : rkisp_mainpath
Bus info : platform:ffb50000.rkisp
Driver version : 4.19.111
Capabilities : 0x84201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : rkisp
Model : rkisp
Serial :
Bus info :
Media version : 4.19.111
Hardware revision: 0x00000000 (0)
Driver version : 4.19.111
Interface Info:
ID : 0x03000012
Type : V4L Video
Entity Info:
ID : 0x00000011 (17)
Name : rkisp_mainpath
Function : V4L2 I/O
Pad 0x01000014 : 0: Sink
Link 0x02000015: from remote pad 0x1000004 of entity 'rkisp-isp-subdev': Data
Priority: 2
Format Video Capture Multiplanar:
Width/Height : 1920/1080
Pixel Format : 'YUYV' (YUYV 4:2:2)
Field : None
Number of planes : 1
Flags :
Colorspace : Default
Transfer Function : Default
YCbCr/HSV Encoding: Default
Quantization : Full Range
Plane 0 :
Bytes per Line : 3840
Size Image : 4147200
Crop: Left 0, Top 0, Width 1920, Height 1080
Selection: crop, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection: crop, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:
Image Processing Controls
link_frequency 0x009f0901 (intmenu): min=0 max=1 default=0 value=0
pixel_rate 0x009f0902 (int64) : min=0 max=2147483647 step=1 default=300000000 value=300000000 flags=read-only
Digital Video Controls
power_present 0x00a00964 (bitmask): max=0x00000001 default=0x00000000 value=0x00000000 flags=read-only
[root@RV1126_RV1109:/usr/bin]# v4l2-ctl -d /dev/video14 --all
Driver Info:
Driver name : rkispp_v0
Card type : rkispp_scale0
Bus info : platform:ffb60000.rkispp
Driver version : 4.19.111
Capabilities : 0x84201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Device Capabilities
Device Caps : 0x04201000
Video Capture Multiplanar
Streaming
Extended Pix Format
Media Driver Info:
Driver name : rkispp
Model : rkispp
Serial :
Bus info :
Media version : 4.19.111
Hardware revision: 0x00000000 (0)
Driver version : 4.19.111
Interface Info:
ID : 0x0300000a
Type : V4L Video
Entity Info:
ID : 0x00000009 (9)
Name : rkispp_scale0
Function : V4L2 I/O
Pad 0x0100000c : 0: Sink
Link 0x0200002c: from remote pad 0x1000020 of entity 'rkispp-subdev': Data, Enabled
Priority: 2
Format Video Capture Multiplanar:
Width/Height : 1920/1080
Pixel Format : 'NV12' (Y/CbCr 4:2:0)
Field : None
Number of planes : 1
Flags :
Colorspace : Default
Transfer Function : Default
YCbCr/HSV Encoding: Default
Quantization : Full Range
Plane 0 :
Bytes per Line : 1920
Size Image : 3110400
[root@RV1126_RV1109:/usr/bin]# v4l2-ctl -d /dev/video14 --set-fmt-video=width=1920,height=1080,pixelformat=NV12 --stream-mmap=3 --stream-to=/tmp/bg12.bin --stream-count=1 --stream-poll
<
get image data is OK!
[root@RV1126_RV1109:/usr/bin]#
the app log as follow:
func init() {
discovered := make(map[string]struct{})
discover(discovered, "/dev/v4l/by-path/")
discover(discovered, "/dev/video")
//discover(discovered, "/dev/media*")
}
//register camer
func discover(discovered map[string]struct{}, pattern string) {
/dev/v4l/by-path/platform-ffb50000.rkisp-video-index0 platform-ffb50000.rkisp-video-index0 ../../video0
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index0 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index0;video0 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index1 platform-ffb50000.rkisp-video-index1 ../../video1
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index1 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index1;video1 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index10 platform-ffb50000.rkisp-video-index10 ../../video10
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index10 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index10;video10 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index11 platform-ffb50000.rkisp-video-index11 ../../video11
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index11 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index11;video11 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index2 platform-ffb50000.rkisp-video-index2 ../../video2
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index2 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index2;video2 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index3 platform-ffb50000.rkisp-video-index3 ../../video3
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index3 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index3;video3 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index4 platform-ffb50000.rkisp-video-index4 ../../video4
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index4 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index4;video4 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index5 platform-ffb50000.rkisp-video-index5 ../../video5
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index5 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index5;video5 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index6 platform-ffb50000.rkisp-video-index6 ../../video6
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index6 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index6;video6 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index7 platform-ffb50000.rkisp-video-index7 ../../video7
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index7 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index7;video7 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index8 platform-ffb50000.rkisp-video-index8 ../../video8
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index8 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index8;video8 camera 0/dev/v4l/by-path/platform-ffb50000.rkisp-video-index9 platform-ffb50000.rkisp-video-index9 ../../video9
Register cam: &{/dev/v4l/by-path/platform-ffb50000.rkisp-video-index9 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb50000.rkisp-video-index9;video9 camera 0/dev/v4l/by-path/platform-ffb60000.rkispp-video-index0 platform-ffb60000.rkispp-video-index0 ../../video12
Register cam: &{/dev/v4l/by-path/platform-ffb60000.rkispp-video-index0 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb60000.rkispp-video-index0;video12 camera 0/dev/v4l/by-path/platform-ffb60000.rkispp-video-index1 platform-ffb60000.rkispp-video-index1 ../../video13
Register cam: &{/dev/v4l/by-path/platform-ffb60000.rkispp-video-index1 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb60000.rkispp-video-index1;video13 camera 0/dev/v4l/by-path/platform-ffb60000.rkispp-video-index2 platform-ffb60000.rkispp-video-index2 ../../video14
Register cam: &{/dev/v4l/by-path/platform-ffb60000.rkispp-video-index2 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb60000.rkispp-video-index2;video14 camera 0.1/dev/v4l/by-path/platform-ffb60000.rkispp-video-index3 platform-ffb60000.rkispp-video-index3 ../../video15
Register cam: &{/dev/v4l/by-path/platform-ffb60000.rkispp-video-index3 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb60000.rkispp-video-index3;video15 camera 0/dev/v4l/by-path/platform-ffb60000.rkispp-video-index4 platform-ffb60000.rkispp-video-index4 ../../video16
Register cam: &{/dev/v4l/by-path/platform-ffb60000.rkispp-video-index4 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb60000.rkispp-video-index4;video16 camera 0/dev/v4l/by-path/platform-ffb60000.rkispp-video-index5 platform-ffb60000.rkispp-video-index5 ../../video17
Register cam: &{/dev/v4l/by-path/platform-ffb60000.rkispp-video-index5 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb60000.rkispp-video-index5;video17 camera 0/dev/v4l/by-path/platform-ffb60000.rkispp-video-index6 platform-ffb60000.rkispp-video-index6 ../../video18
Register cam: &{/dev/v4l/by-path/platform-ffb60000.rkispp-video-index6 map[540422490:Z16 825382478:NV21 842093913:I420 842094158:NV12 1196444237:MJPEG 1448695129:YUY2 1498831189:UYVY] map[I420:842093913 MJPEG:1196444237 NV12:842094158 NV21:825382478 UYVY:1498831189 YUY2:1448695129 Z16:540422490] false {0 0} } platform-ffb60000.rkispp-video-index6;video18 camera 0/dev/video0 video0 readlink /dev/video0: invalid argument
/dev/video1 video1 readlink /dev/video1: invalid argument
/dev/video10 video10 readlink /dev/video10: invalid argument
/dev/video11 video11 readlink /dev/video11: invalid argument
/dev/video12 video12 readlink /dev/video12: invalid argument
/dev/video13 video13 readlink /dev/video13: invalid argument
/dev/video14 video14 readlink /dev/video14: invalid argument
/dev/video15 video15 readlink /dev/video15: invalid argument
/dev/video16 video16 readlink /dev/video16: invalid argument
/dev/video17 video17 readlink /dev/video17: invalid argument
/dev/video18 video18 readlink /dev/video18: invalid argument
/dev/video2 video2 readlink /dev/video2: invalid argument
/dev/video3 video3 readlink /dev/video3: invalid argument
/dev/video4 video4 readlink /dev/video4: invalid argument
/dev/video5 video5 readlink /dev/video5: invalid argument
/dev/video6 video6 readlink /dev/video6: invalid argument
/dev/video7 video7 readlink /dev/video7: invalid argument
/dev/video8 video8 readlink /dev/video8: invalid argument
/dev/video9 video9 readlink /dev/video9: invalid argument
s, err := mediadevices.GetUserMedia(mediadevices.MediaStreamConstraints{
//s, err := mediadevices.GetDisplayMedia(mediadevices.MediaStreamConstraints{
Video: func(c *mediadevices.MediaTrackConstraints) {
c.FrameFormat = prop.FrameFormat(frame.FormatNV12)
c.Width = prop.Int(1920)
c.Height = prop.Int(1080)
},
Audio: func(c *mediadevices.MediaTrackConstraints) {
},
Codec: codecSelector,
})
selectVideo {{ {1920 (ideal) 1080 (ideal) NV12 (ideal)} { }} { {0 0 0 } {0 0 0 0 false false false}}} {[0x14b0a60] []}
Query &{0x17640c0 0x17640c0}
Query &{0x1737cc0 0x1737cc0}
Query &{0x1737e40 0x1737e40}
Query &{0x1737f00 0x1737f00}
Query &{0x1737d80 0x1737d80}
Query &{0x1737e80 0x1737e80}
Query &{0x1737f40 0x1737f40}
Query &{0x1737b80 0x1737b80}
Query &{0x1737c80 0x1737c80}
Query &{0x1737d00 0x1737d00}
Query &{0x1737c40 0x1737c40}
Query &{0x1737dc0 0x1737dc0}
Query &{0x1764080 0x1764080}
Query &{0x1737b00 0x1737b00}
Query &{0x1737b40 0x1737b40}
Query &{0x1737bc0 0x1737bc0}
Query &{0x1737ec0 0x1737ec0}
Query &{0x1737f80 0x1737f80}
Query &{0x1737c00 0x1737c00}
Query &{0x1737d40 0x1737d40}
Query &{0x1737e00 0x1737e00}
Queryresults [0x16955f0 0x1695710 0x16957a0 0x1695680 0x1695740 0x16957d0 0x1695500 0x16955c0 0x1695620 0x1695590 0x16956b0 0x16954a0 0x16954d0 0x1695530 0x1695770 0x1695800 0x1695560 0x1695650 0x16956e0]
queryDriverProperties drivers [0x16955f0 0x1695710 0x16957a0 0x1695680 0x1695740 0x16957d0 0x1695500 0x16955c0 0x1695620 0x1695590 0x16956b0 0x16954a0 0x16954d0 0x1695530 0x1695770 0x1695800 0x1695560 0x1695650 0x16956e0]
drivers &{0x1737cc0 0x1737cc0}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index5
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 95 114 97 119 119 114 51 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 53 48 48 48 48 46 114 107 105 115 112 0 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737cc0 0x1737cc0}
&{0x1737cc0 0x1737cc0} []
drivers &{0x1737e40 0x1737e40}
webcam /dev/v4l/by-path/platform-ffb60000.rkispp-video-index1
caps &{[114 107 105 115 112 112 95 118 48 0 0 0 0 0 0 0] [114 107 105 115 112 112 95 109 95 98 121 112 97 115 115 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 54 48 48 48 48 46 114 107 105 115 112 112 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737e40 0x1737e40}
&{0x1737e40 0x1737e40} []
drivers &{0x1737f00 0x1737f00}
webcam /dev/v4l/by-path/platform-ffb60000.rkispp-video-index4
caps &{[114 107 105 115 112 112 95 118 48 0 0 0 0 0 0 0] [114 107 105 115 112 112 95 115 99 97 108 101 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 54 48 48 48 48 46 114 107 105 115 112 112 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737f00 0x1737f00}
&{0x1737f00 0x1737f00} []
drivers &{0x1737d80 0x1737d80}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index8
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 95 114 97 119 114 100 50 95 115 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 53 48 48 48 48 46 114 107 105 115 112 0 0 0 0 0 0 0 0 0] 267119 2216697856 69214208 [0 0 0]}
&{0x1737d80 0x1737d80} open error Not a video capture device
drivers &{0x1737e80 0x1737e80}
webcam /dev/v4l/by-path/platform-ffb60000.rkispp-video-index2
caps &{[114 107 105 115 112 112 95 118 48 0 0 0 0 0 0 0] [114 107 105 115 112 112 95 115 99 97 108 101 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 54 48 48 48 48 46 114 107 105 115 112 112 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737e80 0x1737e80}
&{0x1737e80 0x1737e80} []
drivers &{0x1737f40 0x1737f40}
webcam /dev/v4l/by-path/platform-ffb60000.rkispp-video-index5
caps &{[114 107 105 115 112 112 95 118 48 0 0 0 0 0 0 0] [114 107 105 115 112 112 95 105 110 112 117 116 95 112 97 114 97 109 115 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 32 114 107 105 115 112 112 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 267119 2350907392 203423744 [0 0 0]}
&{0x1737f40 0x1737f40} open error Not a video capture device
drivers &{0x1737b80 0x1737b80}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index10
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 45 105 110 112 117 116 45 112 97 114 97 109 115 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 32 114 107 105 115 112 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 267119 2350907392 203423744 [0 0 0]}
&{0x1737b80 0x1737b80} open error Not a video capture device
drivers &{0x1737c80 0x1737c80}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index4
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 95 114 97 119 119 114 50 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 53 48 48 48 48 46 114 107 105 115 112 0 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737c80 0x1737c80}
&{0x1737c80 0x1737c80} []
drivers &{0x1737d00 0x1737d00}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index6
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 95 114 97 119 114 100 48 95 109 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 53 48 48 48 48 46 114 107 105 115 112 0 0 0 0 0 0 0 0 0] 267119 2216697856 69214208 [0 0 0]}
&{0x1737d00 0x1737d00} open error Not a video capture device
drivers &{0x1737c40 0x1737c40}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index3
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 95 114 97 119 119 114 49 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 53 48 48 48 48 46 114 107 105 115 112 0 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737c40 0x1737c40}
&{0x1737c40 0x1737c40} []
drivers &{0x1737dc0 0x1737dc0}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index9
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 45 115 116 97 116 105 115 116 105 99 115 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 32 114 107 105 115 112 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 267119 2225078272 77594624 [0 0 0]}
&{0x1737dc0 0x1737dc0} open error Not a video capture device
drivers &{0x1737b00 0x1737b00}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index0
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 95 109 97 105 110 112 97 116 104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 53 48 48 48 48 46 114 107 105 115 112 0 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737b00 0x1737b00}
&{0x1737b00 0x1737b00} []
drivers &{0x1737b40 0x1737b40}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index1
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 95 115 101 108 102 112 97 116 104 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 53 48 48 48 48 46 114 107 105 115 112 0 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737b40 0x1737b40}
&{0x1737b40 0x1737b40} []
drivers &{0x1737bc0 0x1737bc0}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index11
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 45 109 105 112 105 45 108 117 109 97 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 32 114 107 105 115 112 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 267119 2225078272 77594624 [0 0 0]}
&{0x1737bc0 0x1737bc0} open error Not a video capture device
drivers &{0x1737ec0 0x1737ec0}
webcam /dev/v4l/by-path/platform-ffb60000.rkispp-video-index3
caps &{[114 107 105 115 112 112 95 118 48 0 0 0 0 0 0 0] [114 107 105 115 112 112 95 115 99 97 108 101 49 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 54 48 48 48 48 46 114 107 105 115 112 112 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737ec0 0x1737ec0}
&{0x1737ec0 0x1737ec0} []
drivers &{0x1737f80 0x1737f80}
webcam /dev/v4l/by-path/platform-ffb60000.rkispp-video-index6
caps &{[114 107 105 115 112 112 95 118 48 0 0 0 0 0 0 0] [114 107 105 115 112 112 45 115 116 97 116 115 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 32 114 107 105 115 112 112 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] 267119 2225078272 77594624 [0 0 0]}
&{0x1737f80 0x1737f80} open error Not a video capture device
drivers &{0x1737c00 0x1737c00}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index2
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 95 114 97 119 119 114 48 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 53 48 48 48 48 46 114 107 105 115 112 0 0 0 0 0 0 0 0 0] 267119 2216693760 69210112 [0 0 0]}
opened success &{0x1737c00 0x1737c00}
&{0x1737c00 0x1737c00} []
drivers &{0x1737d40 0x1737d40}
webcam /dev/v4l/by-path/platform-ffb50000.rkisp-video-index7
caps &{[114 107 105 115 112 95 118 52 0 0 0 0 0 0 0 0] [114 107 105 115 112 95 114 97 119 114 100 49 95 108 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 53 48 48 48 48 46 114 107 105 115 112 0 0 0 0 0 0 0 0 0] 267119 2216697856 69214208 [0 0 0]}
&{0x1737d40 0x1737d40} open error Not a video capture device
drivers &{0x1737e00 0x1737e00}
webcam /dev/v4l/by-path/platform-ffb60000.rkispp-video-index0
caps &{[114 107 105 115 112 112 95 118 48 0 0 0 0 0 0 0] [114 107 105 115 112 112 95 105 110 112 117 116 95 105 109 97 103 101 0 0 0 0 0 0 0 0 0 0 0 0 0 0] [112 108 97 116 102 111 114 109 58 102 102 98 54 48 48 48 48 46 114 107 105 115 112 112 0 0 0 0 0 0 0 0] 267119 2216697856 69214208 [0 0 0]}
&{0x1737e00 0x1737e00} open error Not a video capture device
m map[0x16954a0:[] 0x16954d0:[] 0x1695560:[] 0x1695590:[] 0x16955c0:[] 0x16955f0:[] 0x1695710:[] 0x1695740:[] 0x1695770:[] 0x16957a0:[]]
selectBestDriver filter 0x89747c driverProperties map[0x16954a0:[] 0x16954d0:[] 0x1695560:[] 0x1695590:[] 0x16955c0:[] 0x16955f0:[] 0x1695710:[] 0x1695740:[] 0x1695770:[] 0x16957a0:[]]
priority 0 props []
priority 0 props []
priority 0 props []
priority 0 props []
priority 0 props []
priority 0.10000000149011612 props []
priority 0 props []
priority 0 props []
priority 0 props []
priority 0 props []
selectBestDriver err 0x89735c failed to find the best driver that fits the constraints
selectVideo err failed to find the best driver that fits the constraints
failed to find the best driver that fits the constraint
why don't get the best driver ,What's wrong
Your error seems to be readlink /dev/video0: invalid argument
.
This library does not use readlink - your error is likely from pion/mediadevices/pkg/driver/camera/camera_linux.go#L88.
I suggest filing an issue with the pion project and closing this issue. If downstream developers find a bug with this library, they can open an issue here.
Also, please upload long debug output as a text file or gist with your issue instead of posting everything in the description.