Add instructions for getting FFmpeg up

This commit is contained in:
Ritiek
2017-06-20 20:51:28 +05:30
parent 20d4d7c2d5
commit 86506307ff
2 changed files with 11 additions and 10 deletions

View File

@@ -15,6 +15,7 @@
- Track number - Track number
- Disc number - Disc number
- Release date - Release date
- and more..
- Works straight out of the box and does not require to generate or mess with your API keys. - Works straight out of the box and does not require to generate or mess with your API keys.
@@ -48,25 +49,25 @@ git clone https://github.com/Ritiek/Spotify-Downloader
cd Spotify-Downloader cd Spotify-Downloader
pip install -U -r requirements.txt pip install -U -r requirements.txt
``` ```
You'll also need to install avconv (use `--ffmpeg` option when using the script if you want `ffmpeg`):
`sudo apt-get install libav-tools` (`brew install libav` for Mac) You'll also need to install FFmpeg for conversion (use `--avconv` if you'd like to use that instead):
Linux: `sudo apt-get install ffmpeg`
Mac: `brew install ffmpeg --with-libass --with-opus --with-fdk-aac`
### Windows ### Windows
Assuming you have Python already installed.. Assuming you have Python already installed..
- Download Libav-Tools for windows: https://builds.libav.org/windows/release-gpl/libav-x86_64-w64-mingw32-11.7.7z. Copy all the contents of bin folder (of libav) to Scripts folder (in your python's installation directory). - Download FFmpeg for windows from [here](http://ffmpeg.zeranoe.com/builds/). Copy `ffmpeg.exe` from bin folder (of FFmpeg) to Scripts folder (in your python's installation directory).
- Download the zip file of this repository and extract its contents in your python's installation folder as well. - Download the zip file of this repository and extract its contents in your python's installation folder.
Shift+right-click on empty area and open cmd and type: Change your current working directory to python's installation directory. Shift+right-click on empty area and open cmd and type:
`"Scripts/pip.exe" install -U -r requirements.txt` `"Scripts/pip.exe" install -U -r requirements.txt`
- If you do not want to naviagte to your python folder from the command-line everytime you want to run the script, you can have your python 'PATH' environment variables set and then you can run the script from any directory. - If you do not want to naviagte to your python folder from the command-line everytime you want to run the script, you can have your python 'PATH' environment variables set and then you can run the script from any directory.
- python install folder: like (C:\Program Files\Python36)
- python scripts folder: like (C:\Program Files\Python36\Scripts)
## Instructions for Downloading Songs ## Instructions for Downloading Songs
@@ -88,8 +89,8 @@ optional arguments:
-n, --no-convert skip the conversion process and meta-tags (default: -n, --no-convert skip the conversion process and meta-tags (default:
False) False)
-m, --manual choose the song to download manually (default: False) -m, --manual choose the song to download manually (default: False)
-f, --ffmpeg Use ffmpeg instead of libav for conversion. If not set -a, --avconv Use avconv for conversion. If not set
defaults to libav (default: False) defaults to FFmpeg (default: False)
-v, --verbose show debug output (default: False) -v, --verbose show debug output (default: False)
-i INPUT_EXT, --input_ext INPUT_EXT -i INPUT_EXT, --input_ext INPUT_EXT
prefered input format .m4a or .webm (Opus) (default: prefered input format .m4a or .webm (Opus) (default:

View File

@@ -46,7 +46,7 @@ def get_arguments():
help='choose the song to download manually', action='store_true') help='choose the song to download manually', action='store_true')
parser.add_argument('-nm', '--no-metadata', default=False, parser.add_argument('-nm', '--no-metadata', default=False,
help='do not embed metadata in songs', action='store_true') help='do not embed metadata in songs', action='store_true')
parser.add_argument('-f', '--avconv', default=False, parser.add_argument('-a', '--avconv', default=False,
help='Use avconv for conversion otherwise set defaults to ffmpeg', help='Use avconv for conversion otherwise set defaults to ffmpeg',
action='store_true') action='store_true')
parser.add_argument('-v', '--verbose', default=False, parser.add_argument('-v', '--verbose', default=False,