|
@@ -21,7 +21,7 @@ public class VideoUtil {
|
|
|
List<String> voidTS = new ArrayList<>();
|
|
|
|
|
|
for (String fromVideoFile : fromVideoFileList) {
|
|
|
- String format = "%s -y -i %s -vcodec copy -f mpegts %s";
|
|
|
+ String format = "%s -y -i %s -vcodec h264 -f mpegts %s";
|
|
|
String name = UUID.randomUUID().toString().replace("-","");
|
|
|
String command = String.format(format, "ffmpeg", fromVideoFile, newVideoFile +"/"+name + ".ts");
|
|
|
ShellUtil.execCmd(command);
|