FFmpeg 9.0.1 Rejected -vsync With Exit Code 8: -fps_mode Ran, and 15 of 47 Extracted Frames Were Copies
Did an FFmpeg script stop with exit code 8 on a flag that older tutorials still use? Ours did. On November 14, 2026, a render job for one of our AI-assisted shorts finished its movie file and then failed one step later, while pulling still frames for a contact sheet. The command used -vsync. FFmpeg 9.0.1 answered Unrecognized option 'vsync' and wrote nothing. In a separate test, the same kind of frame extraction ran with -fps_mode passthrough. The original job has not been rerun yet.
We then tested nine flag variants on two short clips. All four -vsync spellings failed with exit code 8 and zero files. All four -fps_mode values ran. On a variable-frame-rate clip with 32 real frames, the default setting wrote 47 PNG files, and 15 of them were byte-identical copies of a neighbor. -fps_mode passthrough wrote exactly 32. The numbers are from one machine and one build, listed below.
What we ran
- Machine: Apple M5 Pro, macOS 26.6.2.
- FFmpeg:
ffmpeg version 9.0.1, built with Apple clang 21.0.0. - Clip A, constant frame rate: a 2-second synthetic test pattern (
testsrc2), 24 fps, 320x180, H.264.ffprobe -count_framesreads 48 frames. - Clip B, variable frame rate: clip A with every third frame removed and the original timestamps kept.
ffprobereads 32 frames over 1.958 seconds, with a nominal rate of 24/1 and an average rate of 768/47 (about 16.3 fps). - Task: extract every frame to PNG with
ffmpeg -i clip.mp4 [flag] f_%03d.png. - For each run we recorded the exit code, the first error lines, the number of PNG files, and how many files were unique by MD5 hash.
- We ran the full set twice. Exit codes and counts were identical both times.
Result 1: every -vsync spelling failed
| Flag | Exit code | PNG files (clip A / clip B) | Message |
|---|---|---|---|
-vsync 0 | 8 | 0 / 0 | Unrecognized option 'vsync'. |
-vsync passthrough | 8 | 0 / 0 | Unrecognized option 'vsync'. |
-vsync vfr | 8 | 0 / 0 | Unrecognized option 'vsync'. |
-vsync cfr | 8 | 0 / 0 | Unrecognized option 'vsync'. |
The second error line was Error splitting the argument list: Option not found. FFmpeg stops while reading the command line, before it opens the input. That is why nothing is written at all, not even a partial set of frames. In a longer script, the earlier steps can succeed and leave a finished video next to a failed job, which is what happened to us.
Result 2: -fps_mode ran, but the modes do not write the same files
| Flag | Clip A (48 real frames) | Clip B (32 real frames) | Duplicate PNGs on clip B |
|---|---|---|---|
| no flag | 48 files | 47 files | 15 |
-fps_mode auto | 48 files | 47 files | 15 |
-fps_mode cfr | 48 files | 47 files | 15 |
-fps_mode vfr | 48 files | 32 files | 0 |
-fps_mode passthrough | 48 files | 32 files | 0 |
On the constant-rate clip, the flag made no difference: 48 unique files every time. On the variable-rate clip, the default behaved like cfr. It filled the gaps to a steady 24 fps grid and wrote 47 files, of which only 32 were unique images. If you count PNG files to check a render, or build a contact sheet from every Nth file, those 15 copies shift your sample without any warning. Every run in that table ended with exit code 0.
Which replacement to use
| Old flag | Replacement we tested | Use it when |
|---|---|---|
-vsync 0 or -vsync passthrough | -fps_mode passthrough | You want one file per decoded frame, for frame counts, hashes, or review sheets. |
-vsync vfr | -fps_mode vfr | You want real frames only, and frames with the same timestamp dropped. |
-vsync cfr | -fps_mode cfr | You need a steady frame grid and accept repeated or dropped frames. |
The mapping in the first column is our reading of the mode names. We could not run the old flag on this build to compare outputs side by side, so treat the mapping as untested against an older FFmpeg.
A five-step check for your own scripts
- Search your scripts for the old flag:
grep -rn -- "-vsync" . - Ask your build whether it knows the new one:
ffmpeg -hide_banner -h full | grep fps_mode. On our build this prints one line for-fps_mode. The same check for the old flag,ffmpeg -hide_banner -h full | grep -- "-vsync", prints nothing. - Count the real frames in the source:
ffprobe -v error -select_streams v:0 -count_frames -show_entries stream=nb_read_frames clip.mp4 - Extract with
-fps_mode passthroughand count the files:ls f_*.png | wc -l. The two numbers should match. - Check the exit code of every FFmpeg step, not only the last one. Our job had a valid movie file and a failed status at the same time.
In our main tooling folder, the search in step 1 found the old flag in one script, the one that failed. Seven other scripts already used -fps_mode.
What this test shows and what it does not
| This test shows | This test does not show |
|---|---|
FFmpeg 9.0.1 on our Mac refuses -vsync and exits with code 8. | Which FFmpeg release removed the option. We did not test older builds. |
| The default frame mode duplicated frames on one variable-rate clip written to PNG. | Behavior for other outputs such as MP4 or MKV. The documentation says auto depends on the muxer. |
passthrough and vfr gave the same 32 files on this clip. | That they always match. Clips with repeated timestamps can differ. |
Limits
- One machine, one FFmpeg build, two synthetic 2-second clips. Real camera or screen-recording files may have different timestamp patterns.
- Duplicates were detected by identical MD5 hashes of the PNG files, which only catches exact copies.
- We did not benchmark speed. One full set of 18 runs took under one second on clips this small.
- The failed render job that started this test is described from its logs. The video from that job is not published in this post.
Related tests on this site
- FFmpeg reports 0% freeze: does your short actually move? covers another case where an FFmpeg number looked fine and the picture was not.
- A 30-second audio file looked 22.13 seconds long is the audio version of checking a count instead of trusting the export.
Sources checked
On November 14, 2026, we read the official ffmpeg documentation page. It describes -fps_mode with the values passthrough, cfr, vfr and auto, says auto chooses between cfr and vfr depending on muxer capabilities and is the default, and the page text we fetched contains no mention of vsync. All exit codes and file counts above come from our own local runs.
Prepared with AI assistance from our own local test logs. The test clips are synthetic FFmpeg test patterns. No sponsor, and no affiliate links in this post.
Comments
Post a Comment