Closed xaviernaves closed 1 year ago
It is highly recommended to listen to log events to diagnose the problem:
const ffmpeg = new FFmpeg();
ffmpeg.on("log", ({ message }) => {
console.log(message);
});
And for you question, I have tried with follow parameters and sadly it is not working due to lack of openssl lib:
await ffmpeg.exec([
"-i",
"https://res.cloudinary.com/dannykeane/video/upload/sp_full_hd/q_80:qmax_90,ac_none/v1/dk-memoji-dark.m3u8",
"-c",
"copy",
"-bsf:a",
"aac_adtstoasc",
"output.mp4",
]);
I remembered I tried to compile with openssl once in the past, but encountered errors regarding network protocol. It is unlikely I can successfully build one even now.
I think the best bet you have is to download .m3u8 file and parse the file until you got .ts file URLs, then you can concat those *.ts files together. example here: https://github.com/ffmpegwasm/ffmpeg.wasm/blob/main/apps/vanilla-app/public/concatDemuxer.html
Hope it helps.
Thank you, I managed to make it work with the information you provided.
I will close the issue.
Describe the bug
In Chrome
In Safari
To Reproduce Steps to reproduce the behavior:
Expected behavior Output the file in mp4
Desktop (please complete the following information):