How can I specify domain when downloading m3u8 file in ffmpeg?

Viewed 23

I have .m3u8 file and I am trying to download it like this:

ffmpeg -i file.m3u8 -c copy -bsf:a aac_adtstoasc output.mp4

It gives me errors about downloading it's parts. I think it's due to the fact that playlist contains partial path to .ts fragments inside without domain in it since this command works fine if i'm specifying URL instead of input file name.

However, I'm using ffmpeg.wasm, which don't have http(s) download support as for now.

I guess maybe I could somehow specify initial domain for m3u8 file's parts so ffmpeg will know from where to download.

0 Answers
Related