Downloads segmented audio+video from Vimeo and saves as .mp4
This script is useful for cases where youtube-dl is unable to find the master url, for example on pages that require login or cookies.
Install requirements with pip install -r requirements.txt
Compilation instruction: https://trac.ffmpeg.org/wiki/CompilationGuide
For ubuntu users:
sudo add-apt-repository ppa:mc3man/trusty-media && sudo apt-get update
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 8E51A6D660CD88D67D65221D90BD7EACED8E640A
sudo apt-get install ffmpeg
(The instructions are taken from here - warning: Russian!)
For MacOS users:
brew install ffmpeg
To use this script, the master url needs to be manually extracted from the page:
python vimeo-download.py --url "https://...master.json?base64_init=1" --output <optional_name>
To get the master url:
- Open the network tab in the inspector
- Find the url of a request to the
master.json
file - Run the script with the url as argument
You can download multiple files in parallel with GNU Parallel:
parallel -a master-files.txt python vimeo-download.py --url "{}"
Where master-files.txt
contains a list of master URLs
Code merges the following gists:
- https://gist.github.com/alexeygrigorev/a1bc540925054b71e1a7268e50ad55cd
- https://gist.github.com/tayiorbeii/d78c7e4b338b031ce8090b30b395a46f
- https://gist.github.com/paschoaletto/7f65b7e36b76ccde9fe52b74b62ab9df
For a more convenient experience use youtube-dl ( https://rg3.github.io/youtube-dl/ ) if youtube-dl is able to find the url