|
@@ -1,6 +1,7 @@
|
|
|
package com.face.video.cmd;
|
|
|
|
|
|
import java.io.BufferedReader;
|
|
|
+import java.io.File;
|
|
|
import java.io.IOException;
|
|
|
|
|
|
|
|
@@ -11,7 +12,7 @@ public class videoCmd {
|
|
|
String ffmpegPath = "D:\\program\\ffmpeg\\ffmpeg-4.3.1-2021-01-01-essentials_build\\bin\\ffmpeg.exe";
|
|
|
|
|
|
// String cmd = ffmpegPath + " -ss 0:05 -i e:/20211223123223_76639ced-6400-11ec-b8f9-fa163e4e1e9f.mp4 -t 10 -c:v copy -c:a copy e:/555.mp4 ";
|
|
|
- String cmd = ffmpegPath + " -y -i e:/555.mp4 e:/aa/%04d.jpg";
|
|
|
+ String cmd = ffmpegPath + " -y -i e:/20211223123223_76639ced-6400-11ec-b8f9-fa163e4e1e9f.mp4 -r 24 e:/aa/%04d.jpg";
|
|
|
|
|
|
|
|
|
// 执行命令
|
|
@@ -24,7 +25,9 @@ public class videoCmd {
|
|
|
}
|
|
|
}
|
|
|
public static void main(String[] args) {
|
|
|
- new videoCmd().exe();
|
|
|
+ File saveDir= new File("e;/aa/");
|
|
|
+ System.out.println(saveDir);
|
|
|
+ //new videoCmd().exe();
|
|
|
}
|
|
|
|
|
|
|