ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Cant convert to opus at 48000khz `memory access out of bounds`

Open
#867 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

**Describe the bug**
Converting to .opus at 48000khz results it `memory access out of bounds` error.
Opus supports 48k, 24k, 16k, 12k, 8k. Only 48k throws an error.

**To Reproduce**
[
"-i",
"input.mp3",
"-c:a", "libopus",
"-b:a", "64k",
"-ar", "48000" , // 24000, 16000, 12000, 8000 Other sample rates work as intended.
"output.opus"
]

48000 is the default so leaving out "-ar 48000" also results in an error.

**Expected behavior**
It should work like the other sample rates.

**Desktop (please complete the following information):**
- OS: Windows 11
- Browser: Chrome
- Version: Version 135.0.7049.96 (Official Build) (64-bit)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.