work around sometimes prob with 2-pass encoding
using mp4 muxer in place of null and not playign audio games seems to help
This commit is contained in:
parent
3d89f8409c
commit
114a105d1c
1 changed files with 14 additions and 12 deletions
26
pack-vid
26
pack-vid
|
@ -142,18 +142,20 @@ function convert( $src, $dest, $options ) {
|
||||||
}
|
}
|
||||||
$vf = implode( ',', $filters );
|
$vf = implode( ',', $filters );
|
||||||
|
|
||||||
run( 'ffmpeg', [
|
run( 'ffmpeg',
|
||||||
'-i', $src,
|
array_merge( [
|
||||||
'-f', 'null',
|
'-i', $src,
|
||||||
'-vf', $vf,
|
'-f', 'mp4',
|
||||||
'-c:v', 'libx264',
|
'-vf', $vf,
|
||||||
'-b:v', $bitrate,
|
'-c:v', 'libx264',
|
||||||
'-preset', 'veryslow',
|
'-b:v', $bitrate,
|
||||||
'-pass', '1',
|
'-preset', 'veryslow',
|
||||||
'-g', $keyframeInt,
|
'-pass', '1',
|
||||||
'-an',
|
'-g', $keyframeInt,
|
||||||
'-y', '/dev/null'
|
], $audio, [
|
||||||
] );
|
'-y', '/dev/null'
|
||||||
|
] )
|
||||||
|
);
|
||||||
run( 'ffmpeg',
|
run( 'ffmpeg',
|
||||||
array_merge( [
|
array_merge( [
|
||||||
'-i', $src,
|
'-i', $src,
|
||||||
|
|
Loading…
Reference in a new issue