feat(render): support multi-input concatenated --render #6

Merged
pedro-bento merged 4 commits from feat/multi-render-concat into master 2026-10-06 22:08:10 +01:00
Owner

Render the kept segments of multiple inputs into one MP4 by normalizing
each branch (yuv420p video, stereo fltp 48 kHz audio) and joining them
with ffmpeg's concat filter in input order, matching the order used by
the generated .kdenlive project. A single input keeps the existing
single--i graph and output unchanged.

  • add MultiRenderPlan, build_multi_render_graph, build_multi_render_command
  • extract shared _input_render_fragments for single/multi builders
  • render_video now accepts one track or a sequence of tracks
  • default multi-input render output is _concat.mp4
  • drop the single-input --render guard; update README and --render help
Render the kept segments of multiple inputs into one MP4 by normalizing each branch (yuv420p video, stereo fltp 48 kHz audio) and joining them with ffmpeg's concat filter in input order, matching the order used by the generated .kdenlive project. A single input keeps the existing single-`-i` graph and output unchanged. - add MultiRenderPlan, build_multi_render_graph, build_multi_render_command - extract shared _input_render_fragments for single/multi builders - render_video now accepts one track or a sequence of tracks - default multi-input render output is <first-stem>_concat.mp4 - drop the single-input --render guard; update README and --render help
pedro-bento added 1 commit 2026-10-06 20:44:05 +01:00
feat(render): support multi-input concatenated --render
Some checks failed
CI / lint-and-test (push) Successful in 13s
CI / lint-and-test (pull_request) Successful in 12s
Version bump / version-bump (pull_request) Failing after 6s
6e75312c97
Render the kept segments of multiple inputs into one MP4 by normalizing
each branch (yuv420p video, stereo fltp 48 kHz audio) and joining them
with ffmpeg's concat filter in input order, matching the order used by
the generated .kdenlive project. A single input keeps the existing
single-`-i` graph and output unchanged.

- add MultiRenderPlan, build_multi_render_graph, build_multi_render_command
- extract shared _input_render_fragments for single/multi builders
- render_video now accepts one track or a sequence of tracks
- default multi-input render output is <first-stem>_concat.mp4
- drop the single-input --render guard; update README and --render help
pedro-bento added 2 commits 2026-10-06 20:51:21 +01:00
On a 6 GB GPU the Wav2Vec2 aligner kept in `align_cache` across inputs was
still resident when the next input loaded Whisper large-v3, so CUDA init
failed with out-of-memory and silently fell back to CPU (catastrophic for
long recordings).

`load_or_transcribe` now offloads cached aligner weights to CPU (freeing
their VRAM) right before the ASR model loads; `_align_with_whisperx` moves
them back to the align device before aligning, since whisperx.align never
moves the model itself. Entries that cannot be moved are evicted so they
reload from scratch.
ci: avoid running the workflow twice on pull requests
Some checks failed
CI / lint-and-test (pull_request) Successful in 11s
Version bump / version-bump (pull_request) Failing after 6s
5dda644463
Restrict the push trigger to master so a branch with an open pull request
does not run lint-and-test for both the push and pull_request events.
pedro-bento added 1 commit 2026-10-06 20:56:50 +01:00
chore(release): 0.3.0
All checks were successful
CI / lint-and-test (pull_request) Successful in 12s
Version bump / version-bump (pull_request) Successful in 7s
21c1a43976
pedro-bento merged commit 5032f48eee into master 2026-10-06 22:08:10 +01:00
pedro-bento deleted branch feat/multi-render-concat 2026-10-06 22:08:11 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: pedro-bento/cadence#6
No description provided.