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

Playground throws: Uncaught (in promise) RuntimeError: memory access out of bounds #722

Open
guest271314 opened this issue Apr 7, 2024 · 6 comments

Comments

@guest271314
Copy link

Describe the bug
Playground throws

790132bf.a92c5f5d.js:1 Uncaught (in promise) RuntimeError: memory access out of bounds

To Reproduce
Upload tos.mkv from https://github.com/Kagami/mpv.js/blob/master/example/tos.mkv. Include arguments to convert to WebM.

Expected behavior
MKV file to be converted to WEBM file.

Screenshots
Screenshot_2024-04-06_22-17-10

Desktop (please complete the following information):

  • OS: Linux
  • Browser: Chrome-For-Testing
  • Version: 125

Smartphone (please complete the following information):

Additional context

@netmaster4
Copy link

This is the ffmpeg output of the tos.mkv file

FFmpeg Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
FFmpeg Stream #0:1 -> #0:1 (mp3 (mp3float) -> aac (native))
FFmpeg [aac @ 0x1177380] Too many bits 13653.333333 > 12288 per frame requested, clamping to max

@guest271314
Copy link
Author

Works with ffmpeg on the machine.

@guest271314
Copy link
Author

@netmaster4 Where is that aac coming from?

Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> vp9 (libvpx-vp9))
  Stream #0:1 -> #0:1 (mp3 (mp3float) -> opus (libopus))
  Stream #0:2 -> #0:2 (subrip (srt) -> webvtt (native))

@netmaster4
Copy link

netmaster4 commented Apr 7, 2024

direct from the tos.mkv file. and your Stream #0:1 with contains an MP3 ... and converts on ffmpegwasm to AAC. (default audio encoder)

Do you use the old v5.1 ffmpeg version on machine? i think its an ffmpeg sw bug not an ffmpeg wasm bug

@guest271314
Copy link
Author

My machine is using ffmpeg version 4.4.2.

and converts on ffmpegwasm to AAC. (default audio encoder)

That might be the issue.

not an ffmpeg wasm bug

So you are able to convert the tos.mkv to tos.webm file in the playground on your machine?

@guest271314
Copy link
Author

Wait a minute, is libvpx-vp9 not supported?

// equivalent ffmpeg.wasm API call
ffmpeg.exec(["-i","tos.mkv","-c:v","-c:v","libvpx-vp9","-c:a","libopus","-f","webm","tos.webm"]);

// equivalent ffmpeg command line
ffmpeg -i tos.mkv -c:v -c:v libvpx-vp9 -c:a libopus -f webm tos.webm
[NULL @ 0xef6d90] Unable to find a suitable output format for 'libvpx-vp9'
libvpx-vp9: Invalid argument
Aborted()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants