ffmpegwasm / ffmpegwasm/ffmpeg.wasm
How do I return/retrieve data such as supported fomats?
Abierto
- Lenguaje dominante
- C
- Estrellas
- 17.8k
- Forks
- 1.1k
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
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.
Guía de contribución
Evaluación
Este issue todavía no se ha evaluado.