Use ffmpeg to download m3u8 steam video.
1.8K
docker run --rm -v "<local save path>:/downloads" --name m3u8-downloader yuska/m3u8-downloader url="<m3u8 file url>" fileName=<file name>
For example:
https://xxx.com/hls/45474.m3u8/homedownload.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
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/"'
Content type
Image
Digest
sha256:35129a9d7…
Size
52.4 MB
Last updated
6 months ago
docker pull yuska/m3u8-downloader