Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Impossible to obtain the v4l name while configuring #212

Open
simonsd054 opened this issue Dec 5, 2024 · 2 comments
Open

Impossible to obtain the v4l name while configuring #212

simonsd054 opened this issue Dec 5, 2024 · 2 comments

Comments

@simonsd054
Copy link

Ouput of cat /var/local/log/linux-enable-ir-emitter/linux-enable-ir-emitter.log

[05:20:21] [INFO] Stand in front of and close to the camera and make sure the room is well lit.
[05:20:21] [INFO] Ensure to not use the camera during the execution.
[05:20:23] [INFO] Configuring the camera /dev/video0.
[05:20:34] [ERROR] Impossible to obtain the v4l name of /dev/video0.
[05:20:34] [ERROR] The configuration failed.
[05:20:34] [INFO] Do not hesitate to visit the GitHub!
[05:20:34] [INFO] https://github.com/EmixamPP/linux-enable-ir-emitter/blob/master/docs/README.md
[05:31:13] [INFO] Stand in front of and close to the camera and make sure the room is well lit.
[05:31:13] [INFO] Ensure to not use the camera during the execution.
[05:31:14] [INFO] Configuring the camera /dev/video0.
[05:31:19] [ERROR] Impossible to obtain the v4l name of /dev/video0.
[05:31:19] [ERROR] The configuration failed.
[05:31:19] [INFO] Do not hesitate to visit the GitHub!
[05:31:19] [INFO] https://github.com/EmixamPP/linux-enable-ir-emitter/blob/master/docs/README.md
[05:31:35] [INFO] Stand in front of and close to the camera and make sure the room is well lit.
[05:31:35] [INFO] Ensure to not use the camera during the execution.
[05:31:36] [INFO] Configuring the camera /dev/video0.
[05:31:44] [ERROR] Impossible to obtain the v4l name of /dev/video0.
[05:31:44] [ERROR] The configuration failed.
[05:31:44] [INFO] Do not hesitate to visit the GitHub!
[05:31:44] [INFO] https://github.com/EmixamPP/linux-enable-ir-emitter/blob/master/docs/README.md
[05:32:07] [INFO] Stand in front of and close to the camera and make sure the room is well lit.
[05:32:07] [INFO] Ensure to not use the camera during the execution.
[05:32:09] [INFO] Configuring the camera /dev/video0.
[05:32:12] [ERROR] Impossible to obtain the v4l name of /dev/video0.
[05:32:12] [ERROR] The configuration failed.
[05:32:12] [INFO] Do not hesitate to visit the GitHub!
[05:32:12] [INFO] https://github.com/EmixamPP/linux-enable-ir-emitter/blob/master/docs/README.md
[05:35:39] [INFO] Stand in front of and close to the camera and make sure the room is well lit.
[05:35:39] [INFO] Ensure to not use the camera during the execution.
[05:35:40] [INFO] Configuring the camera /dev/video0.
[05:35:44] [ERROR] Impossible to obtain the v4l name of /dev/video0.
[05:35:44] [ERROR] The configuration failed.
[05:35:44] [INFO] Do not hesitate to visit the GitHub!
[05:35:44] [INFO] https://github.com/EmixamPP/linux-enable-ir-emitter/blob/master/docs/README.md

Output of sudo linux-enable-ir-emitter tweak

[INFO] Tweaking the camera /dev/video15
[INFO] Caution, you could break the camera.
0) exit
Choose an instruction to tweak: 0

Output of v4l2-ctl --list-devices

ipu6 (PCI:pci:pci0000:00):
	/dev/video8
	/dev/video9
	/dev/video10
	/dev/video11
	/dev/video12
	/dev/video13
	/dev/video14
	/dev/video15

ipu6 (pci:pci0000:00):
	/dev/media0

Intel MIPI Camera (platform:v4l2loopback-000):
	/dev/video0

Ouput of for dev in /dev/video*; do echo $dev && v4l2-ctl -d $dev --list-formats-ext; done

/dev/video0
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'YU12' (Planar YUV 4:2:0)
		Size: Discrete 1280x720
			Interval: Discrete 0.033s (30.000 fps)
/dev/video10
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture Multiplanar

	[0]: 'Y10 ' (10-bit Greyscale)
	[1]: 'BX24' (32-bit XRGB 8-8-8-8)
	[2]: 'Y12I' (Interleaved 12-bit Greyscale)
	[3]: 'Z16 ' (16-bit Depth)
	[4]: 'YUYV' (YUYV 4:2:2)
	[5]: 'Y8I ' (Interleaved 8-bit Greyscale)
	[6]: 'BG12' (12-bit Bayer BGBG/GRGR)
	[7]: 'GB12' (12-bit Bayer GBGB/RGRG)
	[8]: 'BA12' (12-bit Bayer GRGR/BGBG)
	[9]: 'RG12' (12-bit Bayer RGRG/GBGB)
	[10]: 'BG10' (10-bit Bayer BGBG/GRGR)
	[11]: 'GB10' (10-bit Bayer GBGB/RGRG)
	[12]: 'BA10' (10-bit Bayer GRGR/BGBG)
	[13]: 'RG10' (10-bit Bayer RGRG/GBGB)
	[14]: 'BA81' (8-bit Bayer BGBG/GRGR)
	[15]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	[16]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	[17]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	[18]: 'GREY' (8-bit Greyscale)
/dev/video11
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture Multiplanar

	[0]: 'Y10 ' (10-bit Greyscale)
	[1]: 'BX24' (32-bit XRGB 8-8-8-8)
	[2]: 'Y12I' (Interleaved 12-bit Greyscale)
	[3]: 'Z16 ' (16-bit Depth)
	[4]: 'YUYV' (YUYV 4:2:2)
	[5]: 'Y8I ' (Interleaved 8-bit Greyscale)
	[6]: 'BG12' (12-bit Bayer BGBG/GRGR)
	[7]: 'GB12' (12-bit Bayer GBGB/RGRG)
	[8]: 'BA12' (12-bit Bayer GRGR/BGBG)
	[9]: 'RG12' (12-bit Bayer RGRG/GBGB)
	[10]: 'BG10' (10-bit Bayer BGBG/GRGR)
	[11]: 'GB10' (10-bit Bayer GBGB/RGRG)
	[12]: 'BA10' (10-bit Bayer GRGR/BGBG)
	[13]: 'RG10' (10-bit Bayer RGRG/GBGB)
	[14]: 'BA81' (8-bit Bayer BGBG/GRGR)
	[15]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	[16]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	[17]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	[18]: 'GREY' (8-bit Greyscale)
/dev/video12
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture Multiplanar

	[0]: 'Y10 ' (10-bit Greyscale)
	[1]: 'BX24' (32-bit XRGB 8-8-8-8)
	[2]: 'Y12I' (Interleaved 12-bit Greyscale)
	[3]: 'Z16 ' (16-bit Depth)
	[4]: 'YUYV' (YUYV 4:2:2)
	[5]: 'Y8I ' (Interleaved 8-bit Greyscale)
	[6]: 'BG12' (12-bit Bayer BGBG/GRGR)
	[7]: 'GB12' (12-bit Bayer GBGB/RGRG)
	[8]: 'BA12' (12-bit Bayer GRGR/BGBG)
	[9]: 'RG12' (12-bit Bayer RGRG/GBGB)
	[10]: 'BG10' (10-bit Bayer BGBG/GRGR)
	[11]: 'GB10' (10-bit Bayer GBGB/RGRG)
	[12]: 'BA10' (10-bit Bayer GRGR/BGBG)
	[13]: 'RG10' (10-bit Bayer RGRG/GBGB)
	[14]: 'BA81' (8-bit Bayer BGBG/GRGR)
	[15]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	[16]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	[17]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	[18]: 'GREY' (8-bit Greyscale)
/dev/video13
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture Multiplanar

	[0]: 'Y10 ' (10-bit Greyscale)
	[1]: 'BX24' (32-bit XRGB 8-8-8-8)
	[2]: 'Y12I' (Interleaved 12-bit Greyscale)
	[3]: 'Z16 ' (16-bit Depth)
	[4]: 'YUYV' (YUYV 4:2:2)
	[5]: 'Y8I ' (Interleaved 8-bit Greyscale)
	[6]: 'BG12' (12-bit Bayer BGBG/GRGR)
	[7]: 'GB12' (12-bit Bayer GBGB/RGRG)
	[8]: 'BA12' (12-bit Bayer GRGR/BGBG)
	[9]: 'RG12' (12-bit Bayer RGRG/GBGB)
	[10]: 'BG10' (10-bit Bayer BGBG/GRGR)
	[11]: 'GB10' (10-bit Bayer GBGB/RGRG)
	[12]: 'BA10' (10-bit Bayer GRGR/BGBG)
	[13]: 'RG10' (10-bit Bayer RGRG/GBGB)
	[14]: 'BA81' (8-bit Bayer BGBG/GRGR)
	[15]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	[16]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	[17]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	[18]: 'GREY' (8-bit Greyscale)
/dev/video14
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture Multiplanar

	[0]: 'Y10 ' (10-bit Greyscale)
	[1]: 'BX24' (32-bit XRGB 8-8-8-8)
	[2]: 'Y12I' (Interleaved 12-bit Greyscale)
	[3]: 'Z16 ' (16-bit Depth)
	[4]: 'YUYV' (YUYV 4:2:2)
	[5]: 'Y8I ' (Interleaved 8-bit Greyscale)
	[6]: 'BG12' (12-bit Bayer BGBG/GRGR)
	[7]: 'GB12' (12-bit Bayer GBGB/RGRG)
	[8]: 'BA12' (12-bit Bayer GRGR/BGBG)
	[9]: 'RG12' (12-bit Bayer RGRG/GBGB)
	[10]: 'BG10' (10-bit Bayer BGBG/GRGR)
	[11]: 'GB10' (10-bit Bayer GBGB/RGRG)
	[12]: 'BA10' (10-bit Bayer GRGR/BGBG)
	[13]: 'RG10' (10-bit Bayer RGRG/GBGB)
	[14]: 'BA81' (8-bit Bayer BGBG/GRGR)
	[15]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	[16]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	[17]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	[18]: 'GREY' (8-bit Greyscale)
/dev/video15
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture Multiplanar

	[0]: 'Y10 ' (10-bit Greyscale)
	[1]: 'BX24' (32-bit XRGB 8-8-8-8)
	[2]: 'Y12I' (Interleaved 12-bit Greyscale)
	[3]: 'Z16 ' (16-bit Depth)
	[4]: 'YUYV' (YUYV 4:2:2)
	[5]: 'Y8I ' (Interleaved 8-bit Greyscale)
	[6]: 'BG12' (12-bit Bayer BGBG/GRGR)
	[7]: 'GB12' (12-bit Bayer GBGB/RGRG)
	[8]: 'BA12' (12-bit Bayer GRGR/BGBG)
	[9]: 'RG12' (12-bit Bayer RGRG/GBGB)
	[10]: 'BG10' (10-bit Bayer BGBG/GRGR)
	[11]: 'GB10' (10-bit Bayer GBGB/RGRG)
	[12]: 'BA10' (10-bit Bayer GRGR/BGBG)
	[13]: 'RG10' (10-bit Bayer RGRG/GBGB)
	[14]: 'BA81' (8-bit Bayer BGBG/GRGR)
	[15]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	[16]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	[17]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	[18]: 'GREY' (8-bit Greyscale)
/dev/video8
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture Multiplanar

	[0]: 'Y10 ' (10-bit Greyscale)
	[1]: 'BX24' (32-bit XRGB 8-8-8-8)
	[2]: 'Y12I' (Interleaved 12-bit Greyscale)
	[3]: 'Z16 ' (16-bit Depth)
	[4]: 'YUYV' (YUYV 4:2:2)
	[5]: 'Y8I ' (Interleaved 8-bit Greyscale)
	[6]: 'BG12' (12-bit Bayer BGBG/GRGR)
	[7]: 'GB12' (12-bit Bayer GBGB/RGRG)
	[8]: 'BA12' (12-bit Bayer GRGR/BGBG)
	[9]: 'RG12' (12-bit Bayer RGRG/GBGB)
	[10]: 'BG10' (10-bit Bayer BGBG/GRGR)
	[11]: 'GB10' (10-bit Bayer GBGB/RGRG)
	[12]: 'BA10' (10-bit Bayer GRGR/BGBG)
	[13]: 'RG10' (10-bit Bayer RGRG/GBGB)
	[14]: 'BA81' (8-bit Bayer BGBG/GRGR)
	[15]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	[16]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	[17]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	[18]: 'GREY' (8-bit Greyscale)
/dev/video9
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture Multiplanar

	[0]: 'Y10 ' (10-bit Greyscale)
	[1]: 'BX24' (32-bit XRGB 8-8-8-8)
	[2]: 'Y12I' (Interleaved 12-bit Greyscale)
	[3]: 'Z16 ' (16-bit Depth)
	[4]: 'YUYV' (YUYV 4:2:2)
	[5]: 'Y8I ' (Interleaved 8-bit Greyscale)
	[6]: 'BG12' (12-bit Bayer BGBG/GRGR)
	[7]: 'GB12' (12-bit Bayer GBGB/RGRG)
	[8]: 'BA12' (12-bit Bayer GRGR/BGBG)
	[9]: 'RG12' (12-bit Bayer RGRG/GBGB)
	[10]: 'BG10' (10-bit Bayer BGBG/GRGR)
	[11]: 'GB10' (10-bit Bayer GBGB/RGRG)
	[12]: 'BA10' (10-bit Bayer GRGR/BGBG)
	[13]: 'RG10' (10-bit Bayer RGRG/GBGB)
	[14]: 'BA81' (8-bit Bayer BGBG/GRGR)
	[15]: 'GBRG' (8-bit Bayer GBGB/RGRG)
	[16]: 'GRBG' (8-bit Bayer GRGR/BGBG)
	[17]: 'RGGB' (8-bit Bayer RGRG/GBGB)
	[18]: 'GREY' (8-bit Greyscale)
/dev/video_front
ioctl: VIDIOC_ENUM_FMT
	Type: Video Capture

	[0]: 'YU12' (Planar YUV 4:2:0)
		Size: Discrete 1280x720
			Interval: Discrete 0.033s (30.000 fps)

Output of ls -l /dev/v4l/by-path

total 0
lrwxrwxrwx. 1 root root 12 Dec  5 04:13 pci-0000:00:05.0-video-index0 -> ../../video8
lrwxrwxrwx. 1 root root 12 Dec  5 04:13 pci-0000:00:05.0-video-index1 -> ../../video9
lrwxrwxrwx. 1 root root 13 Dec  5 04:13 pci-0000:00:05.0-video-index2 -> ../../video10
lrwxrwxrwx. 1 root root 13 Dec  5 04:13 pci-0000:00:05.0-video-index3 -> ../../video11
lrwxrwxrwx. 1 root root 13 Dec  5 04:13 pci-0000:00:05.0-video-index4 -> ../../video12
lrwxrwxrwx. 1 root root 13 Dec  5 04:13 pci-0000:00:05.0-video-index5 -> ../../video13
lrwxrwxrwx. 1 root root 13 Dec  5 04:13 pci-0000:00:05.0-video-index6 -> ../../video14
lrwxrwxrwx. 1 root root 13 Dec  5 04:13 pci-0000:00:05.0-video-index7 -> ../../video15

Give more information if you have
I get this error when I try to configure as shown in the image below: Impossible to obtain the v4l name of /dev/video0
Screenshot From 2024-12-05 05-36-37

Additional info

  • Computer (or camera) model: Dell XPS 13 9340
  • Linux distribution: Fedora
  • Version of linux-enable-ir-emitter: 6.1.0 but tried 6.0.6 and 6.0.5 - same error
@EmixamPP
Copy link
Owner

If you execute linux-enable-ir-emitter -d /dev/video<X> test

Where you replace by the number for each of the following device entry:
/dev/video8
/dev/video9
/dev/video10
/dev/video11
/dev/video12
/dev/video13
/dev/video14
/dev/video15

Which one does show a grayscale image (or very dark if your room is not lighted enough)?

@EmixamPP
Copy link
Owner

Try also with the ffplay utils: ffplay /dev/video (ffmpeg package on fedora) to see if you can get a video feedback and let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants