You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Agents Window: No Audio support in the video preview #343048
bugIssue identified by VS Code Team member as probable bugimage-previewBuilt-in image preview extensioninsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
start a new session on a remote agent host (use SSH to ensure you get the VS Code AH)
generate a narrated mp4 video in the session
click the generated video in the chat -> opens to the side in the video preview
-> no audio plays
-> When you download the video and play it in QuickTime on the mac there's audio.
Robo (@deepak1556) this looks like it's coming from the Electron build that product builds pull from the internal feed rather than from VS Code. Could you check whether 43.7.7-15743441 (#342837) is missing the proprietary AAC decoder in its bundled ffmpeg?
I reproduced it locally with a narrated MP4 (H.264 High + AAC-LC, 48 kHz stereo). It's not specific to remote or the Agents window:
Build
Electron
Video
Audio
Code OSS from main (upstream Electron)
43.7.7
✅
✅
Insiders 5170ebe9 with a clean profile
43.7.7-15743441
✅
❌
Inside the Insiders video preview webview:
canPlayType('audio/mp4; codecs="mp4a.40.2"') returns probably, but webkitAudioDecodedByteCount stays at 0 while the video decodes.
An MP3 audio track in the same container decodes fine, so the audio pipeline itself works.
An Opus audio track in MP4 also decodes 0 bytes in Insiders. It decodes in the upstream Electron.
The arm64 slice of the Insiders libffmpeg.dylib is about 250 KB smaller than upstream's. That would fit an ffmpeg built without proprietary codecs, with H.264 video still playing through VideoToolbox.
#342837 only changed ms_build_id (15553055 → 15743441), and that is the build in the issue report. I haven't confirmed whether 15553055 decoded AAC.
The detection part was broken till now, I have fixed it recently and will bring it in upcoming runtime update. You can then use any of the following api to know if a codec or container is supported.
* Using mimetype - video.canPlayType() / audio.canPlayType()
* Normal playback with known properties - navigator.mediaCapabilities.decodingInfo({})
* Media source stream - MediaSource.isTypeSupported()
* WebCodecs api - videoDecoder.isConfigSupported() / audioDecoder.isConfigSupported()
bugIssue identified by VS Code Team member as probable bugimage-previewBuilt-in image preview extensioninsiders-releasedPatch has been released in VS Code InsidersverifiedVerification succeeded
Activity
lramos15 commentedon Oct 21, 2026
Robo (@deepak1556) this looks like it's coming from the Electron build that product builds pull from the internal feed rather than from VS Code. Could you check whether
43.7.7-15743441(#342837) is missing the proprietary AAC decoder in its bundled ffmpeg?I reproduced it locally with a narrated MP4 (H.264 High + AAC-LC, 48 kHz stereo). It's not specific to remote or the Agents window:
main(upstream Electron)5170ebe9with a clean profileInside the Insiders video preview webview:
canPlayType('audio/mp4; codecs="mp4a.40.2"')returnsprobably, butwebkitAudioDecodedByteCountstays at 0 while the video decodes.libffmpeg.dylibis about 250 KB smaller than upstream's. That would fit an ffmpeg built without proprietary codecs, with H.264 video still playing through VideoToolbox.#342837 only changed
ms_build_id(15553055→15743441), and that is the build in the issue report. I haven't confirmed whether15553055decoded AAC.deepak1556 commentedon Oct 22, 2026
AAC is not in our supported list of codecs, the current list we have approval to ship are https://code.visualstudio.com/updates/v1_71#_ffmpeg-codecs-support. The mp4 container needs to use one of them from this list. Any expansion to this list should go through legal approval process.
lramos15 commentedon Oct 22, 2026
I wonder if we can at least detect the codec is unsupported so the user knows that they should open the file in another application
deepak1556 commentedon Oct 22, 2026
The detection part was broken till now, I have fixed it recently and will bring it in upcoming runtime update. You can then use any of the following api to know if a codec or container is supported.
mediaPreview: warn when a media file's audio codec can't be played (#…
aiday-mar commentedon Nov 9, 2026
Works with MP4 with baseline H.264