<?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: Code Master</title>
    <description>The latest articles on DEV Community by Code Master (@iamcodemaster).</description>
    <link>https://dev.to/iamcodemaster</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3905028%2Faf015b0c-7dfb-40b3-8daf-c22709da87f8.png</url>
      <title>DEV Community: Code Master</title>
      <link>https://dev.to/iamcodemaster</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iamcodemaster"/>
    <language>en</language>
    <item>
      <title>How I used FFmpeg.wasm to build a browser-based audio remover</title>
      <dc:creator>Code Master</dc:creator>
      <pubDate>Wed, 29 Apr 2026 21:46:17 +0000</pubDate>
      <link>https://dev.to/iamcodemaster/how-i-used-ffmpegwasm-to-build-a-browser-based-audio-remover-dc3</link>
      <guid>https://dev.to/iamcodemaster/how-i-used-ffmpegwasm-to-build-a-browser-based-audio-remover-dc3</guid>
      <description>&lt;p&gt;I had a recurring frustration: I needed to mute a video before sharing it. Every tool I found either uploaded the file to a server, added a watermark, or required me to create an account.&lt;/p&gt;

&lt;p&gt;I know a single FFmpeg command handles this in milliseconds. But most people are not going to open a terminal for something like this.&lt;/p&gt;

&lt;p&gt;So I built &lt;a href="https://remove-audio.com" rel="noopener noreferrer"&gt;Remove Audio&lt;/a&gt; — a free, browser-based tool that strips the audio from any video, locally on the user's device.&lt;/p&gt;

&lt;h2&gt;
  
  
  The core idea
&lt;/h2&gt;

&lt;p&gt;The whole thing runs on FFmpeg.wasm, a WebAssembly port of FFmpeg. When a user drops a video in, the browser downloads the WASM binary once and then runs FFmpeg entirely locally. Nothing leaves the device.&lt;/p&gt;

&lt;p&gt;The underlying operation is essentially:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ffmpeg &lt;span class="nt"&gt;-i&lt;/span&gt; input.mp4 &lt;span class="nt"&gt;-an&lt;/span&gt; &lt;span class="nt"&gt;-c&lt;/span&gt;:v copy output.mp4
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;-an&lt;/code&gt; drops the audio track. &lt;code&gt;-c:v copy&lt;/code&gt; tells FFmpeg to copy the video stream without re-encoding, which means zero quality loss and fast processing even on large files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why not just use a server?
&lt;/h2&gt;

&lt;p&gt;Server-side processing is simpler to build. But it has real downsides for the user:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Their file travels over the network (slow for large videos)&lt;/li&gt;
&lt;li&gt;It lives on someone else's machine during processing&lt;/li&gt;
&lt;li&gt;You need infrastructure, storage, and bandwidth costs&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;WebAssembly flips this. The compute happens on the user's machine. The only thing the server needs to serve is the WASM binary, which is cached after the first load.&lt;/p&gt;

&lt;h2&gt;
  
  
  What made it tricky
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Cross-origin isolation.&lt;/strong&gt; FFmpeg.wasm requires SharedArrayBuffer, which requires the page to be cross-origin isolated. That means setting Cross-Origin-Opener-Policy: same-origin and Cross-Origin-Embedder-Policy: require-corp response headers. This broke some third-party embeds and required careful workarounds.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Mobile Safari.&lt;/strong&gt; iOS has stricter constraints on WASM memory and threading. I had to test and tune specifically for iPhone, where a lot of people do casual video editing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Format handling.&lt;/strong&gt; Remuxing MKV or MOV files while copying streams is not always straightforward. Some container formats need extra handling even when you are just copying the video stream directly.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I shipped
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://remove-audio.com" rel="noopener noreferrer"&gt;remove-audio.com&lt;/a&gt; is free, no account required, works on Mac, Windows, iPhone, Android, and any modern browser. Supports MP4, MOV, MKV, AVI, and WEBM. Available in English, Spanish, French, German, and Dutch.&lt;/p&gt;

&lt;p&gt;If you are building something where users need silent video — content tools, training platforms, social media schedulers — this is something you can just point people to.&lt;/p&gt;

&lt;p&gt;Happy to answer questions about the FFmpeg.wasm integration or the COOP/COEP setup if anyone is curious.&lt;/p&gt;

</description>
      <category>webassembly</category>
      <category>javascript</category>
      <category>ffmpeg</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
