ffmpegwasm / ffmpegwasm/ffmpeg.wasm
Can't reuse ffmpeg
Open
- Dominant language
- C
- Stars
- 17.8k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
GIVEN I load ffmpeg
AND I run any command
AND I run another command
THEN an error is thrown
```
[info] run ffmpeg command: -L
Uncaught (in promise)
{
"name": "ExitStatus",
"message": "Program terminated with exit(0)",
"status": 0
}
```
**To Reproduce**
```
const fs = require('fs');
const { createFFmpeg, fetchFile } = require('@ffmpeg/ffmpeg');
const ffmpeg = createFFmpeg({ log: true });
(async () => {
await ffmpeg.load();
await ffmpeg.run('-L');
await ffmpeg.run('-L');
})();
```
**Expected behavior**
It should run both commands
Contributor guide
Assessment
This issue has not been assessed yet.