Repository navigation
vlc-video: Enable building the plugin on Linux - #562
Merged
Merged
Conversation
|
Can one of the admins verify this patch? |
alexisluo
pushed a commit
to alexisluo/obs-studio
that referenced
this pull request
Oct 16, 2016
vlc-video: Enable building the plugin on Linux
jacklinw
pushed a commit
to epicsf/obs-studio
that referenced
this pull request
Aug 13, 2017
vlc-video: Enable building the plugin on Linux
BlueCheeseburger
pushed a commit
to BlueCheeseburger/obs-studio
that referenced
this pull request
Aug 22, 2026
vlc-video: Enable building the plugin on Linux
modbender
added a commit
to braidcast/braidcast-studio
that referenced
this pull request
Sep 20, 2026
A Desktop Audio loopback capture received no packets at all while its render endpoint was silent: Windows stops an endpoint's audio engine when no render session is open on it, so libobs' expected timestamp fell behind wall clock for the whole idle stretch, then it buffered to its cap and restarted the source's audio -- audible to viewers as desktop audio drifting late and then cutting. Three live streams logged gaps of 22.6 s, 53.6 s and 340 s. Upstream's "silent loopback fix" cannot help: it writes one buffer of silence at Initialize, never calls Start, and releases the client on return, while its comment claims it plays silence "all over again". That comment is why the defect stayed hidden, so the dead code goes with it. SilentRenderKeepalive holds one started render session of silence on the capture's endpoint for as long as the capture is open, topping the buffer up every 500 ms on its own thread. It is self-contained: the thread creates, refills and releases every COM object it touches, reads no WASAPISource state, and every failure degrades to one log line and a capture that behaves exactly as it did before. The session is hidden from the volume mixer and named for the builds that show it anyway. Gated by a new BRAIDCAST_SELFTEST_STREAM=loopback-silence mode, which opens a capture on a named quiet endpoint and judges four things: the longest stretch with no callback, the received sample count against wall clock at the rate libobs mixes at (the only check that catches partial starvation), and zero TS_SMOOTHING_THRESHOLD or audio-restart complaints. The endpoint must be named -- a default endpoint usually has another render session on it, which makes fixed and unfixed builds identical. Measured on a second, quiet endpoint: unfixed delivers 0 packets in 20 s; fixed delivers 6096 packets / 2926080 frames over 61.0 s, a 0.011% shortfall against wall clock, max gap 16 ms, leaks 0. Refs: learn.microsoft.com "Loopback Recording" and AUDCLNT_SESSIONFLAGS, PortAudio obsproject#935, miniaudio obsproject#562, and Matthew van Eerde's silence.exe write-up (matthewvaneerde.wordpress.com), which is where the started-stream keepalive pattern comes from.
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.
Before the second commit in the pull request:
After the second commit in the pull request:
The plugin also shows up in the GUI and I was able to add a list of videos.