While building an offline FFmpeg desktop studio this week on FFmpeg 9.1 (gyan.dev full build), I hit a silent breaking change and discovered a killer new built-in feature. Here are the exact working commands you can copy-paste today.
1. Breaking Change in FFmpeg 9.1: -filter_complex_script is Gone
If your scripts pass long filtergraphs via -filter_complex_script, FFmpeg 9.x drops support for it and fails immediately with:
Unrecognized option 'filter_complex_script'.
Error splitting the argument list: Option not found
Before (FFmpeg <= 8.x)
ffmpeg -i input.mp4 -filter_complex_script graph.txt -map "[outv]" -map "[outa]" output.mp4
After (FFmpeg 9.x)
Use the -/ file-argument prefix directly with -filter_complex (or keep the graph inline under ~16k characters):
ffmpeg -i input.mp4 -/filter_complex graph.txt -map "[outv]" -map "[outa]" output.mp4
(Quick sanity check: if you build cross-version tools, probe ffmpeg -version or ffmpeg -h full before deciding between -filter_complex_script and -/filter_complex.)
2. Exact-MB 2-Pass Compression for Discord (9.5 MB) / WhatsApp (15 MB) / Gmail (24 MB)
Single-pass -crf gives unpredictable file sizes. When you need a clip to land reliably under a strict upload cap (like Discord's 10 MB limit, WhatsApp's 16 MB limit, or Gmail's 25 MB limit), calculate the target video bitrate from the exact duration:
video_kbps = (target_MB * 8192 / duration_sec) - audio_kbps
For example, a 60-second video targeting 9.5 MB with 96 kbps AAC audio:
video_kbps = (9.5 * 8192 / 60) - 96 = 1201 kbps
Run 2-pass libx264 so the encoder allocates bits where motion actually happens:
# Pass 1 (Windows uses NUL; macOS/Linux uses /dev/null)
ffmpeg -y -i input.mp4 -c:v libx264 -b:v 1201k -pass 1 -an -f null /dev/null
# Pass 2
ffmpeg -y -i input.mp4 -c:v libx264 -b:v 1201k -pass 2 -c:a aac -b:a 96k -movflags +faststart output_9mb.mp4
(On Windows cmd/PowerShell, replace /dev/null with NUL.)
3. Broadcast -16 LUFS Audio Mastering Without Re-Encoding Video
Most screen recordings and talking-head clips have low-frequency rumble, background hiss, and uneven loudness. You can clean and normalize the audio to broadcast -16 LUFS (EBU R128) while leaving the video stream untouched via -c:v copy:
# Pass 1: measure true integrated loudness, LRA, and true peak
ffmpeg -i input.mp4 -af "highpass=f=75,afftdn=nf=-25,loudnorm=I=-16:TP=-1.5:LRA=11:print_format=json" -f null -
Plug the measured input_i, input_tp, input_lra, input_thresh, and target_offset values from the JSON output into Pass 2:
# Pass 2: linear loudness normalization + zero video re-encode
ffmpeg -y -i input.mp4 -c:v copy -af "highpass=f=75,afftdn=nf=-25,loudnorm=I=-16:TP=-1.5:LRA=11:measured_I=-23.4:measured_TP=-3.2:measured_LRA=7.1:measured_thresh=-34.0:offset=-0.4:linear=true" -c:a aac -b:a 192k mastered.mp4
Because -c:v copy is used, a 10-minute 1080p video finishes in seconds with zero visual generation loss.
4. Native Offline whisper.cpp Auto-Captions Inside FFmpeg 9.1 (Zero Python/PyTorch Bloat)
Modern FFmpeg 9.1 builds compiled with --enable-whisper (including gyan.dev full builds) include a native whisper audio filter powered by whisper.cpp. No Python virtualenvs, no PyTorch, no cloud transcription bills.
Step 1: Generate subs.srt completely offline
ffmpeg -y -i input.mp4 -vn -af "whisper=model=ggml-base.bin:format=srt:destination=subs.srt" -f null -
Step 2: Burn styled captions into your video
ffmpeg -y -i input.mp4 -vf "subtitles=subs.srt:force_style='FontName=Arial,FontSize=20,Bold=1,Outline=2'" -c:v libx264 -crf 18 -c:a copy captioned.mp4
(If you're on Windows and pass an absolute path to subtitles= or model=, remember to escape colons and backslashes for FFmpeg's filter parser.)
5. Free Interactive Calculator + Full Offline Studio (50% Off Launch Special)
- Free Interactive FFmpeg 9.x Command & Exact-MB Bitrate Calculator (runs 100% in your browser, no signup): https://clipforge-local.netlify.app/
- If you'd rather skip writing filtergraphs altogether, I wrapped all 6 workflows (Auto Jump-Cut, Exact-MB 2-Pass Compressor, EBU R128 Audio Master, 9:16 Vertical Reframer, 2-Pass Palette GIFs, and Native Whisper.cpp Captions) into a 100% offline local Web UI + CLI (ClipForge Local Pro v1.1, pure Python stdlib + local FFmpeg, zero cloud uploads).
- Launch special for the first 25 buyers is 50% off (€9.50 instead of €19 one-time, auto-applied via
LAUNCH50): https://buy.polar.sh/polar_cl_lTRUfqBLwRKhdh7pulIprjwPMg1Y8fOzp7Ntj154iNu
Top comments (0)