|
@@ -3,6 +3,7 @@ package com.fdkankan.web.controller;
|
|
|
import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fdkankan.common.api.BaseController;
|
|
|
+import com.fdkankan.common.constant.Constant;
|
|
|
import com.fdkankan.common.exception.BaseRuntimeException;
|
|
|
import com.fdkankan.common.model.ViewResult;
|
|
|
import com.fdkankan.scene.util.CreateObjUtil;
|
|
@@ -39,9 +40,14 @@ public class TestController extends BaseController {
|
|
|
@ApiOperation("获取")
|
|
|
@GetMapping("/test2")
|
|
|
public void test2() throws Exception {
|
|
|
- String url = "/mnt/4Dkankan/scene/video/videoHDdAupM0Px/0.mp4";
|
|
|
- String ip = "127.0.0.1";
|
|
|
- CreateObjUtil.generateShareVideo(url, ip);
|
|
|
+ String videoPath = "videoPath";
|
|
|
+ String fileName = "fileName";
|
|
|
+ String fileFolderPath = "fileFolderPath";
|
|
|
+
|
|
|
+ String command = "bash /monchickey/ffmpeg/bin/ff_rotVwatermark.sh " + videoPath + " " + Constant.WATER_MARK_PATH
|
|
|
+ + " " + fileName + Constant.SCENE_VIDEO_SHARE_SUFFIX
|
|
|
+ + " " + fileFolderPath.substring(0, fileFolderPath.length() - 1);
|
|
|
+ System.out.println(command);
|
|
|
}
|
|
|
|
|
|
|