ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Can't reuse ffmpeg

Aperta
#330 7 commenti 4 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C
Stelle
17.8k
Fork
1.1k
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.