Last active
May 20, 2020 04:35
-
-
Save xsephiroth/1ddf510b426e64a94e26ffe69bb06bd3 to your computer and use it in GitHub Desktop.
duboku m3u8 download script
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 | |
docker run --rm -it \ | |
-v /tmp/out:/out \ | |
jrottenberg/ffmpeg:4.1-alpine \ | |
-user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3554.0 Safari/537.36" \ | |
-headers "origin: https://www.fanstui.com" \ | |
-headers "referer: https://www.fanstui.com/static/player/videojs.html" \ | |
-i xxx.m3u8 \ | |
-c copy /out/v.mp4 |
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 | |
ffmpeg \ | |
-user_agent "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3554.0 Safari/537.36" \ | |
-headers "origin: https://www.fanstui.com" \ | |
-headers "referer: https://www.fanstui.com/static/player/videojs.html" \ | |
-i https://tv2.xboku.com/xxx/index.m3u8 \ | |
-c copy v.mp4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment