|
@@ -25,6 +25,7 @@
|
|
|
package com.tzld.crawler.etl.util;
|
|
|
|
|
|
import com.tzld.crawler.etl.model.dto.VideoInfoDto;
|
|
|
+import net.bramp.ffmpeg.FFmpeg;
|
|
|
import net.bramp.ffmpeg.FFprobe;
|
|
|
import net.bramp.ffmpeg.probe.FFmpegFormat;
|
|
|
import net.bramp.ffmpeg.probe.FFmpegProbeResult;
|
|
@@ -32,6 +33,8 @@ import net.bramp.ffmpeg.probe.FFmpegStream;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
|
+import java.io.IOException;
|
|
|
+
|
|
|
/**
|
|
|
* @author ehlxr
|
|
|
* @since 2023-06-26 18:01.
|
|
@@ -57,4 +60,13 @@ public class VideoUtils {
|
|
|
return null;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ public static void videoCompose(String videoPath, String audioPath, String outPath) {
|
|
|
+ try {
|
|
|
+ FFmpeg ffmpeg = new FFmpeg("ffmpeg");
|
|
|
+ // ffmpeg.
|
|
|
+ } catch (IOException e) {
|
|
|
+ throw new RuntimeException(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|