diff --git a/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt b/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt index d2dac0d..5724633 100644 --- a/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt +++ b/app/src/main/java/io/lowrespalmtree/harvestdawn/MainActivity.kt @@ -201,7 +201,7 @@ class MainActivity : AppCompatActivity() { val command = ( "-i $videoPath -i $audioPath" + " -filter_complex amix=duration=longest" - + " -c:v libx264 -crf 26 -vf scale=$width:-1 -pix_fmt yuv420p" + + " -c:v libx264 -crf 26 -vf scale=$width:trunc(ow/a/2)*2 -pix_fmt yuv420p" + " $durationOpt -y $outputPath" ) Log.d(TAG, "Calling FFmpeg with command: $command")