Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AudioContext.decodeAudioData() error: Uncaught (in promise) DOMException: Unable to decode audio data #148494

Closed
lanly-dev opened this issue Apr 30, 2022 · 2 comments
Assignees

Comments

@lanly-dev
Copy link

lanly-dev commented Apr 30, 2022

Issue Type: Bug

Steps to Reproduce:

  1. Run debug spectrogram from source
  2. Open a directory that has an mp3 audio file
  3. Select a valid mp3 -> webview shows up, and the error prompted Unable to decode audio data.
  4. You could check out the error in the developer tool's console

The extension has never been working on official and insider build (same error), but somehow it worked in the exploration build in the past. The extension worked fine when I tried out the extension on this old exploration build: #94523 (comment). If I update the exploration vscode to 1.66, it doesn't work anymore and gives out the error.

I'm not sure if this error is intentional (maybe vscode or electron doesn't want to include the necessary codec to decode mp3 files) or a bug for the newer version? But AudioContext should work fine, at least in the past, see the issue #78333.

VS Code version: Code - Exploration 1.66.0-exploration (b056e68, 2022-03-10T09:18:09.603Z)
OS version: Windows_NT x64 10.0.19044
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (8 x 2592)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 15.87GB (3.66GB free)
Process Argv --crash-reporter-id 0f541a63-ae4f-4db5-913f-fc5df9332f75
Screen Reader no
VM 40%
@mjbvz
Copy link
Collaborator

mjbvz commented Apr 30, 2022

This is likely because the official builds do not include a full ffmpeg version (which I believe contributes support for mp3s)

@mjbvz mjbvz assigned deepak1556 and unassigned mjbvz Apr 30, 2022
@deepak1556
Copy link
Collaborator

Yes the current ffmpeg library shipped with insiders, stable and explorations does not support mp3 codec. We are currently looking to support it, you can follow #118275 for updates. Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Jun 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants