MainActivity: use ultrafast preset for ffmpeg
This commit is contained in:
parent
9ed8dc274c
commit
89b9736403
|
@ -203,6 +203,7 @@ class MainActivity : AppCompatActivity() {
|
||||||
val command = (
|
val command = (
|
||||||
"-i $videoPath -i $audioPath"
|
"-i $videoPath -i $audioPath"
|
||||||
+ " -filter_complex amix=duration=longest"
|
+ " -filter_complex amix=duration=longest"
|
||||||
|
+ " -preset ultrafast"
|
||||||
+ " -c:v libx264 -crf 26 -vf scale=$width:trunc(ow/a/2)*2 -pix_fmt yuv420p"
|
+ " -c:v libx264 -crf 26 -vf scale=$width:trunc(ow/a/2)*2 -pix_fmt yuv420p"
|
||||||
+ " $durationOpt -y $outputPath"
|
+ " $durationOpt -y $outputPath"
|
||||||
)
|
)
|
||||||
|
|
Reference in a new issue