This commit is contained in:
devdatt 2026-01-08 17:54:10 +05:30
parent b3372c1480
commit f0f6071ae7
1 changed files with 1 additions and 1 deletions

View File

@ -39,7 +39,7 @@ if ($_SERVER["REQUEST_METHOD"] === "POST" && $_POST["action"] === "add") {
switch ($new["video_format"]) { switch ($new["video_format"]) {
case "mpeg2video": case "mpeg2video":
$ffmpeg .= " -vf scale={$new["resolution"]} -c:v mpeg2video -pix_fmt yuv420p -b:v {$new["video_bitrate"]}k"; $ffmpeg .= " -vf scale={$new["resolution"]} -bf 2 -c:v mpeg2video -pix_fmt yuv420p -b:v {$new["video_bitrate"]}k -maxrate {$new["video_bitrate"]}k -minrate {$new["video_bitrate"]}k ";
break; break;
case "h264": case "h264":
$ffmpeg .= " -vf scale={$new["resolution"]} -c:v h264 -pix_fmt yuv420p -b:v {$new["video_bitrate"]}k"; $ffmpeg .= " -vf scale={$new["resolution"]} -c:v h264 -pix_fmt yuv420p -b:v {$new["video_bitrate"]}k";