feat: ffmpeg hardware acceleration (#899)
* Bump threads to 4 (20-30% CPU Increase) + Add -hwaccel auto flag
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user