ffmpegwasm / ffmpegwasm/ffmpeg.wasm
How do I return/retrieve data such as supported fomats?
未关闭
- 主要语言
- C
- 星标
- 17.8k
- 派生
- 1.1k
- PR 合并指标
- 30 天内没有已合并 PR
描述
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.
贡献指南
评估
这个 Issue 还没有评估数据。