ffmpegwasm / ffmpeg.wasm

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

Stuck at stream mapping #578

Open ruipneves opened 10 months ago

ruipneves commented 10 months ago

Describe the bug When trying to convert a .mp4 to .gif it gets stuck at stream mapping.

I am using version 0.12.6

Tried with:


const file: File = new File([blob], 'videoToBeConverted', { type: blob.type });

const nameIn = file.name;
const nameOut = 'output.gif';

const arrayBuffer = await file.arrayBuffer();

await ffmpeg.exec([
    '-i',
    nameIn,
    '-vf',
    'fps=10,split[s0][s1];[s0]palettegen[p];[s1][p]paletteuse',
    nameOut,
]);

and

const file: File = new File([blob], 'videoToBeConverted', { type: blob.type });

const nameIn = file.name;
const nameOut = 'output.gif';

const arrayBuffer = await file.arrayBuffer();

 await ffmpeg.exec([
    '-i',
    nameIn,
    '-t',
    '2.5',
    '-ss',
    '2.0',
    '-f',
    'gif',
    nameOut,
]);

Even tried just converting the .mp4 to .mov and still got stuck.

To Reproduce Cannot provide a reproducible project.

Expected behavior Conversion should start and be logged.

Screenshots image

Desktop (please complete the following information):

Additional context N/A

ruipneves commented 10 months ago

Alright, just saw now that I was using the multi thread version which gets stuck. The single thread works fine. Any idea why?