ffmpegwasm / ffmpegwasm/ffmpeg.wasm

Progress event value

未关闭
#600 10 条评论 10 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
C
星标
17.8k
派生
1.1k
PR 合并指标
30 天内没有已合并 PR

描述

**Describe the bug**

listening to the progress event, the progress value is a very big negative number, but it should be between 0 and 1 ?

```
ffmpeg.on("progress", ({ progress, time }) =>
{
console.log( (progress * 100)+"%, time: "+(time / 1000000)+" s");
});
```

```
0%, time: 0 s
-3406300%, time: 0.034063 s
-7306300%, time: 0.073063 s
-11406300%, time: 0.114063 s
-12706300%, time: 0.127063 s
-15406300%, time: 0.154063 s
-19206300%, time: 0.192063 s
```

**To Reproduce**

check out the git repository, run the example - the examples also give this wrong number

**Expected behavior**

should be a number between 0 and 1

Any idea how to fix this ?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。