一个用于下载 Vimeo 私人视频的 CLI 工具。使用 Go 语言编写。
A tool to download private videos on vimeo.
vimeo-dl --combine -i ${MASTER_JSON_URL}# Download a video as ${clip_id}-video.mp4 (1080p).
# The highest resolution is automatically selected.
vimeo-dl -i "https://skyfire.vimeocdn.com/xxx/yyy/live-archive/video/240p,360p,540p,720p,1080p/master.json?base64_init=1&query_string_ranges=1"# Download a video as ${clip_id}-video.mp4 (720p) with the specified user-agent.
vimeo-dl -i "https://skyfire.vimeocdn.com/xxx/yyy/live-archive/video/240p,360p,540p,720p,1080p/master.json?base64_init=1&query_string_ranges=1" \
--video-id "720p" \
--user-agent "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/84.0.4147.89 Safari/537.36"
# you can use jq command to list available formats associated ids (https://jqlang.org)
curl -s $URL | jq '[.video[] | {id, height, width, codecs}] | sort_by(.height)'…Usage:
vimeo-dl [flags]
Flags:
--audio-id string audio id
--combine combine video and audio into a single mp4 (ffmpeg is required)
-h, --help help for vimeo-dl
-i, --input string url for master.json (required)
-o, --output-file-name string output file name
--user-agent string user-agent for request
-v, --version version for vimeo-dl
--video-id string video idCurrently, Windows, macOS and linux are supported.
.tar.gz file.# go =1.6
go install github.com/akiomik/vimeo-dlmake buildmake testUsing Docker images is useful if you do not have ffmpeg installed.
Build docker image:
# build docker image (with ffmpeg)
docker build -t vimeo-dl .
# build docker image without ffpeg
docker build -t vimeo-dl:no-ffmpeg --target=no-ffmpeg .Use docker image (instead of the binary):
docker run -v "$(pwd)/downloads:/downloads" vimeo-dl ...暂无开放 Issues,或尚未同步最近议题。