How to convert m3u8 file to mp4?

I’ve been trying to download a video from Typeform’s Video question

But this gives me an m3u8 file - which I think is a stream file of some kind.

I’ve tried parsing it myself and grabbing the chunk URLs from the file, but I can’t convert it to mp4

Is there an easier way to achieve this - maybe an app that offers conversion, similar to HLS downloader?

An M3u8 file is a text file containing a playlist. So normally it should be editable by hand. You can try to download the file manually (if you have access to the URL) to see what it contains.

I suspect it might contain URLs of vidofiles that you would need to download in order to get the MP4 file you want.

Here is what it could look like (yes, I asked ChatGPT to create one for me):

#EXTM3U
#EXT-X-VERSION:3

#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-TARGETDURATION:10
#EXT-X-MEDIA-SEQUENCE:0

# Video 1: Introduction to AI
#EXTINF:10.0,
https://example.com/videos/intro_to_ai_1.ts
#EXTINF:10.0,
https://example.com/videos/intro_to_ai_2.ts
#EXTINF:10.0,
https://example.com/videos/intro_to_ai_3.ts

# Video 2: ChatGPT Features
#EXTINF:9.5,
https://example.com/videos/chatgpt_features_1.ts
#EXTINF:9.5,
https://example.com/videos/chatgpt_features_2.ts
#EXTINF:10.0,
https://example.com/videos/chatgpt_features_3.ts

# Video 3: Future of Generative AI
#EXTINF:8.0,
https://example.com/videos/future_of_ai_1.ts
#EXTINF:7.5,
https://example.com/videos/future_of_ai_2.ts
#EXTINF:10.0,
https://example.com/videos/future_of_ai_3.ts

#EXT-X-ENDLIST

L

I did the same thing, and it also said I need to merge the .ts files

Not sure how to do that in Make

You will probably need to use a conversion module like convertio or cloudconvert. I haven’t used any of them, so I can’t say for sure that it will work.

L

You can use VLC to play M3U8 files. Then use a screen recorder (QuickTime Player for Mac, Snipping Tool for Windows) to record M3U8 to MP4 format.

But to automate with Make, he would need an online equivalent of VLC. Do you know of one?

L