|
@@ -31,17 +31,4 @@ public class FfmpegUtilController {
|
|
|
public CommonResponse<String> fetchKeyFrames(@RequestBody FetchKeyFramesParam fetchKeyFramesParam) {
|
|
|
return ffmpegUtilService.fetchKeyFrames(fetchKeyFramesParam);
|
|
|
}
|
|
|
-
|
|
|
- @PostMapping("/test")
|
|
|
- public CommonResponse<String> test(@RequestBody FetchKeyFramesParam fetchKeyFramesParam) {
|
|
|
- String imageFolder = imagePath + "/" + UUID.randomUUID();
|
|
|
- File dir = new File(imageFolder);
|
|
|
- if (!dir.exists()) {
|
|
|
- boolean mkdir = dir.mkdir();
|
|
|
- }
|
|
|
- String imagePath = imageFolder + "/" + "%04d.jpg";
|
|
|
- FfmpegUtil.getTargetThumbnail("http://rescdn.yishihui.com/long_articles/video/8b4b2e6a-e556-4d06-8b4e-65a25654ebce", imagePath);
|
|
|
- return CommonResponse.create("ok");
|
|
|
- }
|
|
|
-
|
|
|
}
|