Skip to content

Commit

Permalink
fix: 修复nvidia转码失败的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed Jul 17, 2024
1 parent fa788c3 commit a69b556
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/com/jmal/clouddisk/video/FFMPEGCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit a69b556

Please sign in to comment.