feat: ffmpeg hardware acceleration (#899)

* Bump threads to 4 (20-30% CPU Increase)
+ Add -hwaccel auto flag
This commit is contained in:
TheVisual
2024-04-14 08:54:58 -05:00
committed by GitHub
parent 55d76d23a6
commit 7af0e1e558
2 changed files with 2 additions and 1 deletions

View File

@@ -115,6 +115,7 @@ class FFMpegProcessor(
// load ffmpeg native sync to avoid native crash
synchronized(this) { FFmpegKit.listSessions() }
val globalArguments = ArgumentList().apply {
this += "-hwaccel auto" //Use hwaccel If Available
this += "-y"
this += "-threads" to ffmpegOptions.threads.get().toString()
}