Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

Vimeo downloader

author: 'caretak3r'

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.

Installation

Install requirements with pip install -r requirements.txt

Installing ffmpeg

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

Usage

First you need the master.json request which has an hmac for rented/ondemand videos.

####Basic Steps: Load vimeo URL --> Open personal inspector --> play the video --> look for this:

To get the master url:

  1. Open the network tab in the inspector
  2. Find the url of a request to the master.json file
  3. Run the script with the url as argument

Copy the full request and run the script, with some pre-setup steps:

pip3 install -r requirements.txt (or use pipenv, idgaf)

python3 vimeo-download.py --url "http://...master.json?base64_init=1" --output <optional_name>

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.

If you then need to merge the video/audio tracks, navigate to where the file was saved and run:

ffmpeg -i v.mp4 -i a.mp3 -c copy merged.mp4

Acknowledgements

Code merges the following gists: