145 Commits
Author SHA1 Message Date
vhaudiquet f8fd8e30dc bump version (0.3.2)
record-daemon / Check and lint (Linux) (push) Successful in 1m17s
record-daemon / Build (Windows x64) (push) Successful in 2m8s
v0.3.2
2026-11-23 20:03:30 +01:00
vhaudiquet f85f9b49d3 app: keep the list scroll bar off the clip view
The clip screen fell through to the history and settings branch, so their thumb stayed where its own viewport left it: a grey bar on the clip's right that scrolled nothing. Each screen now names its own bar, and the clip draws none.
2026-11-23 19:50:22 +01:00
vhaudiquet 7463cf3905 app: stop playback when the window closes or hides
Closing the window leaves the app in the tray, so a clip or a review
kept playing with no picture. The window's close and the app's quit now
pause the open clip and every review player, and Hide pauses them too
before the window goes. Reopening shows the same screen, paused where it
was.
2026-11-23 19:47:08 +01:00
vhaudiquet 531238039d app: unmute clips and put their controls on the picture
A clip opened muted, and its transport sat in a row under the stage.
Clips now start with sound on, and the controls sit over the bottom of
the video: a time bar that seeks by press or drag, the clock, play and
pause, two-second jumps either way, and mute. They rest visible while
the clip is paused and hide while it plays, coming back when the pointer
enters the player. The overlay follows the player's clock, so the bar
and the time move with the picture.
2026-11-23 19:47:04 +01:00
vhaudiquet 5377d88ca6 app: show a red tray icon while recording
The tray kept the app's medallion while the daemon recorded, so the
notification area said nothing about it. The icon now becomes a plain
red disc, set with the menu whenever the recording state changes. The
state comes from the daemon's status, so a recording started from
another program shows too.

Rune's tray could only replace its menu and tooltip, so the vendored
rune takes Tray::set_icon: Windows rebuilds the HICON and sends
NIM_MODIFY, Linux swaps IconPixmap and emits NewIcon.
2026-11-23 18:44:12 +01:00
vhaudiquet 9e4349fe42 app: find a clip in the folder it was recorded to
History lists a timeline from the default recordings folder, where
the daemon writes them, but review looked for its clip only there as
well. A recording made into the folder chosen in settings therefore
appeared in history with no video. The app now searches the
configured folder first and the default one after it, and uses the
path stored with the timeline when the recorder wrote one, so a clip
stays playable after the setting moves and an older timeline still
plays.

Settings are read back after a save because the daemon resolves the
chosen folder to an absolute path. The two Open folder buttons open
the configured folder instead of the default one.
2026-11-23 18:24:22 +01:00
vhaudiquet 86fc7cea2f record-daemon: keep a changed recordings folder usable
A folder typed into the settings screen was saved but never made. OBS
does not create directories, so the next recording failed at its
output and no timeline reached history. The daemon now makes the
folder when settings are saved and again before each recording
starts, rejects a folder it cannot use, and resolves it to an
absolute path so both programs name the same place.

Timelines now store the absolute path of their video next to the
file name, so a clip stays reachable after the recording folder
changes.
2026-11-23 18:24:20 +01:00
vhaudiquet f3e44a2132 app: keep a paused clip's layer picture on the pixels it played on
The vendored rune's layer rounded its size and sat at it 1:1, while the
window draws a paused clip itself at the exact fractional rect: pausing
moved the picture by up to a pixel. The layer's visual now sits at that
rect and stretches its buffer onto it (SetTransform2), and the vendored
rune takes windows-numerics for the matrix.

Also snapshot hooks: LR_DEMO_PLAY starts the demo clip and
LR_DEMO_PAUSE_AT pauses it once the clock passes a time.
2026-11-23 18:11:02 +01:00
vhaudiquet 5cbf284841 app: play a recording's own sound and read a pause's place from the player
The review screen carried two workarounds for rune's video player: tick
ignored the player's place while a clip was paused because the first
pause read zero, and the player was muted for good because its sound
never kept the clock, so the soundtrack came from an audio-only player
of the whole file, kept in step by keep_in_step.

Rune now holds the pause's picture and time and reads a video's sound
ahead of the clock, so the video player carries the sound of a
single-track recording itself, and tick reads the place whatever the
playback state. A recording with several tracks still cuts one player
per source, so the channels stay hearable apart; the video stays muted
and keep_in_step keeps those players with the pictures.
2026-11-22 23:54:00 +01:00
vhaudiquet 5bf262b82b app: cherry-pick rune's pause and sound fixes onto the checkout
Rune comes from app/vendor/rune now, a checkout of 63ad0209 on branch
ported, carrying the four commits of upstream issues 1320 (a pause while
a clip is layered holds the layer's picture and time) and 1325 (a video's
sound is read ahead of the clock and leads it). Both were written against
eb9f1104 and ported across the refactors since. The faults are the first
two and the third in docs/rune-upstream.md; the app's workarounds in
review.rs stay until the fixes arrive upstream.
2026-11-22 22:16:30 +01:00
vhaudiquet 80fef698ce app: bump rune to 63ad020
Moves all three rune git deps from 4ddf696 to the tip of the tree.
Nothing in our own code needed to change for the new revision.
2026-11-22 21:55:59 +01:00
vhaudiquet a85f91e07d app: stop the review soundtrack when an export opens the clip view
Finishing an export jumped straight to the clip view without leaving
the review screen, so its soundtrack channels kept playing under the
clip. The 1, 2 and 3 shortcuts had the same gap: they switched
screens while the soundtrack played on.
2026-11-22 20:34:34 +01:00
vhaudiquet 918e653a0a app: wrap the clip view's title instead of letting it widen the panel
A clip exported from a recording carries the recording's uuid as its
name, long enough to push the title field past the panel and the
window. The field now wraps, one to two lines tall, scrolling inside
when there is more, and the panel holds its width; the header beside
it truncates with an ellipsis as it already did.

Return makes a new line in a wrapping field, so saving is the
button's job alone.
2026-11-22 20:18:58 +01:00
vhaudiquet 9ce2b75568 app: open a clip view from a card and after an export
The grid answers what was exported; the view answers this one clip.
It plays the file muted and looping, with a transport under it, and a
panel on the right for the title and the share.

The title is the file's name, because a file is the only place a clip
keeps one: saving renames it, the miniature follows, and the grid
shows the new name. Share puts the file itself on the clipboard, so
pasting it into a chat attaches the video. The card's share button
does the same now, and an export that finishes opens the view it
produced.
2026-11-22 19:20:16 +01:00
vhaudiquet 146256714b app: keep the clip name out of the delete dialog
A long recording id pushed the wording past the panel's edge. The
dialog now says the deletion plainly and leaves the naming to the
card the dialog was opened from.
2026-11-22 18:59:47 +01:00
vhaudiquet e7c9c5b672 app: drop the play mark from the clip cards
The miniature fills the stage, and the mark rode over it as if the
card were a button, which it is not yet. The stage now shows the
picture alone; playing a clip comes with the click that plays it.

Demo clips pick up a miniature already on disk the way the folder
listing does, so a repeat snapshot does not sit on black stages.
2026-11-22 18:56:51 +01:00
vhaudiquet 83ca4071d4 app: cut miniatures for the clips grid
Each card's stage shows a frame of the clip now, cut once with ffmpeg
into a thumbs folder beside the clips and reused from there. The pass
runs one clip at a time on a thread, skips what is already on disk and
as new as its clip, and poll drops each finished picture into its card
as it lands. Deleting a clip takes its miniature with it.

The frame is the clip's first: an export starts on the moment the clip
was cut for, so the picture shows the action without a seek. A clip
re-exported over the same name keeps its old picture until restart,
because the image cache keys a file by its path alone.
2026-11-22 18:52:57 +01:00
vhaudiquet 3f82f87a81 app: open the clips grid
The clips screen lists the clips folder: one card per mp4 the user
exported, newest first, with the clip's 16:9 stage, the champion it
stars when its recording is in the loaded history, share, and a menu
whose Delete removes the file. The folder read runs when the screen
opens, and again when an export finishes on it.

Computed highlights were the first plan for the grid, but a real
history parses hundreds of timelines and some run to tens of MB, so
the grid now reads only what the user actually exported.
2026-11-22 18:36:00 +01:00
vhaudiquet fac1ec00da bump version (0.3.1)
record-daemon / Check and lint (Linux) (push) Successful in 1m10s
record-daemon / Build (Windows x64) (push) Successful in 1m47s
v0.3.1
2026-11-21 19:32:38 +01:00
vhaudiquet b173d75e98 app: use the tauri-app medallion icon on the window, taskbar and tray
record-daemon / Check and lint (Linux) (push) Successful in 1m12s
record-daemon / Build (Windows x64) (push) Successful in 1m44s
The exe carried no icon resource and the tray drew a stand-in disc, so
Explorer, the taskbar and the tray each guessed at what to show. The
old front end's medallion was already in the tree and identical to the
installer's icon.ico, so the whole shell now draws it: set_app_icon
feeds icons/icon_full.png to rune before the event loop, the tray
decodes the bundled 32 px, and build.rs bakes icon.ico into the exe
for Explorer and shortcuts. The 128 px variants stay in tauri-app,
which rune's own resizing makes redundant here.
2026-11-21 19:19:58 +01:00
vhaudiquet 6ca825990d app: delete a recording from its card's menu
The list could only open the review, so a clip that was not worth
keeping stayed on disk forever. The dots beside Review open a menu
drawn over this window, so it stays inside it, with room for more
actions later. Delete asks before the clip and its timeline leave
the disk and the row leaves the list.
2026-11-21 19:01:41 +01:00
vhaudiquet b1cde7e783 record: size recordings from the screen, not the quality preset
The quality preset chose the OBS canvas while the capture ran at the
game's real size, and the scene item carries no transform, so picking
1080p on a 1440p screen recorded only the top-left 1920x1080 crop of
the game.

Recordings now always run at the primary monitor's resolution, queried
in device pixels so display scaling cannot skew them, and a recording
start re-checks the screen so a display change mid-session cannot
bring the crop back. Quality presets keep their bitrate meaning and
nothing else; they never reached the encoder before, so High, Ultra
and friends now actually change what a recording costs on disk.
2026-11-21 18:15:52 +01:00
vhaudiquet 1d7f87f71d app: cut a recording's audio tracks off the UI thread
record-daemon / Check and lint (Linux) (push) Successful in 1m9s
record-daemon / Build (Windows x64) (push) Successful in 2m0s
The first open of a multi-track recording re-encoded every track on the
main thread, so the channels could be muted apart. On a 27 minute clip
that is 12.8 s per track, about a minute of a window Windows marks as not
responding, which is what made a game look ready to crash the first time
it was opened. The files are cached, so only that first open paid it.

The cut now runs on a thread, and `tick` opens the channel players when
the files land, at the playhead's time and playing state. Each track is
copied instead of re-encoded, which takes 0.4 s on the same clip, and the
AAC encode stays as a fallback for a codec an m4a cannot hold. A mutex
keeps two cuts from writing the same cache file when a row is reopened
while its first cut is still running.
v0.3.0
2026-11-19 23:20:17 +01:00
vhaudiquet 9f6a047867 app: compute the download percentage with checked_div
The current clippy flags the `if total > 0` guard around the division as
`manual_checked_ops`, and `-D warnings` turns that into a failed build,
so nothing else in the app could be checked. `checked_div` says the same
thing without the lint.
2026-11-19 23:20:17 +01:00
vhaudiquet 70e896b3cb ci: answer libobs-wrapper's X11 and Wayland links when crossing
record-daemon / Check and lint (Linux) (push) Successful in 1m7s
record-daemon / Build (Windows x64) (push) Successful in 1m45s
Its build script decides with #[cfg], and a build script is compiled for
the host, so cross-building from Linux asks the linker for X11.lib and
wayland-client.lib on a Windows target. Empty archives on the search
path satisfy it and pull nothing into the exe.
2026-11-19 23:06:23 +01:00
vhaudiquet 6a604fe4d8 ci: build the daemon for Windows instead of Linux
record-daemon / Check and lint (Linux) (push) Successful in 1m5s
record-daemon / Build (Windows x64) (push) Failing after 1m50s
The Linux job could not get past the linker: libobs-wrapper asks for the
OBS 32 scene-item calls and the distro's libobs (30.0.2 on noble, and
the OBS PPA publishes no libobs-dev at all) does not have them. That is
the state the job has been in, so nothing was building.

The daemon ships on Windows, where obs.lib rides with the libobs crate,
so the build that matters is the Windows one and cargo-xwin compiles it
from the Linux runner with the MSVC runtime and SDK it downloads.

The Linux job stays as formatting and clippy over every target: clippy
stops at type checking, so it still compiles the cfg(target_os = "linux")
paths without linking them. Tests need a machine that can run the exe,
so they stay local for now.
2026-11-19 22:56:47 +01:00
vhaudiquet 18a952d4c1 record-daemon: keep the process-name helper Windows-only
record-daemon / Build, check and test (push) Failing after 1m14s
The process walk that compares exe names is the Windows one; on Linux
nothing called normalize, and -Dwarnings in CI made that a failure.
2026-11-19 22:50:16 +01:00
vhaudiquet 94cbdcf0b1 record-daemon: build the Linux capture path again
record-daemon / Build, check and test (push) Failing after 1m12s
CI has been red since libobs-simple started handing back an either-or
source for screen capture: on Linux the builder picks X11 or PipeWire,
so build() gives ObsEitherSource rather than a source ref, and the
closure's error was left as a RecordingError instead of the daemon's.

The kept source is now a per-platform alias, one type on Windows and
the either-or on Linux; the scene calls only ask for a source, so both
go through. The encoder list is built per platform too: the Linux one
never grew past x264 and the `mut` was flagged.
2026-11-19 22:47:57 +01:00
vhaudiquet 297118cfc1 app: download ffmpeg on the first run, not the first export
record-daemon / Build, check and test (push) Failing after 1m15s
Clip export needs ffmpeg, and the app fetched it when an export was
asked for: a minute of nothing at the worst moment, with the export
sitting behind it. The run that follows an install now fetches it in
the background and narrates the download in the notice banner; the
notice is updated in place and leaves another notice alone. A hidden
start (the login item) skips the fetch and leaves it to the export.

Only ffmpeg.exe is unpacked. The archive also carries ffplay and
ffprobe, which the export paths never call: unpacking all three put
370 MB beside the exe instead of 105 MB.

An export asked for while the download runs says so instead of
starting a second download over the same directory, and --fetch-ffmpeg
runs the same fetch from a shell, printing progress.

Checked on this machine: --fetch-ffmpeg downloaded in about 20 s,
unpacked, and answered "ready"; a second run returned at once.
2026-11-19 22:23:08 +01:00
vhaudiquet 20303d5ddc app: ship the VC++ runtime with the installer
The app, the daemon, obs.dll and every OBS plugin import VCRUNTIME140.dll,
and the plugins reach for MSVCP140.dll and VCRUNTIME140_1.dll as well.
Windows carries the UCRT but none of those, so an installer without them
starts nothing on a machine that never ran Visual Studio; this one only
worked because the redistributable happened to be installed here.

The three DLLs live in vendor/vcruntime (they are on the redistributable
list) and packager.toml copies them beside the exes.
2026-11-19 22:19:38 +01:00
vhaudiquet 72a6da0ca3 app: note the VC runtime the installer assumes
Both exes import VCRUNTIME140.dll, which Windows does not ship: the
installer works here because Visual Studio's redistributable is
installed. A clean machine would refuse to start the app until either
the redist rides along or the build uses a static CRT.
2026-11-19 21:46:19 +01:00
vhaudiquet 61862ef792 app: make the packager config build the NSIS installer
Three faults kept `cargo packager` from producing anything. "$schema"
was unquoted, which made TOML reject the file so the tool found no
config at all. Without `name`, cargo-packager sets its working
directory to the config *file* before reading the crate name and dies
with ERROR_DIRECTORY. Without `binaries`, it has no main binary; a
config file gets no auto-detection from Cargo.toml, so the binary and
its directory are named here.

The resource list shipped a piece of OBS (obs.dll, its plugins, two of
three libobs DLLs) and none of its data, so the packaged daemon would
have loaded obs.dll without avcodec, libcurl or the module data. It
now copies every DLL the daemon loads, the plugin and module data, and
the obs-*.exe helpers, all from the daemon's release build.

The installer built from this puts the app and the daemon in one
directory: on the dev machine the installed pair answers --probe in a
second with a fresh data directory, and OBS 32.1.0 loads from the
shipped files without downloading anything.
2026-11-19 21:45:53 +01:00
vhaudiquet 74b35b0120 app: play past a clip's end and zoom the scrubber to the clip
Playing in clip mode froze whenever the play head already sat at or
past the end of the selection: the preview rule stopped playback as
soon as the head reached the end, so a play started there was over
before it began. Remember where playback began and stop at the end
only when it began before it.

The scrubber now shows a window around the selection while a clip is
being chosen, the selection taking half the track, so its two ends can
be placed to the pixel. The window holds still while an end is dragged,
and a drag that leaves the bar keeps counting, so a clip can still be
grown past the window.
2026-11-19 20:48:07 +01:00
vhaudiquet 0c7e80d896 app: take the details scroll bars down with the column
The two bars are drawn over the window from the rects their viewports
report, and a live rect outlives the viewport it came from. Closing the
details column stopped reporting, so the last rects stayed and the bars
kept floating over the clip, scrolling nothing.

Draw the bars only while the column they belong to is up.
2026-11-19 19:33:32 +01:00
vhaudiquet 409be9d31a app: give the clip's ends an arrow each on the scrubber
The clip's ends were 3 point bars that took whichever end the pointer
pressed nearest, so a drag near the middle of the track moved an end
instead of the picture, and the two bars were easy to miss on a long
recording.

Each end is now a round gold arrow over the knob, one per end, and only
a drag that starts on an arrow moves that end. The track and the knob
seek as before, in clip mode too. The played part of the track goes
neutral while a clip is chosen, so gold marks the selection alone.

The knob is centered on the play head now, so an arrow at the same
second sits on it rather than a few points beside.
2026-11-19 19:26:09 +01:00
vhaudiquet 5ab3161bf5 app: move the review back arrow into the title bar
Settings already leaves the screen from the title bar, while the review
kept its own back button in the header beside the champion portrait.
Both screens now share the title bar button, and the review header
starts with the portrait.

The button still calls leave, so the player and the soundtrack stop on
the way out.
2026-11-19 18:55:02 +01:00
vhaudiquet 673cddfff6 app: build as a windowed app so no console opens with it
The exe was a console-subsystem binary, so every launch allocated a console
window: from Explorer, from the Run key at login, everywhere. The PE header
now says windowed (`windows_subsystem = "windows"`), and Windows creates no
console for the process.

The printing modes still work from a shell: `attach_console` borrows the
console of whatever started the app, and does nothing when nothing did. The
daemon was already spawned with `DETACHED_PROCESS`, so it never had a window
of its own, and ffmpeg goes through `ffmpeg-sidecar`, which passes
`CREATE_NO_WINDOW` on each spawn.
2026-11-19 18:49:30 +01:00
vhaudiquet eabc3780c9 record: keep a track per audio source and let the review mute them
The recorder put every source on one mixer track, so the file had one audio
stream and the review screen could not tell the game's sound from the
microphone or from Discord.

The daemon now gives each source a track: 1 for the game, 2 for the
microphone, then one per application in the settings, up to OBS's six. Every
track above the first gets an audio encoder and the output is told which
tracks to write, which is what libobs's muxer reads to lay the streams out in
track order. The timeline's new `audio_tracks` names what each stream holds,
with empty names for the tracks no source fed.

The app opens one player per stream, copied out of the clip into the audio
cache, and the transport carries a toggle per channel. A channel that is off
is neither heard nor kept: clip and highlight exports mix only the tracks
left on. Recordings made before this change have one stream and play as they
did.
2026-11-19 18:37:20 +01:00
vhaudiquet 4f2ee4256a app: draw the transport as icons and add a clip mode
The transport showed "Pause", "-10 s" and "+10 s" as words. It now shows
back, play or pause, and forward as shapes, with the words left to the
accessible label. The icons are SVG paths in `icons.rs`, so no font has
to carry them.

Clip mode: the Clip button opens a selection at the play head, the
scrubber drags either end (the end the press landed nearest), the span is
drawn on the track with a handle at each end, and the row under the
transport carries the range, Export clip and Done. Previewing stops at
the end of the selection.
2026-11-19 00:48:32 +01:00
vhaudiquet 4aac0ac70b app: leave the soundtrack alone when the clip stops drawing
record-daemon / Build, check and test (push) Failing after 1m27s
A window that is not drawing stops pulling the clip, so the picture time
stands still while the soundtrack keeps playing from its own reader. The
sync loop read that growing gap as drift and seeked the sound back to the
standing place on every wake, which repeats one second forever. Measured
with a window over the app: the picture stayed at 430.83 s for 6192 wakes
while the sound ran from 495.66 to 495.82.

Only correct the soundtrack once the picture time has moved since the
last correction.

docs/rune-upstream.md records the three rune faults behind this and the
black pause, with the file to change and how to check a fix. Rune main
does not fix them (the video code is unchanged) and does not build on
Windows here.
2026-11-19 00:29:37 +01:00
vhaudiquet f6ccbf59bc app: keep the scrubber where it is when the clip pauses
Rune reads a layered clip's place from its compositor clock, and that
clock stops with playback. The first pause therefore reads zero, the
scrubber jumps to the start, and the clip draws there, which is the
black first second of a recording.

The place is the app's while the clip is paused: only a seek moves it,
and resuming reads the player again.
2026-11-19 00:08:07 +01:00
vhaudiquet ac9faba229 app: play the soundtrack from its own player
Unmuting the review's video player was not enough: rune asks Media
Foundation for pictures and sound from one reader, and that reader stamps
the sound samples from its own session clock rather than the clip's start.
The stamps land about six seconds after the playhead, so the queue never
lines up with the clock and every fill writes zeros.

An audio-only player reads the same file and starts at zero. The review
now keeps one for the soundtrack, muted the video player, and drives both
players from the transport bar: play, pause, seek, volume and mute. They
are kept within a quarter second of each other, and the soundtrack waits
until the file has reported it has sound, so clips without an audio track
open no second player.

Measured with rune instrumented against a 57 s recording: the video
player's render buffer carried zeros on every fill, the soundtrack player
carries the clip's samples at the set gain.
2026-11-18 23:07:00 +01:00
vhaudiquet 1e7e9dfc41 app: unmute the review player and add a volume control
rune starts a video muted and the review never told it otherwise, so every
recording played silent however loud its audio track was. The player now
unmutes at eight tenths, and the transport bar has Mute/Unmute and a
slider beside the clock.

The level carries from one recording to the next, since a viewer sets it
once.
2026-11-18 19:48:22 +01:00
vhaudiquet 543b489b11 add a root .gitignore for the agent scratch directory 2026-11-18 19:35:37 +01:00
vhaudiquet 2e463dab3a record-daemon: give scripted runs a home of their own
An end-to-end run of mine put its settings through updateSettings, which
wrote them to the user's real config: output path in %TEMP%, a "probe"
application, 30 fps. The next game recorded into %TEMP%, so it showed up
in the history with its metadata and no video beside it.

RECORD_DAEMON_HOME now moves the config directory, the recordings, the
logs and the IPC pipe under one directory. The app reads the same
variable, so a probe talks to the scratch daemon instead of the real one.
Default paths are unchanged.

The daemon also logs its config and recordings paths at startup, which is
the first thing to look at when a recording has no video.
2026-11-17 00:19:13 +01:00
vhaudiquet 6584b2f92f app: read the history a page at a time and open clips on demand
Every launch parsed all 313 timelines, raw responses and all, which put
2.1 GB of JSON on the heap at startup.

The list now holds `Summary` rows: `history::summaries` parses a file,
keeps the champion, queue, scoreline, LP change and event count, then
drops the timeline. Files are listed by write time, and `poll` reads the
next 20 when the list is scrolled near its end or when the filtered rows
do not fill the screen. Selecting a row hands its id to the review
screen, which reads that one timeline on a thread.

Peak memory over 313 recordings: 165 MB.
2026-11-16 23:48:58 +01:00
vhaudiquet 4efc2f3968 record-daemon: stop reading every timeline at startup
The store parsed all 309 timeline files on boot and held them in memory. Each
file carries the raw API responses, so 527 MB of JSON became about 2 GB of
serde values and nine seconds of startup.

Nothing reads the store back: the app loads the same files from disk itself. The
daemon now only writes timelines.
2026-11-16 23:26:34 +01:00
vhaudiquet 365e4ad732 record-daemon: keep app audio attached across recordings
OBS starts with the daemon and builds one scene, and every recording reuses it.
The process captures that used to be created per recording stay in that scene, so
a game or Discord window that disappears mid-session keeps feeding the mix.

The captures come from a watcher that scans for a window every two seconds: a
process with no window cannot be opened, so each source waits for its app to show
one, and a new window means the process restarted and needs a fresh source.

Settings now travel to the engine, and an audio change swaps only the device
captures. Applying them used to clear the scene, which took the process captures
with it.
2026-11-16 23:26:31 +01:00
vhaudiquet 9f5f1f669d record-daemon: keep one recorder running per machine
One test recording produced two half-files: the game in one, the
microphone in the other. Two daemons were alive at once, each with its
own OBS, and only one of them won the game's capture hook and its audio.
Any launch path can start a daemon (the app when it cannot reach the
pipe, the tray, a manual run) and the pipe server accepts a second
instance without complaint, so nothing stopped the second copy.

The daemon now claims a lock file in its configuration directory before
booting OBS. On Windows the file is opened with a share mode of zero, so
a second open fails with a sharing violation; on Unix an exclusive
flock does the same. The loser logs which process holds the lock and
exits, leaving the running recorder alone. Closing the handle releases
the lock, so a crash does not leave the machine without a recorder.
2026-11-16 22:20:51 +01:00
vhaudiquet 2953ab1ee3 record-daemon: give the audio sources the window OBS reads
Recordings came back silent apart from the microphone. win-wasapi's
process capture looks a window up from one setting, "window", a string
of title, class and executable joined by colons; the video source got
that string, the audio sources got "executable", "title" and "class" as
separate keys, which the plugin never reads. Both sources therefore had
nothing to hook, and the game and Discord tracks were empty.

window_string builds the value the plugin expects, escaping ':' and '#'
the way libobs decodes them, so a title with a colon in it still splits
into three fields. The game source asks for the League window by
executable, and an application source asks for its process the same way.

Checked against a recording: a process source for a browser playing a
loop now opens the loopback device for it, where before the plugin
logged "Failed to find window" for every audio source but the mic.

OBS's own log now goes into the daemon log under the obs target. A
daemon started in the background has no console, so its warnings about
a hook that never landed or a device that vanished were being thrown
away, and those are the lines that explain a silent track.
2026-11-16 22:20:47 +01:00