Kagami / ffmpeg.js

Port of FFmpeg with Emscripten
Other
3.29k stars 335 forks source link

using -loop 1 causes error OOMOOMexception #142

Open fmiuc-888 opened 3 years ago

fmiuc-888 commented 3 years ago

using node version : v14.5.0

my command lines:

const result = ffmpeg({ mounts: [{type: 'NODEFS', opts: {root: '/image'}, mountpoint: '/image'}], arguments: [ '-loop', '1', '-i', 'test.jpeg', '-i', 'test.mp3', '-vf', 'scale=720*480', '-c:v', 'libx264', '-pix_fmt', 'yuv420p', '-shortest', '-y', '/image/out.mp4', ], })

error: OOMOOMexception thrown: abort(OOM). Build with -s ASSERTIONS=1 for more info.

How do I use the -loop parameter correctly in my program? thanks~~~

BrunoQuaresma commented 2 years ago

I'm facing te same issue.