Skip to content

Instantly share code, notes, and snippets.

@xsephiroth
Last active May 20, 2020 04:35
Show Gist options
  • Save xsephiroth/1ddf510b426e64a94e26ffe69bb06bd3 to your computer and use it in GitHub Desktop.
Save xsephiroth/1ddf510b426e64a94e26ffe69bb06bd3 to your computer and use it in GitHub Desktop.
duboku m3u8 download script
#!/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
#!/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