Open files in VS Code and Cursor / Media

Why VS Code plays MP4 with no sound, and how to fix it

VS Code's built-in Chromium ships with the H.264 video decoder but without an AAC audio decoder, and most MP4 and MOV files use AAC. So the picture plays and the sound is silent. MP3, FLAC and WAV sound do play. The free Video Preview with Sound extension carries its own AAC decoder, so MP4 and MOV files play with sound on Windows, Linux and macOS with nothing else to install.

Install in VS CodeMarketplace pageOpen VSX (Cursor, Windsurf, VSCodium)

Free, MIT license. Extension ID zovo.video-preview-with-sound, version 0.2.5. Needs VS Code 1.90.0 or newer.

An H.264 and AAC MP4 paused in Video Preview with Sound, with the sound chip, A-B loop and the metadata panel listing H.264 1280 x 720 at 30 fps and AAC 48000 Hz stereo
An H.264 and AAC MP4 paused in Video Preview with Sound, with the sound chip, A-B loop and the metadata panel listing H.264 1280 x 720 at 30 fps and AAC 48000 Hz stereo.

Steps in VS Code

  1. Install Video Preview with Sound from the Marketplace, or press Ctrl+P (Cmd+P on macOS) and run ext install zovo.video-preview-with-sound.
  2. Click the video in the Explorer and press Space.
  3. If VS Code asks which editor to use, pick "Video Preview with Sound".
  4. The video starts muted while the sound is decoded. The chip changes to "Sound: on" when it is ready.
  5. For MKV, WebM, AC-3 or DTS sound, install ffmpeg (winget install ffmpeg, sudo apt install ffmpeg or brew install ffmpeg).

Steps in Cursor, Windsurf or VSCodium

  1. Open the Extensions view with Ctrl+Shift+X (Cmd+Shift+X on macOS).
  2. Search for zovo.video-preview-with-sound and click Install. Cursor, Windsurf and VSCodium install from Open VSX, where it is published as zovo/video-preview-with-sound.
  3. If your editor has no gallery, download the .vsix from the Open VSX page and run "Extensions: Install from VSIX...".
  4. Then use it the same way as in VS Code.

What Video Preview with Sound handles

What it does not do

Other options

Install counts and Open VSX status were checked on 8 November 2026. Descriptions in quotes are the extensions' own.

Questions

Why does VS Code play the video but not the sound?

VS Code is built on Electron, and its Chromium build includes H.264 but not AAC. We tested this on VS Code 1.142: the audio element reports 0 decoded bytes for AAC.

Will MKV files play?

With ffmpeg installed, yes. The extension copies the video into MP4 without re-encoding and decodes the sound to FLAC.

Does the same fix work in Cursor?

Cursor is built on VS Code and installs the extension from Open VSX as zovo/video-preview-with-sound.

More about Video Preview with Sound

Read the Video Preview with Sound page for every feature and setting, or the source code on GitHub.

Support this work

If this extension saves you time, you can support the work on GitHub Sponsors. Monthly tiers start at $5, and one-time tiers start at $15. Sponsorship is optional, and the tool works the same without it.