Frame extraction broken on ffmpeg 9: '-vsync' was removed

Author: doums85Created Sep 24, 2026Updated Sep 24, 2026

Summary

Frame extraction fails on ffmpeg 9.x because frames.py passes -vsync, which ffmpeg removed in version 9. Every /watch run that needs frames dies at the extraction step, regardless of detail mode.

Error

[watch] extracting keyframes over full 19.0s (target 19, cap 50)…
ffmpeg keyframe extraction failed: Unrecognized option 'vsync'.
Error splitting the argument list: Option not found

Environment

  • watch 0.2.0 (installed as a standalone skill in ~/.claude/skills/watch)
  • ffmpeg 9.0.2 (Homebrew, arm64)
  • yt-dlp 2026.08.19
  • macOS 26.2, Apple Silicon
  • Python 3.14

Cause

-vsync was deprecated in ffmpeg 5 in favour of -fps_mode, and removed outright in ffmpeg 9. Two call sites still use it:

  • skills/watch/scripts/frames.py:256
  • skills/watch/scripts/frames.py:615

Both pass "-vsync", "vfr".

Fix

Replacing both occurrences with "-fps_mode", "vfr" resolves it. After the change, the same command completed normally: 19 frames extracted from a 19-second clip, transcript pulled from native captions.

diff
-        "-vsync", "vfr",
+        "-fps_mode", "vfr",

-fps_mode has been available since ffmpeg 5.1, so a straight swap covers current versions. If you need to keep supporting ffmpeg 4.x, a version probe on ffmpeg -version selecting between the two flags would do it.

Reproduction

bash
python3 skills/watch/scripts/watch.py "https://www.youtube.com/watch?v=jNQXAC9IVRw" --detail efficient --no-whisper

With ffmpeg 9 installed, this fails at frame extraction. Download and caption retrieval both work; only the ffmpeg call is affected.

Unrelated note on whisper.py

While reading the code I noticed OPENAI_ENDPOINT is hardcoded to https://api.openai.com/v1/audio/transcriptions and the OpenAI branch does not honour OPENAI_BASE_URL.

Anyone who points OPENAI_API_KEY at an OpenAI-compatible gateway (LiteLLM, OpenRouter, a local router, and so on) would have that key sent to OpenAI rather than to their configured endpoint. Honouring OPENAI_BASE_URL when set, the way most OpenAI-compatible clients do, would avoid that. Happy to open this as a separate issue if you would rather track it on its own.

Source: bradautomates/claude-video