The file in question looks like this:


The file in question isn't a live stream. It's a recording.

I've tried using the ffmpeg library using various commands but the resulting file was either not downloaded at all due to "corrupted" error, or was downloaded but was heavily corrupted.

  • I'm assuming you tried ffmpeg -i "[url]" Vid.ts – Tetsujin Nov 27 '14 at 12:52
  • 1
    or perhaps better ffmpeg -i [url] -c copy filename.mkv – Tetsujin Nov 27 '14 at 12:58

You can use FFmpeg for this.

For example:

$ ffmpeg -user_agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/601.7.8 (KHTML, like Gecko) Version/9.1.3 Safari/537.86.7" -i,5/index.m3u8 -c copy pd.mkv

User Agent is important key for many online cinema.

  • 1
    Provided the playlist have different video qualities, which quality of the video is copied in the .mkv file using a command like this? There is a way with ffmpeg to choose the resolution of the stream? – user74513 Oct 24 '18 at 14:42

You must log in to answer this question.

protected by Community Jan 14 at 8:46

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged .