kasim / m3u8-download

Simple shell script to download video from m3u8 address as an mp4 video file using ffmpeg

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

m3u8-download

Download from m3u8 address as an MP4 video file using ffmpeg.

Usage

$ m3u8-download
usage: m3u8-download M3U8_ADDRESS {OUTPUT_FILENAME}

Example

$ m3u8-download "https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8" "example.mp4"

How it works

  • 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.

About

Simple shell script to download video from m3u8 address as an mp4 video file using ffmpeg

License:The Unlicense


Languages

Language:Shell 100.0%