Skip to content

vlc-video: Enable building the plugin on Linux - #562

Merged
jp9000 merged 2 commits into
obsproject:masterfrom
tgurr:vlc-video-linux
Jul 13, 2016
Merged

jp9000 merged 2 commits into
obsproject:masterfrom
tgurr:vlc-video-linux

Conversation

@tgurr

@tgurr tgurr commented Jul 7, 2016 •

Copy link
Copy Markdown
Contributor
-- Found LibVLC_INCLUDES: /usr/include/vlc
$ ls -la /usr/x86_64-pc-linux-gnu/lib | grep libvlc
-rwxr-xr-x   1 root root     1151 Jul  6 18:32 libvlccore.la
lrwxrwxrwx   1 root root       19 Jul  6 18:33 libvlccore.so -> libvlccore.so.8.0.0
lrwxrwxrwx   1 root root       19 Jul  6 18:33 libvlccore.so.8 -> libvlccore.so.8.0.0
-rwxr-xr-x   1 root root  1105864 Jul  6 18:33 libvlccore.so.8.0.0
-rwxr-xr-x   1 root root     1171 Jul  6 18:33 libvlc.la
lrwxrwxrwx   1 root root       15 Jul  6 18:33 libvlc.so -> libvlc.so.5.5.0
lrwxrwxrwx   1 root root       15 Jul  6 18:33 libvlc.so.5 -> libvlc.so.5.5.0
-rwxr-xr-x   1 root root   139648 Jul  6 18:33 libvlc.so.5.5.0

Before the second commit in the pull request:

info: Loading module: vlc-video.so                                                                                                                                                                                                                                             
error: os_dlopen(libvlc.5.so->libvlc.5.so): libvlc.5.so: Unable to open the Shared-Object-File: File or directory not found

After the second commit in the pull request:

info: Loading module: vlc-video.so                                                                                                                                                                                                                                             
info: VLC found, VLC video source enabled
info:      ┃ ┗obs_init_module(vlc-video.so): 0,074 ms

The plugin also shows up in the GUI and I was able to add a list of videos.

@ONSBalder

Copy link
Copy Markdown

Can one of the admins verify this patch?

@jp9000
jp9000 merged commit 0c415ee into obsproject:master Jul 13, 2016
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants