Created
September 9, 2020 20:51
-
-
Save orm011/a45465beafb1e74058ddf1ea8b2f9311 to your computer and use it in GitHub Desktop.
download some ytb live stream into 1hr chunks for a long time
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
export ytbkey=<ytbkey here>; | |
for i in `seq -f '%04g' 672`; | |
do /home/gridsan/omoll/.local/bin/streamlink --hls-duration 01:00:00 --hls-live-restart -o ${ytbkey}_$i.ts https://www.youtube.com/watch?v=${ytbkey} best; | |
done; | |
# convert ts container without re-encoding with this | |
# ffmpeg -i ${ytbkey}_$i.ts -s 0:0 -vcodec copy -an ${ytbkey}_$i.mp4; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment