<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: JUAN MANUEL REVILLA MAILLO</title>
    <description>The latest articles on DEV Community by JUAN MANUEL REVILLA MAILLO (@juan_manuelrevillamaill).</description>
    <link>https://dev.to/juan_manuelrevillamaill</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4261417%2F1a5f3ffc-ac36-4ed4-9d8f-a87e33e516f9.png</url>
      <title>DEV Community: JUAN MANUEL REVILLA MAILLO</title>
      <link>https://dev.to/juan_manuelrevillamaill</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/juan_manuelrevillamaill"/>
    <language>en</language>
    <item>
      <title>FFmpeg 9.1 Shipped Native whisper.cpp Captions &amp; Removed -filter_complex_script: Working Recipes + Free Exact-MB Calculator</title>
      <dc:creator>JUAN MANUEL REVILLA MAILLO</dc:creator>
      <pubDate>Mon, 23 Nov 2026 21:34:22 +0000</pubDate>
      <link>https://dev.to/juan_manuelrevillamaill/ffmpeg-91-shipped-native-whispercpp-captions-removed-filtercomplexscript-working-recipes--112g</link>
      <guid>https://dev.to/juan_manuelrevillamaill/ffmpeg-91-shipped-native-whispercpp-captions-removed-filtercomplexscript-working-recipes--112g</guid>
      <description>&lt;p&gt;While building an offline FFmpeg desktop studio this week on &lt;strong&gt;FFmpeg 9.1&lt;/strong&gt; (&lt;code&gt;gyan.dev&lt;/code&gt; 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.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Breaking Change in FFmpeg 9.1: &lt;code&gt;-filter_complex_script&lt;/code&gt; is Gone
&lt;/h2&gt;

&lt;p&gt;If your scripts pass long filtergraphs via &lt;code&gt;-filter_complex_script&lt;/code&gt;, FFmpeg 9.x drops support for it and fails immediately with:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Unrecognized option 'filter_complex_script'.
Error splitting the argument list: Option not found
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Before (FFmpeg &amp;lt;= 8.x)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -i input.mp4 -filter_complex_script graph.txt -map &lt;span class="s2"&gt;"[outv]"&lt;/span&gt; -map &lt;span class="s2"&gt;"[outa]"&lt;/span&gt; output.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  After (FFmpeg 9.x)
&lt;/h3&gt;

&lt;p&gt;Use the &lt;code&gt;-/&lt;/code&gt; file-argument prefix directly with &lt;code&gt;-filter_complex&lt;/code&gt; (or keep the graph inline under ~16k characters):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -i input.mp4 -/filter_complex graph.txt -map &lt;span class="s2"&gt;"[outv]"&lt;/span&gt; -map &lt;span class="s2"&gt;"[outa]"&lt;/span&gt; output.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;(Quick sanity check: if you build cross-version tools, probe &lt;code&gt;ffmpeg -version&lt;/code&gt; or &lt;code&gt;ffmpeg -h full&lt;/code&gt; before deciding between &lt;code&gt;-filter_complex_script&lt;/code&gt; and &lt;code&gt;-/filter_complex&lt;/code&gt;.)&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Exact-MB 2-Pass Compression for Discord (9.5 MB) / WhatsApp (15 MB) / Gmail (24 MB)
&lt;/h2&gt;

&lt;p&gt;Single-pass &lt;code&gt;-crf&lt;/code&gt; 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:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;video_kbps = (target_MB * 8192 / duration_sec) - audio_kbps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;For example, a &lt;strong&gt;60-second&lt;/strong&gt; video targeting &lt;strong&gt;9.5 MB&lt;/strong&gt; with &lt;strong&gt;96 kbps&lt;/strong&gt; AAC audio:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;video_kbps = (9.5 * 8192 / 60) - 96 = 1201 kbps
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Run 2-pass &lt;code&gt;libx264&lt;/code&gt; so the encoder allocates bits where motion actually happens:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Pass 1 (Windows uses NUL; macOS/Linux uses /dev/null)&lt;/span&gt;
ffmpeg -y -i input.mp4 -c:v libx264 -b:v 1201k -pass 1 -an -f null /dev/null

&lt;span class="c"&gt;# Pass 2&lt;/span&gt;
ffmpeg -y -i input.mp4 -c:v libx264 -b:v 1201k -pass 2 -c:a aac -b:a 96k -movflags +faststart output_9mb.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;(On Windows cmd/PowerShell, replace &lt;code&gt;/dev/null&lt;/code&gt; with &lt;code&gt;NUL&lt;/code&gt;.)&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Broadcast -16 LUFS Audio Mastering Without Re-Encoding Video
&lt;/h2&gt;

&lt;p&gt;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 &lt;strong&gt;-16 LUFS&lt;/strong&gt; (EBU R128) while leaving the video stream untouched via &lt;code&gt;-c:v copy&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Pass 1: measure true integrated loudness, LRA, and true peak&lt;/span&gt;
ffmpeg -i input.mp4 -af &lt;span class="s2"&gt;"highpass=f=75,afftdn=nf=-25,loudnorm=I=-16:TP=-1.5:LRA=11:print_format=json"&lt;/span&gt; -f null -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Plug the measured &lt;code&gt;input_i&lt;/code&gt;, &lt;code&gt;input_tp&lt;/code&gt;, &lt;code&gt;input_lra&lt;/code&gt;, &lt;code&gt;input_thresh&lt;/code&gt;, and &lt;code&gt;target_offset&lt;/code&gt; values from the JSON output into Pass 2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="c"&gt;# Pass 2: linear loudness normalization + zero video re-encode&lt;/span&gt;
ffmpeg -y -i input.mp4 -c:v copy -af &lt;span class="s2"&gt;"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"&lt;/span&gt; -c:a aac -b:a 192k mastered.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Because &lt;code&gt;-c:v copy&lt;/code&gt; is used, a 10-minute 1080p video finishes in seconds with zero visual generation loss.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Native Offline &lt;code&gt;whisper.cpp&lt;/code&gt; Auto-Captions Inside FFmpeg 9.1 (Zero Python/PyTorch Bloat)
&lt;/h2&gt;

&lt;p&gt;Modern FFmpeg 9.1 builds compiled with &lt;code&gt;--enable-whisper&lt;/code&gt; (including &lt;code&gt;gyan.dev&lt;/code&gt; full builds) include a native &lt;code&gt;whisper&lt;/code&gt; audio filter powered by &lt;code&gt;whisper.cpp&lt;/code&gt;. No Python virtualenvs, no PyTorch, no cloud transcription bills.&lt;/p&gt;

&lt;h3&gt;
  
  
  Step 1: Generate &lt;code&gt;subs.srt&lt;/code&gt; completely offline
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -y -i input.mp4 -vn -af &lt;span class="s2"&gt;"whisper=model=ggml-base.bin:format=srt:destination=subs.srt"&lt;/span&gt; -f null -
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Step 2: Burn styled captions into your video
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg -y -i input.mp4 -vf &lt;span class="s2"&gt;"subtitles=subs.srt:force_style='FontName=Arial,FontSize=20,Bold=1,Outline=2'"&lt;/span&gt; -c:v libx264 -crf 18 -c:a copy captioned.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;(If you're on Windows and pass an absolute path to &lt;code&gt;subtitles=&lt;/code&gt; or &lt;code&gt;model=&lt;/code&gt;, remember to escape colons and backslashes for FFmpeg's filter parser.)&lt;/em&gt;&lt;/p&gt;




&lt;h2&gt;
  
  
  5. Free Interactive Calculator + Full Offline Studio (50% Off Launch Special)
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Free Interactive FFmpeg 9.x Command &amp;amp; Exact-MB Bitrate Calculator&lt;/strong&gt; (runs 100% in your browser, no signup): &lt;a href="https://clipforge-local.netlify.app/" rel="noopener noreferrer"&gt;https://clipforge-local.netlify.app/&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;If you'd rather skip writing filtergraphs altogether, I wrapped all 6 workflows (&lt;strong&gt;Auto Jump-Cut&lt;/strong&gt;, &lt;strong&gt;Exact-MB 2-Pass Compressor&lt;/strong&gt;, &lt;strong&gt;EBU R128 Audio Master&lt;/strong&gt;, &lt;strong&gt;9:16 Vertical Reframer&lt;/strong&gt;, &lt;strong&gt;2-Pass Palette GIFs&lt;/strong&gt;, and &lt;strong&gt;Native Whisper.cpp Captions&lt;/strong&gt;) into a 100% offline local Web UI + CLI (&lt;strong&gt;ClipForge Local Pro v1.1&lt;/strong&gt;, pure Python stdlib + local FFmpeg, zero cloud uploads).&lt;/li&gt;
&lt;li&gt;Launch special for the first 25 buyers is &lt;strong&gt;50% off (€9.50 instead of €19 one-time, auto-applied via &lt;code&gt;LAUNCH50&lt;/code&gt;)&lt;/strong&gt;: &lt;a href="https://buy.polar.sh/polar_cl_lTRUfqBLwRKhdh7pulIprjwPMg1Y8fOzp7Ntj154iNu" rel="noopener noreferrer"&gt;https://buy.polar.sh/polar_cl_lTRUfqBLwRKhdh7pulIprjwPMg1Y8fOzp7Ntj154iNu&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>ffmpeg</category>
      <category>video</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
  </channel>
</rss>
