public void fileTom3u8(Video video){
//
videosetStatus(2);
videoServiceupdate(video);
String fileName = StringvalueOf(SystemcurrentTimeMillis());
String dest = ConfiguegetUploadUrl()+ UploadUtilgetImagesUpladPath() + fileName + "m3u8"; // 目标文件
// 调用bat文件转换流化视频
String batpath = "cmd /c start " + ConfiguegetFfmpegPath() + "ffmpegexe -i";
// 加参数
batpath += " " + ConfiguegetUploadUrl() + "/" + videogetPath();
batpath += " -c:v libx264 -c:a aac -strict -2 -f hls -hls_list_size 0 ";
batpath += " " + ConfiguegetUploadPath() + UploadUtilgetImagesUpladPath() + fileName + "m3u8";
CommonUtilsrunbat(batpath);
videosetStreamingPath(UploadUtilgetImagesUpladPath() + fileName + "m3u8");
videosetStatus(1);
videoServiceupdate(video);
Systemoutprintln(batpath);
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)