Frame extraction fails on ffmpeg 8+: `-vsync` was removed (Unrecognized option 'vsync')
Frame extraction is completely broken on current ffmpeg. frames.py passes -vsync, which recent ffmpeg no longer accepts, so every run that asks for frames downloads the whole video and then produces zero frames.
Version: watch 0.2.0, ffmpeg 9.0.1 (9.0.1-full_build-www.gyan.dev), Windows 11, Python 3.12.10.
Repro
python3 skills/watch/scripts/watch.py <any video URL> --detail efficientOutput (the download completes normally, then):
[watch] extracting keyframes over full 2177.6s (target 50, cap 50)…
ffmpeg keyframe extraction failed: Unrecognized option 'vsync'.
Error splitting the argument list: Option not foundResult: frames/ is empty, exit code 1, and a ~225 MB download has already been spent.
Cause
-vsync was deprecated in favor of -fps_mode in ffmpeg 5.1 and has since been removed outright — it is gone in 9.0.1. Two call sites still use it:
frames.py:256frames.py:615
"-vsync", "vfr",Fix
-fps_mode has been available since ffmpeg 5.1, so swapping is safe for anything reasonably current:
- "-vsync", "vfr",
+ "-fps_mode", "vfr",Verified locally: with that change the same command produces the expected 50 frames at 512x288 and exits 0.
If you need to keep working on ffmpeg < 5.1, probing once and picking the flag would do it:
_FPS_FLAG = "-fps_mode" if _ffmpeg_supports("fps_mode") else "-vsync"Why this is easy to miss
--detail transcript never touches this path, so captions-only runs look completely healthy. Anyone testing on an older ffmpeg build won't see it either. But on a current ffmpeg, every one of efficient / balanced / token-burner fails the same way — the entire frame feature, which is the point of the plugin, is unusable.
The failure is also expensive and easy to misread: the video downloads successfully first, so the user waits through a large download before it dies, and the error text points at ffmpeg rather than at a version mismatch.
Unrelated to this one, I filed #240 earlier for three other things (non-English captions, cp949 crash, HTML entities). Happy to roll a PR covering this fix plus those if you'd like them together.
Source: bradautomates/claude-video