Error when trying to convert a remux format

This commit is contained in:
Pierre Rudloff 2020-06-21 12:15:45 +02:00
parent b2a43f0065
commit eab4b1f914

View file

@ -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');