Created
November 10, 2020 18:23
-
-
Save freeslugs/695a6d0f45d8757ef2f766f5c1318c45 to your computer and use it in GitHub Desktop.
how to save jw player to mp4
This file contains hidden or 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
# create a new temp folder, and run this script there. | |
# todo: 257 is hardcoded end, but can probably be determined once wget returns error | |
for i in {1..257} | |
do | |
# networks tab will show .ts files. Let's download all of them. | |
wget "https://800evg.moekawaii.stream/hls/vx7wjj2pt65s7pl2y5f6w43emwslnmnkqajtswnsbwetpho773ehle5cgxsq/seg-$i-v1-a1.ts" -o | |
done | |
touch list.txt; for f in *.ts ; do echo file \'$f\' >> list.txt; done && sort -V list.txt -o list.txt; ffmpeg -f concat -safe 0 -i list.txt -c copy stitched-video.mp4 && rm list.txt | |
# all done, now we have our mp4 called stitched-video.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment