Use local rtmpdump

This commit is contained in:
Pierre Rudloff 2016-04-12 21:13:43 +02:00
parent 00dd04e60b
commit 57a1674f4b
5 changed files with 39 additions and 5 deletions

View file

@ -34,6 +34,7 @@ class Config
public $params = array('--no-playlist', '--no-warnings', '-f best[protocol^=http]', '--playlist-end', 1);
public $convert = false;
public $avconv = 'vendor/bin/ffmpeg';
public $rtmpdump = 'vendor/bin/rtmpdump';
public $curl_params = array();
/**

View file

@ -13,7 +13,8 @@
"symfony/process": "~3.0.0",
"ptachoire/process-builder-chain": "~1.2.0",
"ffmpeg/ffmpeg": "dev-release",
"rudloff/smarty-plugin-noscheme": "~0.1.0"
"rudloff/smarty-plugin-noscheme": "~0.1.0",
"rudloff/rtmpdump-bin": "dev-develop"
},
"require-dev": {
"symfony/var-dumper": "~3.0.0"
@ -49,6 +50,9 @@
"ffmpeg"
]
}
}, {
"type": "git",
"url": "https://github.com/Rudloff/rtmpdump-bin.git"
}],
"authors": [{
"name": "Pierre Rudloff",

34
composer.lock generated
View file

@ -4,8 +4,8 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
"This file is @generated automatically"
],
"hash": "d8b87df7911542ff8a9c7323fcc22949",
"content-hash": "52dc356edd823568af9aca1e95032cfd",
"hash": "1556bc08c5018e6085a715a783097d9d",
"content-hash": "91451f1d1fc10a7b09efb3511e4b7324",
"packages": [
{
"name": "container-interop/container-interop",
@ -408,6 +408,33 @@
},
"type": "library"
},
{
"name": "rudloff/rtmpdump-bin",
"version": "dev-develop",
"source": {
"type": "git",
"url": "https://github.com/Rudloff/rtmpdump-bin.git",
"reference": "c701e4f7cfae2ffbe6ab898768d27301d537d4c3"
},
"require-dev": {
"rtmpdump/rtmpdump": "2.3"
},
"bin": [
"rtmpdump"
],
"type": "library",
"scripts": {
"build": [
"cd vendor/rtmpdump/rtmpdump/ && make",
"cp vendor/rtmpdump/rtmpdump/rtmpdump ."
]
},
"license": [
"GPL-2.0"
],
"description": "rtmpdump binary for Linux 64 bit",
"time": "2016-04-12 18:52:03"
},
{
"name": "rudloff/smarty-plugin-noscheme",
"version": "0.1.1",
@ -797,7 +824,8 @@
"aliases": [],
"minimum-stability": "stable",
"stability-flags": {
"ffmpeg/ffmpeg": 20
"ffmpeg/ffmpeg": 20,
"rudloff/rtmpdump-bin": 20
},
"prefer-stable": false,
"prefer-lowest": false,

View file

@ -9,3 +9,4 @@ params:
curl_params:
convert: false
avconv: vendor/bin/ffmpeg
rtmpdump: vendor/bin/rtmpdump

View file

@ -139,7 +139,7 @@ class FrontController
if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') {
$builder = new ProcessBuilder(
array(
'/usr/bin/rtmpdump',
$this->config->rtmpdump,
'-q',
'-r',
$video->url,