Why convert M3U8 to MP4?
An .m3u8 (HLS manifest) lists dozens or hundreds of short .ts or .m4s segments on a streaming server - you cannot copy a single video file from it directly. MP4 is a self-contained ISO Base Media File Format container that plays on any device without a network connection. The typical use is saving a lecture, webinar, or broadcast replay for offline playback.
How to convert M3U8 to MP4
ffmpeg FREE
Run ffmpeg -i URL -c copy output.mp4; -c copy skips re-encoding so quality is fully preserved and the process is fast.
yt-dlp FREE
Run yt-dlp --merge-output-format mp4 URL to download and merge the stream; pass the page URL instead of the raw M3U8 URL for sites yt-dlp recognizes.
VLC media player FREE
Open the M3U8 URL via Media > Open Network Stream, click the arrow next to Play and choose Convert, select an MP4 profile, set a destination file, and click Start. VLC records in real time.
About these formats
An M3U8 file is a plain-text playlist that lists track paths or stream URLs - it holds no audio or video itself. Open it in VLC to play a local playlist or an HLS stream. To save a streamed…
Open .M3U8 details →An MP4 file is a video container (MPEG-4 Part 14, standardized 2003) that holds video, audio, subtitles, and chapters in one file. It plays on every phone, computer, browser, and smart TV…
Open .MP4 details →Quality & what to watch
- With
-c copyin ffmpeg no re-encoding occurs - this is the fastest method and preserves original quality. - VLC records in real time: you must wait as long as the stream lasts; use ffmpeg or yt-dlp for speed.
- A local
.m3u8listing only local file paths is not a video and cannot be merged into an MP4.
Frequently asked questions
Which tool should I use?
Will the output MP4 be the same quality as the stream?
-c copy - no re-encoding occurs and the video and audio data are preserved as-is.What if the M3U8 URL has expired tokens?
What if I only have the M3U8 file, not the URL?
ffmpeg -i path/to/index.m3u8 -c copy output.mp4; the segments must still be accessible on the network.