Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MyCode{
- public static void main(String[] args){
- Runtime runtime = Runtime.getRuntime();
- Process process = runtime.exec("C:\Usersmg\Desktop\test\ffmpeg -i C:\Usersmg\Desktop\test\video.mp4 -vf blackdetect=d=0.1:pix_th=.1 -an -f null 2> C:\Usersmg\Desktop\test\output.txt C:\Usersmg\Desktop\test");
- BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
- int exitCode = process.waitFor();
- System.out.println(exitCode);
- }
Add Comment
Please, Sign In to add comment