Media Downloader stability fixes

This commit is contained in:
DarkKnight2122
2026-04-20 04:00:35 +05:30
parent 61dcfd9b57
commit 4bd13a9d09
2 changed files with 86 additions and 41 deletions

View File

@@ -169,6 +169,7 @@ class FFMpegProcessor(
Action.MERGE_OVERLAY -> {
inputArguments += "-i" to args.overlay!!.absolutePath
outputArguments += "-filter_complex" to "\"[1:v][0:v]scale2ref=w=iw:h=ih[ovrl][main];[main][ovrl]overlay=(W-w)/2:(H-h)/2,scale=2*trunc(iw/2):2*trunc(ih/2)\""
outputArguments += "-shortest" to ""
}
Action.CONVERSION -> {
if (ffmpegOptions.customAudioCodec.isEmpty()) {