ffmpegwasm / ffmpegwasm/ffmpeg.wasm
How do I return/retrieve data such as supported fomats?
Offen
- Vorherrschende Sprache
- C
- Sterne
- 17.8k
- Forks
- 1.1k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
When the logger is on:
```js
const ffmpeg = createFFmpeg({
log: true,
// corePath: 'https://unpkg.com/@ffmpeg/core@0.10.0/dist/ffmpeg-core.js'
logger: (msg) => {
//log msg if type == 'ffer'
if (msg.type === 'ffer') {
console.log(msg.message);
}
},
});
```
And I run:
```js
let check = await ffmpeg.run("-formats")
console.log(check)
```
it does return the formats in the log so the command itself works.
But How do I retrieve the data. the `check` variable returns `undefined` Which makes sense since `ffmpeg.run` does not return anything.
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.