Error when trying to convert a remux format
This commit is contained in:
parent
b2a43f0065
commit
eab4b1f914
1 changed files with 4 additions and 0 deletions
|
@ -405,6 +405,10 @@ class Downloader
|
||||||
throw new InvalidProtocolConversionException($video->protocol);
|
throw new InvalidProtocolConversionException($video->protocol);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (count($video->getUrl()) > 1) {
|
||||||
|
throw new RemuxException('Can not convert and remux at the same time.');
|
||||||
|
}
|
||||||
|
|
||||||
$avconvProc = $this->getAvconvProcess($video, $audioBitrate, $filetype, $audioOnly, $from, $to);
|
$avconvProc = $this->getAvconvProcess($video, $audioBitrate, $filetype, $audioOnly, $from, $to);
|
||||||
|
|
||||||
$stream = popen($avconvProc->getCommandLine(), 'r');
|
$stream = popen($avconvProc->getCommandLine(), 'r');
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue