Skip to content

Fail closed when ffprobe duration probes exit nonzero - #135

Merged
cursor[bot] merged 3 commits into
mainfrom
cursor/ffprobe-returncode-2ccd
Sep 7, 2026
Merged

Fail closed when ffprobe duration probes exit nonzero#135
cursor[bot] merged 3 commits into
mainfrom
cursor/ffprobe-returncode-2ccd

Conversation

@jmjava

@jmjava jmjava commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary

Duration probes in compose / TTS / validate / local timestamps ran ffprobe without checking returncode, then float(stdout). A failed probe that still printed a number looked like a real duration.

_compose_image treated a missing duration as -t "" and stripped it, so a looping still was muxed without a finite -t.

Manim/simple compose still SKIPs when both probes fail (CLI / pipeline still fail if composed < mapped).

Test plan

  • Image compose raises and does not call ffmpeg when duration is unknown
  • Failed ffprobe with numeric stdout is not treated as a duration
  • ruff check src/ tests/
  • pytest tests/ — 770 passed, 1 skipped
  • docgen benchmark — meets src/docgen/benchmark_data/baseline.json (no --update-baseline)

Milestone: milestones/ffprobe-returncode.md

Open in Web Open in Cursor 

cursoragent and others added 3 commits September 7, 2026 23:53
Probes used float(stdout) without checking returncode. Image compose
stripped an empty -t and muxed a looping still without a finite duration.

Co-authored-by: jmjava <jmjava@gmail.com>
ruff, pytest (770 passed, 1 skipped), and docgen benchmark all green.

Co-authored-by: jmjava <jmjava@gmail.com>
Co-authored-by: jmjava <jmjava@gmail.com>
@jmjava
jmjava marked this pull request as ready for review September 7, 2026 23:55
@cursor
cursor Bot merged commit 02cfc02 into main Sep 7, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants