Commit Graph
52 Commits
Author SHA1 Message Date
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 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 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 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 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
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 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 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