MainActivity: use ultrafast preset for ffmpeg

This commit is contained in:
dece 2021-03-17 18:34:38 +01:00
parent 9ed8dc274c
commit 89b9736403

View file

@ -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"
) )