FFmpeg Flags That Do Nothing: Measured Reference
30 November 2026

FFmpeg Flags That Do Nothing: Measured Reference

The ffmpeg flags in this reference all returned exit code 0. Not one of them did what it promised. FFmpeg accepts options that can’t apply to a stream, prints nothing at the default log level, and finishes clean, so a pipeline that checks only the exit code ships broken files with a green tick.

These seven cases were measured on FFmpeg 7.1.5 against two fixtures you can rebuild in seconds. Each entry gives the command, the field that was supposed to change, the value it actually came back with, and the probe that catches it.

Build the two fixtures

ffmpeg flag reference card showing four flags that leave the output unchanged
Four of the seven ffmpeg flags, with the field each one fails to change
ffmpeg -f lavfi -i "testsrc2=size=640x360:rate=25:duration=3" -f lavfi -i "sine=frequency=440:duration=3:sample_rate=48000" -c:v libx264 -preset ultrafast -c:a aac -ar 48000 -shortest in48.mp4

ffmpeg -f lavfi -i testsrc2=size=320x180:duration=1 -frames:v 1 still.jpg

One 48 kHz clip at 25 fps and 640×360, plus one full-range JPEG. Every test below runs on these two files.

FFmpeg flag 1: -ar next to -c copy

The command:

ffmpeg -i in48.mp4 -c copy -ar 44100 out.mp4

What you expect: the audio resampled to 44.1 kHz while the streams are copied.

What happens: the sample rate stays 48,000 Hz and the audio packets are byte-identical. The MD5 of the copied audio stream matched the source on both files (16a524e84d0cf7657aa93b28c9a02104).

The probe:

ffprobe -v error -select_streams a:0 -show_entries stream=sample_rate -of csv=p=0 out.mp4

Why: -c copy passes packets through untouched, and -ar is a property of an encoder. There’s no encoder in that stream, so the flag has nothing to act on. The same command without -c copy lands at 44,100 Hz.

FFmpeg flag 2: -color_primaries and -color_trc

The command:

ffmpeg -i in48.mp4 -c:v libx264 -color_primaries bt709 -color_trc bt709 -colorspace bt709 out.mp4

What you expect: three colour tags written to the output.

What happens: only color_space appears. color_primaries and color_transfer are absent, not wrong, absent.

The probe:

ffprobe -v error -select_streams v:0 -show_entries stream=color_primaries,color_transfer,color_space -of json out.mp4

Why: libx264 ignores those two output options. Write them where the encoder reads them:

ffmpeg -i in48.mp4 -c:v libx264 -x264-params colorprim=bt709:transfer=bt709:colormatrix=bt709 out.mp4

Then count the tags. Three fields back means three fields written. One means the command only half worked.

FFmpeg flag 3: -pix_fmt as a colour-range control

The command:

ffmpeg -i still.jpg -pix_fmt yuv420p out.mp4

What you expect: a 4:2:0 stream with limited range.

What happens: the output probes as yuvj420p with color_range still pc. The j in the pixel format is the full-range marker, so the chroma layout changed and the range didn’t.

The probe:

ffprobe -v error -select_streams v:0 -show_entries stream=pix_fmt,color_range -of json out.mp4

Why: a JPEG carries full-range samples. Converting the pixel format doesn’t rescale them. If the range has to change, say so in the filter:

ffmpeg -i still.jpg -vf scale=out_range=tv -pix_fmt yuv420p out.mp4

FFmpeg flag 4: +faststart on a fragmented MP4

The commands:

ffmpeg -i in48.mp4 -c copy -movflags +frag_keyframe+empty_moov frag.mp4
ffmpeg -i in48.mp4 -c copy -movflags +frag_keyframe+empty_moov+faststart frag_fs.mp4

What you expect: the second file has its index at the front.

What happens: both files hash to cf419b523ff16b26326398f2906cddb5. Byte for byte the same output. Fragmented output already writes its index up front, so faststart has nothing to move.

The probe:

md5sum frag.mp4 frag_fs.mp4

Why it matters: nothing is broken, but a build that branches on whether faststart applied gets a yes and an identical file. The flag is decorative on this path. See the moov atom guide for the non-fragmented case where the flag does real work.

FFmpeg flag 5: -r next to -c copy

The command:

ffmpeg -i in48.mp4 -c copy -r 30 out.mp4

What you expect: a 30 fps output.

What happens: r_frame_rate and avg_frame_rate both stay at 25/1. The container isn’t asked to invent frames it doesn’t have.

The probe:

ffprobe -v error -select_streams v:0 -show_entries stream=r_frame_rate,avg_frame_rate -of csv=p=0 out.mp4

Why: a copy moves existing frames. Changing the rate means generating or dropping frames, which is an encoder’s job. If the rate must change, drop the copy. The keyframe interval guide covers the rate-change case with real encodes.

FFmpeg flag 6: -s next to -c copy

The command:

ffmpeg -i in48.mp4 -c copy -s 1280x720 out.mp4

What you expect: a 1280×720 output.

What happens: the output stays 640×360. A frame can’t be resized without being decoded and re-encoded.

The probe:

ffprobe -v error -select_streams v:0 -show_entries stream=width,height -of csv=p=0 out.mp4

Why: the same rule as -r. The copy path never touches pixel data.

FFmpeg flag 7: -b:v next to -c:v copy

The command:

ffmpeg -i in48.mp4 -c copy -b:v 1M out.mp4

What you expect: a one-megabit video stream.

What happens: the stream bit rate stays 1,762,021 bits per second. A bitrate is an encoder target; a copy has no encoder to target.

The probe:

ffprobe -v error -select_streams v:0 -show_entries stream=bit_rate -of csv=p=0 out.mp4

The pattern behind all seven

Four of these are the same defect in different clothes: a copy-mode stream can’t be resized, retimed, resampled or re-rated, because all four operations require decoding and re-encoding. FFmpeg accepts the flag, finds nothing to apply it to, and exits 0. The two colour cases are different: the option is valid and an encoder exists, but the encoder ignores that particular output flag. The faststart case is a no-op because another muxer flag already did the work.

That gives three questions to ask before trusting any ffmpeg flag:

  1. Does the operation require decoding? If yes, -c copy can’t do it.
  2. Does the encoder actually read this flag? If unsure, probe the output field.
  3. Has another flag already performed the same job? If yes, compare hashes instead of assuming.

One probe per flag, every time

The habit is four lines and it catches every case above:

ffprobe -v error -select_streams a:0 -show_entries stream=sample_rate -of csv=p=0 out.mp4
ffprobe -v error -select_streams v:0 -show_entries stream=color_primaries,color_transfer,color_space -of json out.mp4
ffprobe -v error -select_streams v:0 -show_entries stream=pix_fmt,color_range -of json out.mp4
md5sum out.mp4 out_without_flag.mp4

If the value didn’t change, the flag didn’t work, whatever the exit code said.

Testing a new ffmpeg flag before you trust it

When you meet an ffmpeg flag you haven’t used before, the order that works is: run it on a fixture, probe the one field it claims to change, compare that field with the input, and only then read the exit code. If the field moved, the ffmpeg flag did its job. If it didn’t move, the command succeeded at doing something else, and that something is usually a copy.

That’s why a checklist beats memory here. The same ffmpeg flag can behave differently depending on whether an encoder is present in the stream, which is the single most common reason a flag looks broken when the command is fine.

Summary table

Flag Copy mode Measured result Probe field
-ar 44100 yes stays 48,000 Hz, packets identical sample_rate
-color_primaries / -color_trc no only color_space written color_primaries,color_transfer
-pix_fmt yuv420p no yuvj420p, range still pc pix_fmt,color_range
+faststart yes byte-identical to fragmented output md5sum
-r 30 yes stays 25/1 r_frame_rate
-s 1280x720 yes stays 640×360 width,height
-b:v 1M yes stays 1,762,021 bps bit_rate

If you want the same probes inside working recipes rather than in isolation, the everyday FFmpeg commands guide prints them next to each command, and the sample rate guide covers the resampling case in full. The official option list is at ffmpeg.org, though it documents intent rather than what the output file ends up containing.