VS Code extension uses WebAssembly FFmpeg to fix silent video playback
A developer built a VS Code extension called Modern Video Player to address the long-standing issue of videos playing without audio inside the editor. The problem stems from VS Code's Chromium-based Electron foundation, which omits the AAC audio decoder due to patent-licensing restrictions, causing most video extensions to play files muted. The extension bundles FFmpeg compiled to WebAssembly, extracting audio into an MP3 file that Chromium can decode, with video and audio tracks then synced in the webview — requiring no native binaries or local server. It also supports a wide range of formats including MKV, AVI, HEVC, and WebM by remuxing or transcoding them via FFmpeg on the fly. Additional features include subtitle auto-loading, frame capture, audio boost up to 200%, playback speed control, and Picture-in-Picture mode.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in