|
@@ -82,7 +82,7 @@ public class VideoUtil {
|
|
|
|
|
|
for (String fromVideoFile : fromVideoFileList) {
|
|
for (String fromVideoFile : fromVideoFileList) {
|
|
String format = "%s -y -i %s -vcodec copy -bsf:v h264_mp4toannexb -f mpegts %s";
|
|
String format = "%s -y -i %s -vcodec copy -bsf:v h264_mp4toannexb -f mpegts %s";
|
|
- String name = fromVideoFile.substring(0, fromVideoFile.lastIndexOf("."));
|
|
|
|
|
|
+ String name = UUID.randomUUID().toString().replace("-","");
|
|
String command = String.format(format, "ffmpeg", fromVideoFile, newVideoFile +"/"+name + ".ts");
|
|
String command = String.format(format, "ffmpeg", fromVideoFile, newVideoFile +"/"+name + ".ts");
|
|
execCommand(command);
|
|
execCommand(command);
|
|
voidTS.add(name + ".ts");
|
|
voidTS.add(name + ".ts");
|