ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Can't reuse ffmpeg

Open
#330 7 comments 4 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**
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

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.