Cleaner way to add a pipe
This commit is contained in:
parent
019fc269fe
commit
0bc5120751
1 changed files with 1 additions and 1 deletions
|
@ -309,7 +309,7 @@ class VideoDownload
|
|||
if (parse_url($video->url, PHP_URL_SCHEME) == 'rtmp') {
|
||||
$process = $this->getRtmpProcess($video);
|
||||
$chain = new Chain($process);
|
||||
$chain->add('|', $this->getAvconvMp3Process('-'));
|
||||
$chain->pipe($this->getAvconvMp3Process('-'));
|
||||
|
||||
$stream = popen($chain->getProcess()->getCommandLine(), 'r');
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue