
I read about it and using the command line tool i figured out I can do this:Īnd the stream starts saving to output.ts file. Now I know manually downloading ts packets with a download manager then merging them is too much needless work because there are ways to record m3u8 streams out there, like ffmpeg.

However when downloading them 3-5 at a time overall speed is faster and I don't end up missing any. My internet unfortunately is not very fast and I noticed if I try to download with the download manager each ts file one at a time then many of them get expired by the time I get to them. I'm willing to fall behind as much as the server would allow me without missing segments of video. Now for my purposes I don't really care about being live I just want to be able to download the stream in high quality to watch it later. The other thing I notice about these files is that these links expire and so I guess this is how live streaming works: media packets are available on the server for a certain amount of time before they expire.

I'm new to streaming but i have a decent enough background in programming and would like to figure a few things out.įirst thing I noticed is when downloading this m3u8 and opening it with a text editor I will find something like thisĭownloading these ts files manually with a download manager I get playable video files of 9s each which if I merge with ffmpeg I am able to get a high quality recording of the stream.

I'm trying to capture and record a live stream at this url:
