sending video issue whatsapp-web.js

Viewed 30

I'm trying to send an mp4 video as a sticker but i get an error, here's my code

client.on("message", (message) => {
    const media = MessageMedia.fromFilePath("./vid.mp4");
    client.sendMessage(message.from, media, { sendMediaAsSticker: true });
}

but I get this error

handleExit(new Error('ffmpeg exited with code ' + code));
                     ^

Error: ffmpeg exited with code 1: pipe:0: Invalid data found when processing input
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!

its working with other mp4 files but with this one it doesnt, this is a good working mp4 file I generated with ffmpeg using the concat method.

0 Answers
Related