Skip to content

v0.3.2 — Windows ffmpeg/ffprobe integration fixes

Choose a tag to compare

@Hao0321 Hao0321 released this 22 Jun 02:39
· 83 commits to main since this release

Patch release. Two Windows integration bugs in the v0.3.1 code that the string-only self-tests (no real ffmpeg/ffprobe) didn't catch — surfaced the first time the vertical-Shorts pipeline ran end-to-end.

Fixed

  • build_one_short caption burn — the ass= filter value held a Windows drive-letter colon (D:), which libavfilter parses as an option separator (original_size), so caption burning always failed on a Windows absolute path. Now runs ffmpeg with cwd set to the output dir + a relative ass=<basename> (no colon). The old first attempt used basenames but forgot to set cwd; the fallback used the full colon path — both broke.
  • _probe_wh (M92 letterbox detection) — ffprobe -of csv=p=0:s=x emits a trailing separator + CRLF on Windows (1080x1920x\r), so split('x') returned 3 parts and raised. Now parses with re.findall(r'\d+', …) (immune to trailing separators / CRLF).
  • self-test regression guard — added the 1080x1920x\r parse case to delivery_qa's self-test.

Lesson (M97): a self-test that mocks out the external tool only exercises your string assembly, not whether the tool accepts the args. New pipelines need at least one real end-to-end run before shipping.

Full changelog: CHANGELOG.md → [0.3.2].