Commit 9bac664b authored by wuzhancai's avatar wuzhancai

feature:改成2s一张抽帧图片

parent bb9af247
......@@ -138,8 +138,8 @@ public class AwemeAudioFrameOss implements PojoRequestHandler<AwemeSimpleRequest
private static List<String> putPicFrame(String url, String ossFrameFolderPath, String localFrameFolderPath, String bucketName, OSS ossClient) {
List<String> frames = new ArrayList<>();
String localFolderPath = localFrameFolderPath;
FFmpegUtil.getFramesByPic(ffmpegPath, null, null, url,localFolderPath , "1/0.5", null, null);
long halfSecond = 500L;
FFmpegUtil.getFramesByPic(ffmpegPath, null, null, url,localFolderPath , "1/2", null, null);
long halfSecond = 2000L;
File localFolderPathFile = new File(localFolderPath);
if (localFolderPathFile.exists()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment