Repository navigation
fix: diagnose exclusive_caps and leftover gst on video10 - #50
Merged
Merged
Conversation
exclusive_caps is per-device, so OBS-first v4l2loopback loads left PhoneCam on video10 with caps disabled. Doctor and Verify now fail that, warn on leftover /dev/video10 holders, and treat firewalld ports as INFO when already allowed. start/smoke honor SIGHUP, and receiver restart logs include gst's not-negotiated reason.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Make
phonecam doctor,phonecam startpreflight, andphonecam installcatch the Fedora+OBS host failures from the first external rc.1 test, and stop leavinggst-launchbehind when the terminal hangs up.exclusive_caps.v4l2loopbacktreatsexclusive_caps=1as a CSV aligned withvideo_nr, not a global boolean. With OBS already on/dev/video0,devices=2 video_nr=0,10 exclusive_caps=1becomesY,N,…and PhoneCam on/dev/video10has exclusive caps off. Doctor FAILs that;v4l2.Verifyfails start the same way. Missing sysfs still skips (existing setups keep working)./dev/video10open (gst-launch-1.0, PipeWire, …) by walking/proc/*/fd. Never fails the report.--query-portsucceeds for 47470/tcp and 47471/udp, doctor is INFO instead of WARN.rmmod+exclusive_caps=1,1).startandsmokecancel on hangup soCommandContextkillsgst-launchinstead of orphaning it on/dev/video10.Restarting GStreamer receiver (N)includesstreaming stopped, reason not-negotiatedinstead of only the genericudpsrcline.README Status notes the Fedora KDE aarch64 + OBS + Motorola Edge 60 Fusion report. Version stays
0.2.0-rc.1.Why
The Motorola session paired and received 1280×720@30 RTP, then gst looped on
udpsrc: Internal data stream error. That wasv4l2sinknot-negotiated: an orphaned receiver held video10, and exclusive caps were enabled only on OBS’s node. Doctor said ready; install taughtexclusive_caps=1for one device.Tests
Plus
-count=1onv4l2,doctor,cli,start.Compatibility
No pipeline, pairing, or Android change.
exclusive_caps=1remains required on the PhoneCam node. Meeting-app visibility is unchanged once that node is loaded correctly.Notes
--query-portmay still WARN if firewalld allowed a range (1025-65535) rather than the exact ports — we did not parse range lists.DeviceOpenersskipsEACCES, so a non-root doctor can miss root holders.start/smokesessions; an already-orphanedgst-launchstill needsfuser -k /dev/video10.