Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Aug 26, 2024
1 parent 13ccd9a commit a441824
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions objects/Format.php
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,7 @@ private static function getDynamicCommandFromFormat($pathFileName, $encoder_queu
continue;
}
if (!empty(Format::ENCODING_SETTINGS[$resolution])) {
_error_log("Encoder:Format:: getDynamicCommandFromFormat line=".__LINE__);
$settings = Format::ENCODING_SETTINGS[$resolution];

$bitrate = $settings['maxrate']; // Assign maxrate as the bitrate
Expand All @@ -637,6 +638,7 @@ private static function getDynamicCommandFromFormat($pathFileName, $encoder_queu
$bufsize = $settings['bufsize']; // Assign bufsize
$audioBitrate = $settings['audioBitrate']; // Assign audioBitrate
} else {
_error_log("Encoder:Format:: getDynamicCommandFromFormat line=".__LINE__);
$bitrate = 1500; // Default bitrate
$minrate = 1000; // Default minrate
$maxrate = 1500; // Default maxrate
Expand All @@ -659,6 +661,7 @@ private static function getDynamicCommandFromFormat($pathFileName, $encoder_queu
_error_log("Encoder:Format:: getDynamicCommandFromFormat destination file is empty 2");
return '';
}
_error_log("Encoder:Format:: getDynamicCommandFromFormat line=".__LINE__);
$code = ' -codec:v libx264 -movflags faststart -y {$destinationFile} ';
eval("\$command .= \" $code\";");
}
Expand Down

0 comments on commit a441824

Please sign in to comment.