|
@@ -19,7 +19,6 @@ import com.fdkankan.fusion.service.*;
|
|
|
import com.fdkankan.redis.util.RedisUtil;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.apache.ibatis.annotations.Case;
|
|
|
-import org.bytedeco.javacv.FFmpegFrameGrabber;
|
|
|
import org.springframework.beans.BeanUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
@@ -113,12 +112,4 @@ public class TestController {
|
|
|
return ResultData.ok();
|
|
|
}
|
|
|
|
|
|
- public static void main(String[] args) throws Exception{
|
|
|
- String videoPath = "D:\\abc\\thread__30451767_20240914102646_57677_wz_transcode.mp4";
|
|
|
- FFmpegFrameGrabber fFmpegFrameGrabber = new FFmpegFrameGrabber(videoPath);
|
|
|
- fFmpegFrameGrabber.start();
|
|
|
- int videoCodec = fFmpegFrameGrabber.getVideoCodec();
|
|
|
- String videoCodecName = fFmpegFrameGrabber.getVideoCodecName();
|
|
|
- System.out.println(videoCodec +":"+videoCodecName);
|
|
|
- }
|
|
|
}
|