ffmpegwasm / ffmpegwasm/ffmpeg.wasm
How do I return/retrieve data such as supported fomats?
Open
- Dominant language
- C
- Stars
- 17.8k
- Forks
- 1.1k
- PR merge metrics
- No merged PRs in 30d
Description
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.
Contributor guide
Assessment
This issue has not been assessed yet.