Use local rtmpdump
This commit is contained in:
parent
00dd04e60b
commit
57a1674f4b
5 changed files with 39 additions and 5 deletions
|
@ -34,6 +34,7 @@ class Config
|
||||||
public $params = array('--no-playlist', '--no-warnings', '-f best[protocol^=http]', '--playlist-end', 1);
|
public $params = array('--no-playlist', '--no-warnings', '-f best[protocol^=http]', '--playlist-end', 1);
|
||||||
public $convert = false;
|
public $convert = false;
|
||||||
public $avconv = 'vendor/bin/ffmpeg';
|
public $avconv = 'vendor/bin/ffmpeg';
|
||||||
|
public $rtmpdump = 'vendor/bin/rtmpdump';
|
||||||
public $curl_params = array();
|
public $curl_params = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -13,7 +13,8 @@
|
||||||
"symfony/process": "~3.0.0",
|
"symfony/process": "~3.0.0",
|
||||||
"ptachoire/process-builder-chain": "~1.2.0",
|
"ptachoire/process-builder-chain": "~1.2.0",
|
||||||
"ffmpeg/ffmpeg": "dev-release",
|
"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": {
|
"require-dev": {
|
||||||
"symfony/var-dumper": "~3.0.0"
|
"symfony/var-dumper": "~3.0.0"
|
||||||
|
@ -49,6 +50,9 @@
|
||||||
"ffmpeg"
|
"ffmpeg"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
}, {
|
||||||
|
"type": "git",
|
||||||
|
"url": "https://github.com/Rudloff/rtmpdump-bin.git"
|
||||||
}],
|
}],
|
||||||
"authors": [{
|
"authors": [{
|
||||||
"name": "Pierre Rudloff",
|
"name": "Pierre Rudloff",
|
||||||
|
|
34
composer.lock
generated
34
composer.lock
generated
|
@ -4,8 +4,8 @@
|
||||||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
|
||||||
"This file is @generated automatically"
|
"This file is @generated automatically"
|
||||||
],
|
],
|
||||||
"hash": "d8b87df7911542ff8a9c7323fcc22949",
|
"hash": "1556bc08c5018e6085a715a783097d9d",
|
||||||
"content-hash": "52dc356edd823568af9aca1e95032cfd",
|
"content-hash": "91451f1d1fc10a7b09efb3511e4b7324",
|
||||||
"packages": [
|
"packages": [
|
||||||
{
|
{
|
||||||
"name": "container-interop/container-interop",
|
"name": "container-interop/container-interop",
|
||||||
|
@ -408,6 +408,33 @@
|
||||||
},
|
},
|
||||||
"type": "library"
|
"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",
|
"name": "rudloff/smarty-plugin-noscheme",
|
||||||
"version": "0.1.1",
|
"version": "0.1.1",
|
||||||
|
@ -797,7 +824,8 @@
|
||||||
"aliases": [],
|
"aliases": [],
|
||||||
"minimum-stability": "stable",
|
"minimum-stability": "stable",
|
||||||
"stability-flags": {
|
"stability-flags": {
|
||||||
"ffmpeg/ffmpeg": 20
|
"ffmpeg/ffmpeg": 20,
|
||||||
|
"rudloff/rtmpdump-bin": 20
|
||||||
},
|
},
|
||||||
"prefer-stable": false,
|
"prefer-stable": false,
|
||||||
"prefer-lowest": false,
|
"prefer-lowest": false,
|
||||||
|
|
|
@ -9,3 +9,4 @@ params:
|
||||||
curl_params:
|
curl_params:
|
||||||
convert: false
|
convert: false
|
||||||
avconv: vendor/bin/ffmpeg
|
avconv: vendor/bin/ffmpeg
|
||||||
|
rtmpdump: vendor/bin/rtmpdump
|
||||||
|
|
|
@ -139,7 +139,7 @@ class FrontController
|
||||||
if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') {
|
if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') {
|
||||||
$builder = new ProcessBuilder(
|
$builder = new ProcessBuilder(
|
||||||
array(
|
array(
|
||||||
'/usr/bin/rtmpdump',
|
$this->config->rtmpdump,
|
||||||
'-q',
|
'-q',
|
||||||
'-r',
|
'-r',
|
||||||
$video->url,
|
$video->url,
|
||||||
|
|
Loading…
Reference in a new issue