I am facing the same issue as in https://github.com/Kagami/ffmpeg.js/issues/29 trying to convert a video to images.
However, it does not seem to work, even using version 4.2.9003 with the webm worker version.
Using a simple webm sample and the following onmessage handler:
worker.onmessage = function (e) {
const msg = e.data;
switch (msg.type) {
case 'ready':
worker.postMessage({
type: 'run',
MEMFS: [{
name: 'dog.webm',
data: new Uint8Array(videoData)
}],
arguments: ['-i', 'dog.webm', '-vf', 'fps=25', 'dog_%03d.jpg']
});
break;
case 'stdout':
stdout += msg.data + '\n';
break;
case 'stderr':
stderr += msg.data + '\n';
break;
case 'error':
errdsp += msg.data + '\n';
break;
case 'done':
console.log('DONE\n', msg.data.MEMFS);
break;
case 'exit':
console.log('Process exited with code ' + msg.data);
console.log('stdout: \n' + stdout);
console.log('stderr: \n' + stderr);
console.log('error: \n' + errdsp);
break;
}
};
Hello!
I am facing the same issue as in https://github.com/Kagami/ffmpeg.js/issues/29 trying to convert a video to images.
However, it does not seem to work, even using version
4.2.9003
with thewebm
worker version.Using a simple
webm
sample and the followingonmessage
handler:I get the following browser log in Chrome: