Explorar o código

update FFmpegWrapper

reghao %!s(int64=2) %!d(string=hai) anos
pai
achega
fa719f2428

+ 1 - 1
media/src/main/java/cn/reghao/jutil/media/FFmpegWrapper.java

@@ -151,7 +151,7 @@ public class FFmpegWrapper {
 
     public static int covertToM3u8(String srcPath, String m3u8Path) {
         String cmd = String.format("%s -loglevel error -i '%s' -c:v libx264 -c:a aac -strict -2 " +
-                "-f hls -hls_list_size 0 -hls_time 60 '%s'", ffmpeg, srcPath, m3u8Path);
+                "-f hls -hls_list_size 0 -hls_time 10 '%s'", ffmpeg, srcPath, m3u8Path);
         return Shell.exec(cmd);
     }