Sign inSign up

yuska/m3u8-downloader

By yuska

•Updated 6 months ago

Use ffmpeg to download m3u8 steam video.

Image
0

1.8K

yuska/m3u8-downloader repository overview

⁠Usage

docker run --rm -v "<local save path>:/downloads" --name m3u8-downloader yuska/m3u8-downloader url="<m3u8 file url>" fileName=<file name>

For example:

  • m3u8 file URL: https://xxx.com/hls/45474.m3u8
  • local save path: /home
  • file name: download.mp4

 

The command will be:

docker run --rm -v "/home:/downloads" --name m3u8-downloader yuska/m3u8-downloader url="https://xxx.com/hls/45474.m3u8" fileName=download.mp4

The actual executing command inside container will be:

ffmpeg -headers "User-Agent: Mozilla/5.0 (Windows NT 6.0) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11" -i 'https://xxx.com/hls/45474.m3u8' -c copy /download/download.mp4

 

⁠Additional ffmpeg options

You can pass additional ffmpeg options with options variable.

For example, following command use options variable to setup origin and referer headers for m3u8 request sending by ffmepg:

docker run --rm -v "/home:/downloads" --name m3u8-downloader yuska/m3u8-downloader url="https://xxx.com/hls/45474.m3u8" fileName=download.mp4 options='-headers "origin: https://xxx.com" -headers "referer: https://xxx.com/"'

Tag summary

Content type

Image

Digest

sha256:35129a9d7…

Size

52.4 MB

Last updated

6 months ago

docker pull yuska/m3u8-downloader