ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Compressing audio files is very slow

Open
#380 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
C
Stars
17.8k
Forks
1.1k
PR merge metrics
No merged PRs in 30d

Description

Hey guys,
I am trying to “compress” audio files (wav) by lowering their sample rate (from 8k to 3k).
But while I do that using ‘react’ and `@ffmpeg/ffmpeg`, the time that it takes for ffmpeg to do so is very long.

The commands i was running:
```js

ffmpeg.FS(“writeFile”, “test.wav”, await fetchFile(“http://localhost:3003/sample.wav”));

await ffmpeg.run(“-i”, “test.wav”, “-ar”, “3000”, “output.wav” )

```

I would love to get some help about this issue, i saw there is an option for some type of threaded running of ffmpeg, maybe some of you know more about that?

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.