Stop installing ffmpeg and phantomjs with Composer

It is convenient but this a the job of the OS package manager
This commit is contained in:
Pierre Rudloff 2020-06-22 23:16:42 +02:00
parent a518e3b7b3
commit f90a08e89c
4 changed files with 5 additions and 75 deletions

View file

@ -74,14 +74,14 @@ class Config
* *
* @var string * @var string
*/ */
public $avconv = 'vendor/bin/ffmpeg'; public $avconv = '/usr/bin/ffmpeg';
/** /**
* Path to the directory that contains the phantomjs binary. * Path to the directory that contains the phantomjs binary.
* *
* @var string * @var string
*/ */
public $phantomjsDir = 'vendor/bin/'; public $phantomjsDir = '/usr/bin/';
/** /**
* Disable URL rewriting. * Disable URL rewriting.

View file

@ -7,10 +7,8 @@
"require": { "require": {
"ext-intl": "*", "ext-intl": "*",
"ext-json": "*", "ext-json": "*",
"anam/phantomjs-linux-x86-binary": "^2.1",
"aura/session": "^2.1", "aura/session": "^2.1",
"barracudanetworks/archivestream-php": "^1.0", "barracudanetworks/archivestream-php": "^1.0",
"ffmpeg/ffmpeg": "^4.1",
"jawira/case-converter": "^3.4", "jawira/case-converter": "^3.4",
"jean85/pretty-package-versions": "^1.3", "jean85/pretty-package-versions": "^1.3",
"mathmarques/smarty-view": "^1.1", "mathmarques/smarty-view": "^1.1",
@ -50,20 +48,6 @@
"url": "https://github.com/ytdl-org/youtube-dl/archive/2020.06.16.1.zip" "url": "https://github.com/ytdl-org/youtube-dl/archive/2020.06.16.1.zip"
} }
} }
},
{
"type": "package",
"package": {
"name": "ffmpeg/ffmpeg",
"version": "4.1.4",
"dist": {
"url": "https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.1.4-amd64-static.tar.xz",
"type": "xz"
},
"bin": [
"ffmpeg"
]
}
} }
], ],
"authors": [ "authors": [

56
composer.lock generated
View file

@ -4,50 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "4468e4da3c9a9626c997b0da8be455ae", "content-hash": "3c17df3876a2c769f866f845e4491763",
"packages": [ "packages": [
{
"name": "anam/phantomjs-linux-x86-binary",
"version": "v2.1.1",
"source": {
"type": "git",
"url": "https://github.com/anam-hossain/phantomjs-linux-x86-binary.git",
"reference": "cb90cd0e7bd4ad34f52e6834783b1c5adae15014"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/anam-hossain/phantomjs-linux-x86-binary/zipball/cb90cd0e7bd4ad34f52e6834783b1c5adae15014",
"reference": "cb90cd0e7bd4ad34f52e6834783b1c5adae15014",
"shasum": ""
},
"bin": [
"bin/phantomjs"
],
"type": "library",
"autoload": {
"psr-4": {
"Anam\\PhantomLinux\\": "/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-2-Clause"
],
"authors": [
{
"name": "Anam hossain",
"email": "enam33@gmail.com"
}
],
"description": "PhantomJS static linked binary for 64 bit linux systems. Most of Linux distributions are supported including Ubuntu, Debian, Fedora and CentOS.",
"homepage": "http://phantomjs.org/download.html",
"keywords": [
"binary",
"phantomjs",
"phantomjs binary"
],
"time": "2016-04-05T05:24:48+00:00"
},
{ {
"name": "aura/session", "name": "aura/session",
"version": "2.1.0", "version": "2.1.0",
@ -205,18 +163,6 @@
"description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)", "description": "Composer plugin that provides efficient querying for installed package versions (no runtime IO)",
"time": "2020-06-19T07:59:31+00:00" "time": "2020-06-19T07:59:31+00:00"
}, },
{
"name": "ffmpeg/ffmpeg",
"version": "4.1.4",
"dist": {
"type": "xz",
"url": "https://www.johnvansickle.com/ffmpeg/old-releases/ffmpeg-4.1.4-amd64-static.tar.xz"
},
"bin": [
"ffmpeg"
],
"type": "library"
},
{ {
"name": "guzzlehttp/guzzle", "name": "guzzlehttp/guzzle",
"version": "6.5.5", "version": "6.5.5",

View file

@ -23,13 +23,13 @@ convertAdvanced: false
convertAdvancedFormats: [mp3, avi, flv, wav] convertAdvancedFormats: [mp3, avi, flv, wav]
# Path to your avconv or ffmpeg binary # Path to your avconv or ffmpeg binary
avconv: vendor/bin/ffmpeg avconv: /usr/bin/ffmpeg
# avconv/ffmpeg logging level. # avconv/ffmpeg logging level.
avconvVerbosity: error avconvVerbosity: error
# Path to the directory that contains the phantomjs binary. # Path to the directory that contains the phantomjs binary.
phantomjsDir: vendor/bin/ phantomjsDir: /usr/bin/
# True to disable URL rewriting # True to disable URL rewriting
uglyUrls: false uglyUrls: false