|
@@ -91,7 +91,6 @@ public class VideoUtil {
|
|
StringBuilder tsPath = new StringBuilder();
|
|
StringBuilder tsPath = new StringBuilder();
|
|
tsPath.append("ffmpeg");
|
|
tsPath.append("ffmpeg");
|
|
tsPath.append(" -i ");
|
|
tsPath.append(" -i ");
|
|
- tsPath.append("'");
|
|
|
|
tsPath.append("concat:");
|
|
tsPath.append("concat:");
|
|
for (int t = 0; t < voidTS.size(); t++) {
|
|
for (int t = 0; t < voidTS.size(); t++) {
|
|
if (t != voidTS.size() - 1) {
|
|
if (t != voidTS.size() - 1) {
|
|
@@ -100,14 +99,13 @@ public class VideoUtil {
|
|
tsPath.append(voidTS.get(t));
|
|
tsPath.append(voidTS.get(t));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- tsPath.append("'");
|
|
|
|
tsPath.append(" -vcodec ");
|
|
tsPath.append(" -vcodec ");
|
|
tsPath.append(" copy ");
|
|
tsPath.append(" copy ");
|
|
tsPath.append(" -bsf:a ");
|
|
tsPath.append(" -bsf:a ");
|
|
tsPath.append(" aac_adtstoasc ");
|
|
tsPath.append(" aac_adtstoasc ");
|
|
tsPath.append(" -movflags ");
|
|
tsPath.append(" -movflags ");
|
|
tsPath.append(" +faststart ");
|
|
tsPath.append(" +faststart ");
|
|
- tsPath.append(newVideoFile +"/"+fileName);
|
|
|
|
|
|
+ tsPath.append(newVideoFile).append("/").append(fileName);
|
|
CreateObjUtil.callshell(tsPath.toString());
|
|
CreateObjUtil.callshell(tsPath.toString());
|
|
//删除生成的ts文件
|
|
//删除生成的ts文件
|
|
for (String filePath : voidTS) {
|
|
for (String filePath : voidTS) {
|