ffmpeg.wasm icon indicating copy to clipboard operation
ffmpeg.wasm copied to clipboard

Progress event value

Open pandrr opened this issue 1 year ago • 7 comments

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 ?

pandrr avatar Oct 09 '23 11:10 pandrr

The same happened to me after updating from [email protected] to [email protected], now the progress returns the time but as a negative value. Is this an issue with the package or the setup?

k3sha7 avatar Dec 30 '23 12:12 k3sha7

same

baoziv587 avatar Jan 03 '24 00:01 baoziv587

Same here!

ronaldohoch avatar Jan 30 '24 14:01 ronaldohoch

Found this as well

marioepsley avatar Jan 30 '24 17:01 marioepsley

Same

xna00 avatar May 17 '24 10:05 xna00

Same

saricden avatar May 20 '24 19:05 saricden