Guest User

Untitled

a guest
Jun 25th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. public class MyCode{
  2. public static void main(String[] args){
  3.  
  4. Runtime runtime = Runtime.getRuntime();
  5. 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");
  6.  
  7. BufferedReader input = new BufferedReader(new InputStreamReader(process.getInputStream()));
  8.  
  9. int exitCode = process.waitFor();
  10. System.out.println(exitCode);
  11. }
Add Comment
Please, Sign In to add comment