Compare commits

..

3 commits

Author SHA1 Message Date
7949903c89 fix(whisper): survive CUDA OOM with a memory-lean fallback ladder
All checks were successful
CI / lint-and-test (pull_request) Successful in 11s
Version bump / version-bump (pull_request) Successful in 6s
large-v3 in float16 (~4.5 GB) left a 6 GB card no headroom for CTranslate2
decoder spikes, so long transcriptions died partway through with
"CUDA failed with error out of memory".

- default to int8_float16 on CUDA and pin CT2_CUDA_ALLOCATOR=cub_caching
- on a CUDA OOM, drop and release the model and retry a smaller-footprint
  config (int8 + greedy decoding, then CPU int8) instead of aborting
2026-10-17 21:10:33 +01:00
1718b95261 chore(release): bump __version__ to 0.3.2 2026-10-17 21:10:33 +01:00
7a96bd8970 feat(presets): add super-relaxed pacing preset (#7)
All checks were successful
CI / lint-and-test (push) Successful in 11s
Adds a 'super-relaxed' preset (max_silence 1.25s, pad 0.25s) that keeps
more silence and adds extra breathing room around cuts compared to
'relaxed'. Updates the --preset choices, docstring, and README.

Reviewed-on: #7
Co-authored-by: pedro-bento <mail@pbento.pt>
Co-committed-by: pedro-bento <mail@pbento.pt>
2026-10-17 21:09:47 +01:00
2 changed files with 9 additions and 3 deletions

View file

@ -68,7 +68,7 @@ cut decisions) instead of opening Kdenlive; with multiple inputs the kept
segments are concatenated in sequence order into one MP4. Add `--keep-project` segments are concatenated in sequence order into one MP4. Add `--keep-project`
to also write the `.kdenlive` project. to also write the `.kdenlive` project.
Presets: `relaxed`, `balanced`, `punchy`. See all options with `uv run cadence.py --help`. Presets: `super-relaxed`, `relaxed`, `balanced`, `punchy`. See all options with `uv run cadence.py --help`.
## GPU notes (Linux / NVIDIA) ## GPU notes (Linux / NVIDIA)

View file

@ -28,7 +28,7 @@ Features:
- Generates a native .kdenlive project file with synchronized audio/video cuts. - Generates a native .kdenlive project file with synchronized audio/video cuts.
- Regenerates a native .kdenlive or MP4 output from the same cut decisions (`--render`). - Regenerates a native .kdenlive or MP4 output from the same cut decisions (`--render`).
- Generates synced YouTube .srt captions and an LLM-ready transcript (prompt + timeline) for downstream summaries. - Generates synced YouTube .srt captions and an LLM-ready transcript (prompt + timeline) for downstream summaries.
- Built-in pacing presets (relaxed, balanced, punchy) to eliminate the need for shell wrappers. - Built-in pacing presets (super-relaxed, relaxed, balanced, punchy) to eliminate the need for shell wrappers.
""" """
from __future__ import annotations from __future__ import annotations
@ -79,6 +79,12 @@ DISCOURSE_FILLERS = {
# Built-in pacing profiles to eliminate shell script wrappers # Built-in pacing profiles to eliminate shell script wrappers
PACING_PRESETS = { PACING_PRESETS = {
"super-relaxed": {
"max_silence": 1.25,
"pad": 0.25,
"min_keep": 0.10,
"jl_frames": 0,
},
"relaxed": { "relaxed": {
"max_silence": 0.85, "max_silence": 0.85,
"pad": 0.15, "pad": 0.15,
@ -2100,7 +2106,7 @@ def parse_args() -> argparse.Namespace:
) )
p.add_argument( p.add_argument(
"--preset", "--preset",
choices=["relaxed", "balanced", "punchy"], choices=["super-relaxed", "relaxed", "balanced", "punchy"],
default=None, default=None,
help="Apply built-in editing pacing settings (overrides defaults).", help="Apply built-in editing pacing settings (overrides defaults).",
) )