Skip to content

Commit

Permalink
Merge pull request #138 from jamebal/develop
Browse files Browse the repository at this point in the history
fix: 修复nvidia转码失败的问题
  • Loading branch information
jamebal authored Jul 17, 2024
2 parents 2da37ae + a69b556 commit 1d9cc1d
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 1d9cc1d

Please sign in to comment.