ffmpeg
This commit is contained in:
parent
b3372c1480
commit
f0f6071ae7
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue