Open 80kk opened 4 months ago
Was just able to get it working on PopOs under kernel 6.9.3-76060903-generic
. Also installed through dkms. Do you get any output when running this?
sudo gst-launch-1.0 icamerasrc ! autovideosink
Will hopefully make a more detailed tutorial on the specific setup i got it working under.
Same situation. Lenovo X1 Carbon G10 with MIPI camera 6.8.0-45-generic Upgraded today to Ubuntu 24.04.1 LTS
ipu6-drivers/0.0.0: added
ipu6-drivers/0~git202406240945.aecec2aa-0ubuntu2~24.04.1, 6.8.0-45-generic, x86_64: installed
usbio-drivers/0~git202312141918.78ffb706-0ubuntu2.1, 6.8.0-45-generic, x86_64: installed
v4l2loopback/0.12.7, 6.8.0-45-generic, x86_64: installed (WARNING! Diff between built and installed module!)
Running "sudo gst-launch-1.0 icamerasrc ! autovideosink"
I get:
WARNING: erroneous pipeline: no element "icamerasrc"
I just found this command:
sudo -E gst-launch-1.0 icamerasrc buffer-count=7 device-name=ov2740-uf ! video/x-raw,format=NV12,width=1280,height=720 ! v4l2sink device=${DEVICE}
If I run it my camera status light turns on. I then visited this web cam test page https://webcamtests.com/check and the camera is working!
Was just able to get it working on PopOs under kernel
6.9.3-76060903-generic
. Also installed through dkms. Do you get any output when running this?sudo gst-launch-1.0 icamerasrc ! autovideosink
Will hopefully make a more detailed tutorial on the specific setup i got it working under.
I am getting:
# gst-launch-1.0 icamerasrc ! autovideosink
WARNING: erroneous pipeline: no element "icamerasrc"
# dkms status
ipu6-drivers/0.0.0, 6.8.0-41-generic, x86_64: installed
ipu6-drivers/0.0.0, 6.8.0-45-generic, x86_64: installed
usbio-drivers/0~git202312141918.78ffb706-0ubuntu2.1, 6.8.0-41-generic, x86_64: installed
usbio-drivers/0~git202312141918.78ffb706-0ubuntu2.1, 6.8.0-45-generic, x86_64: installed
I am guessing gstreamer can#t see this plugin but I can't find how to fix it.
I just found this command:
sudo -E gst-launch-1.0 icamerasrc buffer-count=7 device-name=ov2740-uf ! video/x-raw,format=NV12,width=1280,height=720 ! v4l2sink device=${DEVICE}
If I run it my camera status light turns on. I then visited this web cam test page https://webcamtests.com/check and the camera is working!
WARNING: erroneous pipeline: no element "icamerasrc"
no luck here.
@80kk I also get this error if I run it again now but it works if it's placed in a script like this:
#!/bin/bash
DEVICE=/dev/video0
# Set the path to the GStreamer plugins
export GST_PLUGIN_PATH=/usr/lib/gstreamer-1.0:/usr/local/lib/gstreamer-1.0
# Run camera command
gst-launch-1.0 icamerasrc buffer-count=7 device-name=ov2740-uf ! video/x-raw,format=NV12,width=1280,height=720 ! v4l2sink device=${DEVICE}
Name it "run_camera.sh", make it executable:
chmod +x run_camera.sh
and then run it as sudo:
sudo ./run_camera.sh
@80kk I also get this error if I run it again now but it works if it's placed in a script like this:
#!/bin/bash DEVICE=/dev/video0 # Set the path to the GStreamer plugins export GST_PLUGIN_PATH=/usr/lib/gstreamer-1.0:/usr/local/lib/gstreamer-1.0 # Run camera command gst-launch-1.0 icamerasrc buffer-count=7 device-name=ov2740-uf ! video/x-raw,format=NV12,width=1280,height=720 ! v4l2sink device=${DEVICE}
Name it "run_camera.sh", make it executable:
chmod +x run_camera.sh
and then run it as sudo:
sudo ./run_camera.sh
I don't have v4l2sink
module but I can't see it is required? However setting a path gives me:
# ls -la /usr/lib/gstreamer-1.0/
total 1468
drwxr-xr-x 2 root root 4096 Oct 1 22:10 .
drwxr-xr-x 116 root root 12288 Oct 1 22:10 ..
-rwxr-xr-x 1 root root 1157 Oct 1 22:10 libgsticamerasrc.la
-rwxr-xr-x 1 root root 1478968 Oct 1 22:10 libgsticamerasrc.so
# export GST_PLUGIN_PATH=/usr/lib/gstreamer-1.0
# gst-launch-1.0 icamerasrc ! autovideosink
[10-02 16:40:14.453] CamHAL[ERR] load_camera_hal_library, failed to open PCI device. error: (null)
[10-02 16:40:14.453] CamHAL[ERR] get_number_of_cameras, function call is nullptr
[10-02 16:40:14.453] CamHAL[ERR] get_number_of_cameras, function call is nullptr
(gst-plugin-scanner:11228): GLib-GObject-CRITICAL **: 16:40:14.453: g_param_spec_enum: assertion 'g_enum_get_value (enum_class, default_value) != NULL' failed
(gst-plugin-scanner:11228): GLib-GObject-CRITICAL **: 16:40:14.453: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed
(gst-plugin-scanner:11228): GLib-GObject-CRITICAL **: 16:40:14.453: g_param_spec_ref_sink: assertion 'G_IS_PARAM_SPEC (pspec)' failed
(gst-plugin-scanner:11228): GLib-GObject-CRITICAL **: 16:40:14.454: g_param_spec_unref: assertion 'G_IS_PARAM_SPEC (pspec)' failed
[10-02 16:40:14.472] CamHAL[ERR] load_camera_hal_library, failed to open PCI device. error: (null)
[10-02 16:40:14.472] CamHAL[ERR] get_number_of_cameras, function call is nullptr
[10-02 16:40:14.472] CamHAL[ERR] get_number_of_cameras, function call is nullptr
(gst-launch-1.0:11227): GLib-GObject-CRITICAL **: 16:40:14.472: g_param_spec_enum: assertion 'g_enum_get_value (enum_class, default_value) != NULL' failed
(gst-launch-1.0:11227): GLib-GObject-CRITICAL **: 16:40:14.472: validate_pspec_to_install: assertion 'G_IS_PARAM_SPEC (pspec)' failed
(gst-launch-1.0:11227): GLib-GObject-CRITICAL **: 16:40:14.472: g_param_spec_ref_sink: assertion 'G_IS_PARAM_SPEC (pspec)' failed
(gst-launch-1.0:11227): GLib-GObject-CRITICAL **: 16:40:14.472: g_param_spec_unref: assertion 'G_IS_PARAM_SPEC (pspec)' failed
[10-02 16:40:14.472] CamHAL[ERR] get_number_of_cameras, function call is nullptr
WARNING: erroneous pipeline: could not link camerasrc0 to autovideosink0
For running that command it's required to have v4l2sink. It takes the video data and outputs it to a device compatible with Video4Linux (V4L2) Try installing it and maybe adjusting the command to eventually make it work. (maybe different device-name, video format, etc..)
I have Lenovo ThinkPad X1 Carbon Gen 10 with Ubuntu 24.04LTS and 6.8.0-38-generic stock kernel installed. Using apt I've installed
intel-usbio-dkms
and then all four repositories as mentioned on https://github.com/intel/ipu6-drivers?tab=readme-ov-file For ipu6-drivers I decided to use DKMS method, it built and loaded without any issues:I've also tried Intel Integrated Image Processing Unit 6 driver from Additional drivers but it didn't make any difference except ipu6-drivers module didn't build because it was already provided.
What else I can do to narrow down the issue?