From a69b556dc18d70bc69b1233886943f0d267bb074 Mon Sep 17 00:00:00 2001 From: jmal Date: Wed, 17 Jul 2024 10:55:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dnvidia=E8=BD=AC?= =?UTF-8?q?=E7=A0=81=E5=A4=B1=E8=B4=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/jmal/clouddisk/video/FFMPEGCommand.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/jmal/clouddisk/video/FFMPEGCommand.java b/src/main/java/com/jmal/clouddisk/video/FFMPEGCommand.java index 1b9721ce..c907709e 100644 --- a/src/main/java/com/jmal/clouddisk/video/FFMPEGCommand.java +++ b/src/main/java/com/jmal/clouddisk/video/FFMPEGCommand.java @@ -211,11 +211,11 @@ static ProcessBuilder useNvencCuda(String fileId, Path fileAbsolutePath, int bit "-hwaccel", "cuda", "-hwaccel_output_format", "cuda", "-threads", "1", + "-autorotate", "0", "-i", fileAbsolutePath.toString(), "-autoscale", "0", "-map_metadata", "-1", "-map_chapters", "-1", - "-autorotate", "0", "-threads", "0", "-map", "0:0", "-map", "0:1", @@ -245,7 +245,6 @@ static ProcessBuilder useNvencCuda(String fileId, Path fileAbsolutePath, int bit outputPath ); } - static ProcessBuilder useNvencCudaVtt(Path fileAbsolutePath, int vttInterval, String thumbnailPattern) { // 使用CUDA硬件加速和NVENC编码器 return new ProcessBuilder(