mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-06 03:50:04 +02:00
Fix
This commit is contained in:
parent
2b35df7ad7
commit
44f46b1094
1 changed files with 4 additions and 4 deletions
|
@ -7028,10 +7028,6 @@ function convertVideoFileWithFFMPEG($fromFileLocation, $toFileLocation, $try = 0
|
|||
}
|
||||
|
||||
switch ($try) {
|
||||
case 'offline':
|
||||
//$command = get_ffmpeg() . " -i {$fromFileLocationEscaped} -vcodec libx265 -crf 28 {$toFileLocationEscaped}";
|
||||
$command = get_ffmpeg() . " -i {$fromFileLocationEscaped} -crf 30 {$toFileLocationEscaped}";
|
||||
break;
|
||||
case 0:
|
||||
$command = get_ffmpeg() . " -i {$fromFileLocationEscaped} -c copy {$toFileLocationEscaped}";
|
||||
break;
|
||||
|
@ -7041,6 +7037,10 @@ function convertVideoFileWithFFMPEG($fromFileLocation, $toFileLocation, $try = 0
|
|||
case 2:
|
||||
$command = get_ffmpeg() . " -y -i {$fromFileLocationEscaped} -c:v copy -c:a copy -bsf:a aac_adtstoasc -strict -2 {$toFileLocationEscaped}";
|
||||
break;
|
||||
case 'offline':
|
||||
//$command = get_ffmpeg() . " -i {$fromFileLocationEscaped} -vcodec libx265 -crf 28 {$toFileLocationEscaped}";
|
||||
$command = get_ffmpeg() . " -i {$fromFileLocationEscaped} -crf 30 {$toFileLocationEscaped}";
|
||||
break;
|
||||
default:
|
||||
return false;
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue