ffmpegwasm / ffmpeg.wasm

FFmpeg for browser, powered by WebAssembly
https://ffmpegwasm.netlify.app
MIT License
14.2k stars 831 forks source link

Progress event value #600

Open pandrr opened 12 months ago

pandrr commented 12 months ago

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 ?

k3sha7 commented 9 months ago

The same happened to me after updating from core@0.12.4 to core@0.12.6, now the progress returns the time but as a negative value. Is this an issue with the package or the setup?

baoziv587 commented 9 months ago

same

ronaldohoch commented 8 months ago

Same here!

marioepsley commented 8 months ago

Found this as well

xna00 commented 4 months ago

Same

saricden commented 4 months ago

Same

deifos commented 22 hours ago

Did anybody found a solution for this?