Skip to content

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

License

Notifications You must be signed in to change notification settings

williamchanrico/m3u8-download

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages