ffmpegwasm / ffmpegwasm/ffmpeg.wasm

How do I return/retrieve data such as supported fomats?

Abierto
#277 4 comentarios 1 reacción 0 asignados Ver en GitHub
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

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.