Simple way to record a m3u8 stream to mp4

207 Likes 2 Comments
M3U8 stream to MP4

HLS H264 stream ( m3u8 ) is a very popular media type for streaming on the Internet.

How could I record/ save a video from a streaming website?

1. Open the web browser, I recommend Google Chome. Go to the website, and play the video.

2. Press F12, select Network tab, and search for “m3u8”.

Find m3u8 link

3. Run FFMPEG with the following command:

 ffmpeg -i "http://host/folder/file.m3u8" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 file.mp4

You might like

Avatar

About the Author: Toc Xoan

2 Comments

  1. If you use the FFMPEG method with a continuous stream (such as a CNN stream) how can you force the recording to stop?

    1. To stop recording a continuous stream ( such as a CNN, FOX Sport … etc ) , just use Ctrl + C . Make sure that: you’ve got your desired stream duration.

Leave a Reply

Your email address will not be published. Required fields are marked *