From 89b973640375b0d9e6bbaadf11491486a8cdf1e9 Mon Sep 17 00:00:00 2001 From: dece Date: Wed, 17 Mar 2021 18:34:38 +0100 Subject: [PATCH] MainActivity: use ultrafast preset for ffmpeg --- app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt b/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt index 775ae61..3435651 100644 --- a/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt +++ b/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt @@ -203,6 +203,7 @@ class MainActivity : AppCompatActivity() { val command = ( "-i $videoPath -i $audioPath" + " -filter_complex amix=duration=longest" + + " -preset ultrafast" + " -c:v libx264 -crf 26 -vf scale=$width:trunc(ow/a/2)*2 -pix_fmt yuv420p" + " $durationOpt -y $outputPath" )