Skip to content

Commit

Permalink
perf: 优化视频封面的生成
Browse files Browse the repository at this point in the history
  • Loading branch information
jamebal committed Mar 27, 2024
1 parent b9abd3a commit f0af225
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ private static ProcessBuilder getVideoCoverProcessBuilder(String videoPath, Stri
ProcessBuilder processBuilder = new ProcessBuilder(
Constants.FFMPEG,
"-i", videoPath,
"-vf", "scale='min(320,iw)':-1",
"-vf", "thumbnail,scale='min(320,iw)':-1",
"-frames:v", "1",
outputPath
);
Expand Down

0 comments on commit f0af225

Please sign in to comment.