|
@@ -578,6 +578,13 @@ public class CreateObjUtil {
|
|
|
log.info("mp4文件转换成flv文件完毕:" + command);
|
|
|
}
|
|
|
|
|
|
+ public static void formatMp4(String oldVideo, String newVideo) throws Exception{
|
|
|
+ String command = ConstantCmd.FORMAT_MP4 + " " + oldVideo + " " + newVideo;
|
|
|
+ log.info("mp4格式转换开始:{}", command);
|
|
|
+ callshell(command);
|
|
|
+ log.info("mp4格式转换完毕:{}", command);
|
|
|
+ }
|
|
|
+
|
|
|
//删除/mnt/data/下的数据
|
|
|
public static void deleteFile(String filePath) throws Exception{
|
|
|
String command = ConstantCmd.DELETE_FILE + " " + filePath;
|