Skip to content

Flatpak: Camera portal fails with 'no more input formats' for I420-only V4L2 devices, but direct V4L2 source works #13744

Closed as not planned

Description

@Owlock

Operating System Info

Other

Other OS

Linux Mint 22.3 (XFCE), kernel 7.0.0-28-generic (Ubuntu 24.04 HWE)

OBS Studio Version

32.2.1

OBS Studio Version (Other)

No response

OBS Studio Log URL

https://obsproject.com/logs/543fa1XYpnsOONJm

OBS Studio Crash Log URL

No response

Expected Behavior

A V4L2 device that only exposes planar pixel formats (e.g. I420/YU12) should be usable via the Flatpak camera portal. At minimum it should either negotiate successfully or report a clear error, not silently show a black screen.

Current Behavior

Adding a "Video Capture Device (V4L2)" source in the Flatpak build of OBS uses the camera portal. For a v4l2loopback device exposing only I420 (DroidCam's v4l2loopback-dc), the preview stays black. The log shows the portal selecting the device, then the PipeWire stream failing with "no more input formats":

[camera-portal] Found device v4l2_input._sys_devices_virtual_video4linux_video2
[camera-portal] Selected format for 'v4l2_input._sys_devices_virtual_video4linux_video2'
[camera-portal] streaming camera 'v4l2_input._sys_devices_virtual_video4linux_video2'
[camera-portal] Updating device v4l2_input._sys_devices_virtual_video4linux_video2
[pipewire] Stream 0x6477752e0cb0 state: "error" (error: no more input formats)

The SAME device, when OBS accesses /dev/video2 directly through the classic "Video Capture Device (V4L2)" source (bypassing the portal), negotiates native YU12/I420 and displays fine. This is not DroidCam-specific: any V4L2 device offering only planar formats (I420/YU12, no YUY2/MJPEG) fails through the portal negotiation path.

Steps to Reproduce

  1. Create a v4l2loopback device that only exposes I420/YU12. Example: DroidCam's v4l2loopback-dc (width=1280, height=720, video_nr=-1); the producer writes YU12 1280x720@30 to /dev/video2, which exposes only format YU12:1280x720@30.
  2. In the Flatpak build of OBS (com.obsproject.Studio 32.2.1), add a "Video Capture Device (V4L2)" source (this goes through the camera portal) and select that device.
  3. Observe: the preview stays black and the log reports "error: no more input formats" from the PipeWire stream.
  4. For comparison: add the same device via the classic V4L2 source with the direct device path (/dev/video2) - the video displays normally, proving the device and driver are fine and the failure is in the portal's format negotiation.

Anything else we should know?

Environment: Linux Mint 22.3 (XFCE), kernel 7.0.0-28-generic (Ubuntu 24.04 HWE), xdg-desktop-portal + PipeWire, OBS Studio 32.2.1 (Flatpak, com.obsproject.Studio).

Full log (uploaded): https://obsproject.com/logs/543fa1XYpnsOONJm

Device format in use: I420/YU12 (planar YUV 4:2:0). The portal successfully negotiates the physical webcam (v4l2_input.pci-...) but "Updating pixel formats" for the I420-only device ends in the pipewire stream error above.

Activity

  1. Owlock commented on Aug 2, 2026

    @Owlock
    Author

    I published a public gist with the full working setup and a double-click desktop launcher:

    https://gist.github.com/Owlock/fb531ace3227bc9962789e76438bf569

    Summary of the workaround (OBS 32.2.1 Flatpak, Linux Mint XFCE, DroidCam on /dev/video2 with YU12/I420 only):

    • The PipeWire camera portal source fails with no more input formats.
    • A classic "Video Capture Device (V4L2)" source pointed at /dev/video2 works directly with the native YU12 format — no gstreamer bridge needed.
    • The official OBS DroidCam plugin is optional; the plain V4L2 source works without it.

    The gist also includes the launcher files (droidcam-obs.sh + .desktop entry) so it works from a double-click.

  2. tytan652 commented on Aug 3, 2026

    @tytan652
    Collaborator

    This sounds more likely to be a support request rather than a bug report, and we are not currently accepting support requests on GitHub Issues. Please use our forums or Discord for further assistance.

    Moreover:

    Adding a "Video Capture Device (V4L2)" source in the Flatpak build of OBS uses the camera portal.

    This is false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions