Commit Graph
49 Commits
Author SHA1 Message Date
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
vhaudiquet b82225ce08 record-daemon: enumerate real audio devices again
getAudioDevices handed out the hardcoded fallback pair because the real
enumeration killed the process: the device enumerator outlived its COM
apartment, so CoUninitialize() ran while an interface was still alive.
The enumeration now runs on a thread of its own, and the apartment is a
value declared after the COM objects so it is dropped after them.

The friendly name read used the wrong property key GUID, so every
device came back as "Input Device 1". With the right key the app gets
"Microphone (Insta360 Link 2C)" and the other endpoint names.

log_file also loses its -l short flag: clap's debug assertions reject
it because log_level already owns -l, and a debug build of the daemon
therefore exited on startup before serving a single command.
2026-11-16 19:06:29 +01:00
vhaudiquet 2e98159083 fix: apply audio volumes, enumerate real devices, remove dead code
- Audio sources were created but never added to the scene, so mic,
  game and app audio never reached the output; all sources are now
  added with their configured volume via obs_source_set_volume
- getAudioDevices enumerates real WASAPI devices again instead of
  returning hardcoded defaults (the crash-isolation bypass)
- Recording module split: encoder selection and output building move
  to their own files; obs_context shrinks from 1556 to 464 lines
- Remove unused IPC (recordings/timeline/export commands), the
  CommandHandler trait, crash marker files, and the stats plumbing
  that was never wired to the frontend
- Deduplicate the LCU reconnect logic into connect_and_listen
2026-11-13 00:06:16 +01:00
vhaudiquet 4f9f84446d feat: add custom audio sources
- Add capture_apps list of AudioSourceConfig (application, deviceOutput
  or deviceInput) to AudioSettings, serialized in the settings JSON
- Add IPC commands getAudioDevices, addAudioSource, removeAudioSource
  and updateAudioSource
- obs_context builds wasapi sources for the microphone and configured
  apps alongside the game-capture source
- Settings.vue gains an audio sources tab with device dropdowns and
  per-source volume
- getAudioDevices temporarily returns hardcoded defaults while the
  WASAPI enumeration crash is investigated; crash marker files around
  IPC and native call sites are part of that investigation
2026-11-12 23:17:26 +01:00
vhaudiquet 7468bdf5de record-daemon: bundle OBS plugin data
rtmp-services and win-capture metadata JSON that libobs loads
at startup. Without them the game-capture plugin fails to
initialize.
2026-11-12 23:17:26 +01:00
vhaudiquet 953a920a23 bump version (0.3.0 start)
record-daemon / Build, check and test (push) Successful in 2m21s
2026-06-16 22:05:22 +02:00
vhaudiquet ba4ed63f4c fmt
record-daemon / Build, check and test (push) Successful in 2m38s
2026-06-15 19:52:38 +02:00
vhaudiquet 384ccda515 tryfix: reconnect to league client
record-daemon / Build, check and test (push) Failing after 7s
2026-06-05 21:17:15 +02:00
vhaudiquet 1c1b9c4d1a tryfix: reconnect to client on connection error
record-daemon / Build, check and test (push) Failing after 10s
2026-06-04 13:47:48 +02:00
vhaudiquet 3592b86a94 fmt
record-daemon / Build, check and test (push) Failing after 13m47s
2026-06-02 20:14:17 +02:00
vhaudiquet b49ed22665 fix: tryfix record-daemon disconnecting from league client 2026-06-02 20:14:01 +02:00
vhaudiquet 598c5a2391 feat: record-daemon logs to a file 2026-05-30 10:41:40 +02:00
vhaudiquet df7cb6687e record-daemon: do not open a terminal on start
record-daemon / Build, check and test (push) Successful in 2m18s
2026-05-18 14:02:35 +02:00
vhaudiquet ab0b538162 record-daemon: fix obs bootstrapping
record-daemon / Build, check and test (push) Failing after 13m52s
2026-05-18 13:43:09 +02:00
vhaudiquet 3279948e78 fix: enable audio capture 2026-05-16 22:27:33 +02:00
vhaudiquet ff4d865c2a fix lp_change event values and display in front
record-daemon / Build, check and test (push) Successful in 3m14s
2026-05-07 00:24:02 +02:00
vhaudiquet fcfa55d0aa record raw events everywhere
record-daemon / Build, check and test (push) Waiting to run
2026-05-06 23:53:01 +02:00
vhaudiquet 3223ba74fc record-daemon: add live client events, fix video_file
record-daemon / Build, check and test (push) Successful in 2m12s
2026-03-28 11:08:19 +01:00
vhaudiquet b3a6c30ddd add video file name in json metadata
record-daemon / Build, check and test (push) Successful in 2m12s
2026-03-27 23:24:24 +01:00
vhaudiquet b64937601a record-daemon: add record raw events, subscribe lp change events
record-daemon / Build, check and test (push) Successful in 2m0s
2026-03-27 22:25:24 +01:00
vhaudiquet 8842cd9e04 record-daemon: refactor, remove api_types entirely
record-daemon / Build, check and test (push) Successful in 2m5s
2026-03-27 16:36:43 +01:00
vhaudiquet 785e5073ec record-daemon: refactor/remove pregame metadata in daemon
record-daemon / Build, check and test (push) Successful in 2m0s
2026-03-27 16:09:04 +01:00
vhaudiquet d67d52fa86 record-daemon: refactor to record raw league data 2026-03-27 13:42:12 +01:00
vhaudiquet 0871703b11 replace items record with full end-of-game stats record
record-daemon / Build, check and test (push) Successful in 2m5s
- record-daemon: remove items parsing module
- tauri-app: add items parsing from recorded end-of-game stats
2026-03-26 18:47:19 +01:00
vhaudiquet 506fc9827b record-daemon: fix summoner spells handling
record-daemon / Build, check and test (push) Successful in 2m22s
2026-03-26 14:39:23 +01:00
vhaudiquet 179678f95e record-daemon: remove data in state machine
record-daemon / Build, check and test (push) Successful in 2m11s
2026-03-26 14:00:04 +01:00
vhaudiquet b94101c4d2 record-daemon: don't propagate puuid, record it and compute at end
record-daemon / Build, check and test (push) Successful in 2m10s
2026-03-26 13:19:44 +01:00
vhaudiquet 2814d85b6b record-daemon: refactor client.rs, dropping metadata
record-daemon / Build, check and test (push) Successful in 2m17s
2026-03-26 11:03:24 +01:00
vhaudiquet c576ac2b34 record-daemon: fix build and features on windows
record-daemon / Build, check and test (push) Failing after 56s
2026-03-25 19:42:21 +01:00
vhaudiquet 7aa4bfbf64 record-daemon: refactor client.rs, introducing typed structs for api types
record-daemon / Build, check and test (push) Successful in 2m17s
2026-03-25 17:57:58 +01:00
vhaudiquet b6b145215b record-daemon: refactor client.rs 2026-03-25 16:08:39 +01:00
vhaudiquet ac4020b841 record-daemon: refactor client.rs 2026-03-25 15:37:51 +01:00
vhaudiquet f81eff8496 record-daemon: fmt, clippy
record-daemon / Build, check and test (push) Successful in 2m12s
2026-03-25 11:07:36 +01:00
vhaudiquet 12fe579aca record-daemon: end-of-game stats, summoner spells
record-daemon / Build, check and test (push) Failing after 8s
2026-03-25 10:53:42 +01:00
vhaudiquet f90e549b1e record-daemon: add game start and end metadata
record-daemon / Build, check and test (push) Successful in 2m9s
2026-03-24 18:16:53 +01:00
vhaudiquet 6ac2fe9cd3 record-daemon: refactor encoder detection logic
record-daemon / Build, check and test (push) Failing after 11m31s
2026-03-21 19:10:32 +01:00
vhaudiquet 8e885ffc64 record-daemon: obs-context refactoring, gpu detection code
record-daemon / Build, check and test (push) Failing after 48s
2026-03-21 18:54:01 +01:00
vhaudiquet 5121a46533 record-daemon: fix linux builds
record-daemon / Build, check and test (push) Failing after 55s
record-daemon / Build Windows (xwin) (push) Has been skipped
2026-03-21 13:40:10 +01:00
vhaudiquet 8c83404191 record-daemon: update dependencies 2026-03-21 00:57:18 +01:00
vhaudiquet 8143610dad record-daemon: fix failing test 2026-03-21 00:39:04 +01:00
vhaudiquet 03e36d0f1b record-daemon: refactor and cleanup 2026-03-21 00:05:46 +01:00
vhaudiquet 1166424c29 record-daemon: fix obs recording 2026-03-20 20:34:44 +01:00
vhaudiquet dbb224e118 record-daemon: fix gamephase event handling 2026-03-19 22:05:13 +01:00
vhaudiquet 7e346a33e0 record-daemon: fix event subscribe 2026-03-19 21:38:40 +01:00
vhaudiquet 2ddb953321 record-daemon: fix league websocket connection 2026-03-19 18:38:51 +01:00
vhaudiquet f062cee010 record-daemon: fix windows build 2026-03-19 18:17:31 +01:00
vhaudiquet d6c0334369 record-daemon: initial commit 2026-03-19 17:48:07 +01:00