|
@@ -191,7 +191,7 @@ public class VideoUtil {
|
|
|
LogUtil.println(TAG, filePath, clipPoint, clipDuration);
|
|
LogUtil.println(TAG, filePath, clipPoint, clipDuration);
|
|
|
String outFilePath = getCutVideoFilePath(filePath, clipPoint, clipDuration);
|
|
String outFilePath = getCutVideoFilePath(filePath, clipPoint, clipDuration);
|
|
|
video.setFilePath(outFilePath);
|
|
video.setFilePath(outFilePath);
|
|
|
- video.setDuration(clipDuration);
|
|
|
|
|
|
|
+ video.setDuration(clipDuration / 1000);
|
|
|
//开始剪切
|
|
//开始剪切
|
|
|
EpVideo epVideo = new EpVideo(filePath);
|
|
EpVideo epVideo = new EpVideo(filePath);
|
|
|
//输出选项,参数为输出文件路径(目前仅支持mp4格式输出)
|
|
//输出选项,参数为输出文件路径(目前仅支持mp4格式输出)
|