← Back to team overview

debcrafters-packages team mailing list archive

[Bug 2107304] Re: Intel MIPI Camera not working out of the box on 25.04 where it did on 24.10

 

The error "Device '/dev/video0' is not a output device."Aaron is having
lok like that even though it's your virtual camera, it's not presenting
the necessary V4L2_CAP_OUTPUT capability to GStreamer's v4l2sink. This
can happens if the v4l2loopback module is loaded with the
exclusive_caps=1 parameter, which can limits the device to only input
capabilities.

May be you can try to unload and then reload v4l2loopback without that restricting parameter.
sudo rmmod v4l2loopback

reload with 
sudo modprobe v4l2loopback devices=1 video_nr=0 card_label="My Virtual Cam"

then try
gst-launch-1.0 libcamerasrc ! videoconvert ! video/x-raw,format=YUY2,width=1024,height=768,framerate=30/1 ! v4l2sink device=/dev/video0

-- 
You received this bug notification because you are a member of
Debcrafters packages, which is subscribed to libcamera in Ubuntu.
https://bugs.launchpad.net/bugs/2107304

Title:
  Intel MIPI Camera not working out of the box on 25.04 where it did on
  24.10

Status in ffmpeg package in Ubuntu:
  Opinion
Status in ipu6-drivers package in Ubuntu:
  Confirmed
Status in libcamera package in Ubuntu:
  Confirmed

Bug description:
  From discourse post:
  https://discourse.ubuntu.com/t/intel-mipi-camera-not-working-out-of-the-box-on-25-04-where-it-did-on-24-10/59072/1

  The ipu6 camera on a Dell Precision 5480 worked out-of-the-box on
  Ubuntu 24.10, but no longer does on 25.04-beta.  It was suggested on
  Discourse that this might be a regression in libcamera.  I personally
  don't understand the v4l/libcamera stack well enough to triage /
  route.

  Here's what I'm seeing --

  `ffplay /dev/video0` produces a video test image instead of actual
  video.

  However, gstreamer is able to show a good video stream via --

  $ gst-launch-1.0 libcamerasrc ! video/x-raw,width=1024,height=768 !
  autovideosink

  This is on 25.04 beta with libcamera 0.4 --

  $ lsb_release -rd
  Description:    Ubuntu Plucky Puffin (development branch)
  Release:        25.04

  $ apt-cache policy libcamera-v4l2
  libcamera-v4l2:
    Installed: (none)
    Candidate: 0.4.0-5ubuntu1
    Version table:
       0.4.0-5ubuntu1 500
          500 http://us.archive.ubuntu.com/ubuntu plucky/main amd64 Packages

  The cam util spews several errors + warnings, but does find the camera
  --

  $ cam -l
  [0:35:00.604727833] [36429]  INFO Camera camera_manager.cpp:327 libcamera v0.4.0
  [0:35:00.618451974] [36436]  WARN CameraSensor camera_sensor_legacy.cpp:354 'ov01a10 3-0036': Recommended V4L2 control 0x009a0922 not supported
  [0:35:00.618464560] [36436] ERROR V4L2 v4l2_subdevice.cpp:1127 'ov01a10 3-0036': Unable to get rectangle 2 on pad 0/0: Inappropriate ioctl for device
  [0:35:00.618467885] [36436]  WARN CameraSensor camera_sensor_legacy.cpp:401 'ov01a10 3-0036': The PixelArraySize property has been defaulted to 1280x800
  [0:35:00.618470480] [36436] ERROR V4L2 v4l2_subdevice.cpp:1127 'ov01a10 3-0036': Unable to get rectangle 1 on pad 0/0: Inappropriate ioctl for device
  [0:35:00.618472866] [36436]  WARN CameraSensor camera_sensor_legacy.cpp:412 'ov01a10 3-0036': The PixelArrayActiveAreas property has been defaulted to (0, 0)/1280x800
  [0:35:00.618478424] [36436] ERROR V4L2 v4l2_subdevice.cpp:1127 'ov01a10 3-0036': Unable to get rectangle 0 on pad 0/0: Inappropriate ioctl for device
  [0:35:00.618480400] [36436]  WARN CameraSensor camera_sensor_legacy.cpp:420 'ov01a10 3-0036': Failed to retrieve the sensor crop rectangle
  [0:35:00.618482222] [36436]  WARN CameraSensor camera_sensor_legacy.cpp:426 'ov01a10 3-0036': The sensor kernel driver needs to be fixed
  [0:35:00.618484025] [36436]  WARN CameraSensor camera_sensor_legacy.cpp:428 'ov01a10 3-0036': See Documentation/sensor_driver_requirements.rst in the libcamera sources for more information
  [0:35:00.618621741] [36436]  WARN CameraSensorProperties camera_sensor_properties.cpp:473 No static properties available for 'ov01a10'
  [0:35:00.618625448] [36436]  WARN CameraSensorProperties camera_sensor_properties.cpp:475 Please consider updating the camera sensor properties database
  [0:35:00.618630274] [36436]  WARN CameraSensor camera_sensor_legacy.cpp:594 'ov01a10 3-0036': Failed to retrieve the camera location
  [0:35:00.618632937] [36436]  WARN CameraSensor camera_sensor_legacy.cpp:616 'ov01a10 3-0036': Rotation control not available, default to 0 degrees
  [0:35:00.619180138] [36436]  WARN IPAProxy ipa_proxy.cpp:160 Configuration file 'ov01a10.yaml' not found for IPA module 'simple', falling back to 'uncalibrated.yaml'
  [0:35:00.619189114] [36436]  WARN IPASoft soft_simple.cpp:96 IPASoft: Failed to create camera sensor helper for ov01a10
  Available cameras:
  1: 'ov01a10' (\_SB_.PC00.LNK1)

  v4l2-ctl sees many ipu6 video devices.  This looks wrong, but I'm not
  sure what it should look like, and don't have a working system to
  compare against.

  $ v4l2-ctl --list-devices
  ipu6 ():
          /dev/video1
          /dev/video2
          /dev/video3
          /dev/video4
          /dev/video5
          /dev/video6
          /dev/video7
          /dev/video8
          /dev/video9
          /dev/video10
          /dev/video11
          /dev/video12
          /dev/video13
          /dev/video14
          /dev/video15
          /dev/video16
          /dev/video17
          /dev/video18
          /dev/video19
          /dev/video20
          /dev/video21
          /dev/video22
          /dev/video23
          /dev/video24
          /dev/video25
          /dev/video26
          /dev/video27
          /dev/video28
          /dev/video29
          /dev/video30
          /dev/video31
          /dev/video32

  ipu6 (PCI:0000:00:05.0):
          /dev/media0

  Virtual Camera (platform:v4l2loopback-000):
          /dev/video0

  dmesg shows the following ipu6 logs --

  $ sudo dmesg | grep ipu6
  [   10.600627] intel-ipu6 0000:00:05.0: enabling device (0000 -> 0002)
  [   22.119139] pci 0000:00:05.0: deferred probe pending: intel-ipu6: IPU6 bridge init failed
  [   22.822604] intel-ipu6 0000:00:05.0: Sending BOOT_LOAD to CSE
  [   22.840063] intel-ipu6 0000:00:05.0: Sending AUTHENTICATE_RUN to CSE
  [   22.909654] intel-ipu6 0000:00:05.0: CSE authenticate_run done
  [   22.909664] intel-ipu6 0000:00:05.0: IPU6-v3[a75d] hardware version 5

  ProblemType: Bug
  DistroRelease: Ubuntu 25.04
  Package: libcamera0.4 0.4.0-5ubuntu1
  ProcVersionSignature: Ubuntu 6.14.0-15.15-generic 6.14.0
  Uname: Linux 6.14.0-15-generic x86_64
  ApportVersion: 2.32.0-0ubuntu5
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Sun Apr 13 21:06:13 2025
  InstallationDate: Installed on 2024-07-25 (263 days ago)
  InstallationMedia: Ubuntu 22.04.4 v0.7.8 "Custom Jammy Jellyfish" (20240617)
  ProcEnviron:
   LANG=en_US.UTF-8
   PATH=(custom, no user)
   SHELL=/usr/bin/zsh
   TERM=xterm-ghostty
   XDG_RUNTIME_DIR=<set>
  SourcePackage: libcamera
  UpgradeStatus: Upgraded to plucky on 2025-04-11 (3 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ffmpeg/+bug/2107304/+subscriptions