Concatenate streaming m3u8 ts files into mp4 with VLC player

Phanix
·
·
IPFS
·

Uh, this is considered a bad thing, and it is unwilling to infringe on intellectual property rights.

Streaming on the Internet usually reads a .m3u8 file, and then downloads the .ts video clips in sequence for playback, similar to the following.

 #EXTM3U
#EXT-X-TARGETDURATION:3
#EXT-X-ALLOW-CACHE:YES
#EXT-X-PLAYLIST-TYPE:VOD
#EXT-X-VERSION:3
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:3.000,
https://SOME_URL/seg-1-v1-a1.ts
#EXTINF:3.000,
https://SOME_URL/seg-2-v1-a1.ts
#EXTINF:3.000,
https://SOME_URL/seg-3-v1-a1.ts
#EXTINF:3.000,
https://SOME_URL/seg-4-v1-a1.ts

// omit #EXTINF:3.000 in the middle,
https://SOME_URL/seg-1375-v1-a1.ts
#EXTINF:3.000,
https://SOME_URL/seg-1376-v1-a1.ts
#EXTINF:3.000,
https://SOME_URL/seg-1377-v1-a1.ts
#EXTINF:3.000,
https://SOME_URL/seg-1378-v1-a1.ts
#EXTINF:2.468,
https://SOME_URL/seg-1379-v1-a1.ts
#EXT-X-ENDLIST

If you want to download the entire video, you can use VLC player .

Original link: Phanix's Blog

CC BY-NC-ND 2.0

Like my work? Don't forget to support and clap, let me know that you are with me on the road of creation. Keep this enthusiasm together!