Download from m3u8 address as an MP4 video file using ffmpeg.
$ m3u8-download
usage: m3u8-download M3U8_ADDRESS {OUTPUT_FILENAME}
$ m3u8-download "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8" "example.mp4"
- It accepts MPEG2 Transport Stream format.
- It outputs an MP4 container format.
- It uses ffmpeg, a command line toolbox to manipulate, convert and stream multimedia content.
-c copy
to copy both audio and video streams as-is.-bsf:a aac_adtstoasc
bitstream filter to convert Audio Data Transport Stream (ADTS) to MPEG-4 Audio Specific Configuration bitstream.