Simple way to record a m3u8 stream to mp4

7 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

About the Author: Toc Xoan

This guy likes taking photos, hunting cheap tours, exploring the unique culture of every cities of Vietnam. Contact: [email protected]