commit 631c0445009e2ff752ffb602d3a7f94291062338 parent 9b10573eb1a8452cf9bce1ba236e95f23e20ed67 Author: rhunk <101876869+rhunk@users.noreply.github.com> Date: Tue, 30 Apr 2024 00:23:43 +0200 fix(ffmpeg_processor): custom video codec Diffstat:
M | app/src/main/kotlin/me/rhunk/snapenhance/download/FFMpegProcessor.kt | | | 2 | +- |
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/src/main/kotlin/me/rhunk/snapenhance/download/FFMpegProcessor.kt b/app/src/main/kotlin/me/rhunk/snapenhance/download/FFMpegProcessor.kt @@ -115,7 +115,7 @@ class FFMpegProcessor( // load ffmpeg native sync to avoid native crash synchronized(this) { FFmpegKit.listSessions() } val globalArguments = ArgumentList().apply { - this += "-hwaccel mediacodec" //Use hwaccel If Available + this += "-hwaccel ${if (ffmpegOptions.customVideoCodec.get().isNotEmpty()) "auto" else "mediacodec"}" //Use hwaccel If Available this += "-y" this += "-threads" to ffmpegOptions.threads.get().toString() }