This tool aims to make it easy to download and convert youtube videos, with subsecond start and end times, to:
- Audio Files
- Animated Gifs
- Plain ol' Video Files
If you're super lazy and just want a "set us up the bomb" script, run setup.sh (which will take a LONG time). Otherwise, just go through the requirements and installation steps :)
- Python 2.6, 2.7, or 3.2+
- XCode Command Line Tools
- (for GIFs) OpenCv
- (for MP3s) FFMpeg
pip install -r requirements.txt
For some reason I had to run a
brew reinstall libav
to get audio conversion working ¯\(ツ)/¯
bash videoToGif.sh --video 37eEUsd1ASA --output myGif --startTime 10.56 --endTime 15.6
bash getVideo.sh --video 37eEUsd1ASA --output myVideo --startTime 20.4 --endtime 40
bash videoToMp3.sh --video 37eEUsd1ASA --output myAudio