Use Composer to download ffmpeg (fixes #38)

This commit is contained in:
Pierre Rudloff 2015-11-21 20:44:32 +01:00
parent 00519c3183
commit cafb75a9c1
6 changed files with 29 additions and 8 deletions

View file

@ -31,7 +31,7 @@ Class Config
public $python = '/usr/bin/python';
public $params = '--no-playlist --no-warnings -f best';
public $convert = false;
public $avconv = 'ffmpeg/ffmpeg';
public $avconv = 'vendor/ffmpeg/ffmpeg/ffmpeg';
/**
* Config constructor

View file

@ -10,7 +10,8 @@
"slim/slim": "~2.6.2",
"slim/views": "~0.1.3",
"rudloff/smarty-plugin-noscheme": "~0.1.0",
"symfony/yaml": "~2.7.6"
"symfony/yaml": "~2.7.6",
"ffmpeg/ffmpeg": "~2.8.2"
},
"require-dev": {
"symfony/var-dumper": "~2.7.6"
@ -34,6 +35,17 @@
"reference": "2015.11.13"
}
}
},
{
"type": "package",
"package": {
"name": "ffmpeg/ffmpeg",
"version": "2.8.2",
"dist": {
"url": "http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz",
"type": "xz"
}
}
}
],
"authors": [

15
composer.lock generated
View file

@ -4,9 +4,20 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "9e5e7fd038b781a2e3d8225c106c4cf8",
"content-hash": "f12c36b7fa62650562772e94d85a1a8a",
"hash": "f0413ea9f5a3839553b545d6f8d97a04",
"content-hash": "17101d634f04111528073e6c9e5dcb8c",
"packages": [
{
"name": "ffmpeg/ffmpeg",
"version": "2.8.2",
"dist": {
"type": "xz",
"url": "http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz",
"reference": null,
"shasum": null
},
"type": "library"
},
{
"name": "jeremykendall/php-domain-parser",
"version": "3.0.0",

View file

@ -2,4 +2,4 @@ youtubedl: vendor/rg3/youtube-dl/youtube_dl/__main__.py
python: /usr/bin/python
params: --no-playlist --no-warnings -f best
convert: false
avconv: ffmpeg/ffmpeg
avconv: vendor/ffmpeg/ffmpeg/ffmpeg

2
ffmpeg/.gitignore vendored
View file

@ -1,2 +0,0 @@
*
!.gitignore

View file

@ -20,6 +20,6 @@
"url": "https://github.com/Rudloff/alltube.git"
},
"scripts": {
"postinstall": "./node_modules/bower/bin/bower install; ./node_modules/grunt-cli/bin/grunt; curl http://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz -o ffmpeg.tar.xz; tar xJf ffmpeg.tar.xz -C ffmpeg --strip-components=1"
"postinstall": "./node_modules/bower/bin/bower install; ./node_modules/grunt-cli/bin/grunt"
}
}