add 30fps limiter
it's probably gonna get re-rendered anyway
This commit is contained in:
parent
0c459a0709
commit
5546481191
1 changed files with 4 additions and 0 deletions
4
pack-vid
4
pack-vid
|
@ -145,10 +145,13 @@ function convert( $src, $dest, $options ) {
|
||||||
}
|
}
|
||||||
$vf = implode( ',', $filters );
|
$vf = implode( ',', $filters );
|
||||||
|
|
||||||
|
$fps = 30;
|
||||||
|
|
||||||
run( 'ffmpeg',
|
run( 'ffmpeg',
|
||||||
array_merge( [
|
array_merge( [
|
||||||
'-i', $src,
|
'-i', $src,
|
||||||
'-f', 'mp4',
|
'-f', 'mp4',
|
||||||
|
'-r', $fps,
|
||||||
'-vf', $vf,
|
'-vf', $vf,
|
||||||
'-c:v', 'libx264',
|
'-c:v', 'libx264',
|
||||||
'-b:v', $bitrate,
|
'-b:v', $bitrate,
|
||||||
|
@ -163,6 +166,7 @@ function convert( $src, $dest, $options ) {
|
||||||
array_merge( [
|
array_merge( [
|
||||||
'-i', $src,
|
'-i', $src,
|
||||||
'-vf', $vf,
|
'-vf', $vf,
|
||||||
|
'-r', $fps,
|
||||||
'-c:v', 'libx264',
|
'-c:v', 'libx264',
|
||||||
'-b:v', $bitrate,
|
'-b:v', $bitrate,
|
||||||
'-preset', 'veryslow',
|
'-preset', 'veryslow',
|
||||||
|
|
Loading…
Reference in a new issue