From 4db519c2ef0fae3346ccf6e39d88820e0aa1614d Mon Sep 17 00:00:00 2001 From: Pierre Rudloff Date: Sun, 21 Apr 2019 22:40:54 +0200 Subject: [PATCH] fixup! fix: Don't use the $url property --- classes/Video.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/classes/Video.php b/classes/Video.php index 02f308c..079cf96 100644 --- a/classes/Video.php +++ b/classes/Video.php @@ -354,6 +354,8 @@ class Video $afterArguments[] = $to; } + $urls = $this->getUrl(); + $arguments = array_merge( [ $this->config->avconv, @@ -361,7 +363,7 @@ class Video ], $this->getRtmpArguments(), [ - '-i', $this->getUrl(), + '-i', $urls[0], '-f', $filetype, '-b:a', $audioBitrate.'k', ], @@ -428,11 +430,13 @@ class Video throw new Exception(_('Can\'t find avconv or ffmpeg at ').$this->config->avconv.'.'); } + $urls = $this->getUrl(); + $process = new Process( [ $this->config->avconv, '-v', $this->config->avconvVerbosity, - '-i', $this->getUrl(), + '-i', $urls[0], '-f', $this->ext, '-c', 'copy', '-bsf:a', 'aac_adtstoasc', @@ -495,6 +499,8 @@ class Video */ public function getRtmpStream() { + $urls = $this->getUrl(); + $process = new Process( array_merge( [ @@ -503,7 +509,7 @@ class Video ], $this->getRtmpArguments(), [ - '-i', $this->getUrl(), + '-i', $urls[0], '-f', $this->ext, 'pipe:1', ]