Last active
January 23, 2023 12:04
-
-
Save Git-I985/1634618f55da540bccaf573b1c3274b0 to your computer and use it in GitHub Desktop.
m3u8 HSL bash script downloader
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# file input.txt must contains *.m3u8 links line by line | |
# !!! installed ffmpeg required | |
# You can change/remove Referer if in my case i needed it to bypass blocking requests from another domain | |
INDEX=1 | |
for file in $(cat ./input.txt) | |
do | |
ffmpeg -headers "Referer: https://kinescope.io/embed" -i ${file} -c copy ${INDEX}.mp4 | |
let INDEX=${INDEX}+1 | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment