Repository navigation
Closed
Description
Operating System Info
Other
Other OS
Arch Linux
OBS Studio Version
Git
OBS Studio Version (Other)
https://aur.archlinux.org/packages/obs-studio-git, commit: 348793b
OBS Studio Log URL
OBS Studio Crash Log URL
No response
Expected Behavior
Successful display of my webcam feed that's piped into PipeWire.
Current Behavior
I am able to select my device when I add a "Video Capture Device (PipeWire) (BETA)" source but none of the other dropdowns have values that I can select.
The gphoto2/gstreamer command I use to pipe my webcam feed to pipewire exits with an error when OBS connects. Here's the output:
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Capturing preview frames as movie to 'stdout'. Press Ctrl-C to abort.
ERROR: from element /GstPipeline:pipeline0/GstPipeWireSink:pipewiresink0: stream error: no more input formats
Additional debug info:
../pipewire/src/gst/gstpipewiresink.c(543): on_state_changed (): /GstPipeline:pipeline0/GstPipeWireSink:pipewiresink0
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
Steps to Reproduce
- Connect a camera supported by gphoto2 to the system
- Pipe the camera feed to a pipewire sink via gstreamer
- Attempt to add the PipeWire camera as a "Video Capture Device (PipeWire) (BETA)" source
...
Anything else we should know?
Here's the script I use to pipe the preview feed from my Canon 250D camera to PipeWire.
#!/usr/bin/env bash
set -euo pipefail
sink_name="DSLR"
pipewire_sink_props="p,node.description=$sink_name,node.name=$sink_name,media.role=Camera,media.class=Video/Source"
gphoto2 --stdout --capture-movie \
| gst-launch-1.0 \
fdsrc \
! decodebin \
! pipewiresink stream-properties="$pipewire_sink_props"This allows my camera to work flawlessly as a webcam in both Firefox and Zoom.
- Firefox by enabling the
media.webrtc.camera.allow-pipewireoption - Zoom by wrapping the zoom process with
pw-v4l2
Metadata
Metadata
Assignees
Labels
No labels
Activity
ChrisLane commentedon Feb 1, 2024
@GeorgesStavracas I'm guessing you're the person to ping for this given you submitted the pull request that implemented the feature.
tytan652 commentedon Feb 1, 2024
My guess is that your stream does not provide YUY2 format, so it's technically not supported.
The YUY2 format cover most of the camera/webcam scenarios, supporting other formats requires more work and is planned IIRC.
ChrisLane commentedon Feb 1, 2024
You're right, thank you!
The output from gphoto2 seems to be JPEG frames and I was able to add a conversion to YUY2 in my gstreamer pipeline.
My working command now looks like this
ChrisLane commentedon Feb 1, 2024
Interestingly, I do get similar "no more input formats" errors if I start piping video to pipewire AFTER OBS is already running.