Guest User

Untitled

a guest
Nov 15th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. import java.io.IOException;
  2.  
  3. public static void main(String[] args) {
  4.  
  5. /*String cmd = "cmd /c ffmpeg.exe -i D:\test\xyz.mov D:\test\xyz.mp4 & del D:\EP\*.cap D:\EP\*.mov /f /s /q";
  6. Process p = Runtime.getRuntime().exec(cmd);*/
  7.  
  8. String cmd = "/usr/local/Cellar/ffmpeg/3.4/bin/ffmpeg -i "
  9. + "/Users/testuser/test/i.mov" + " " + "/Users/testuser/test/o.mov"; //+" && rm -rf "+infileName +" " +capfileName ;
  10. System.out.println("CMD TO EXECUTE : " + cmd);
  11.  
  12. try {
  13. Process p = Runtime.getRuntime().exec(cmd);
  14. } catch (IOException e) {
  15. // TODO Auto-generated catch block
  16. e.printStackTrace();
  17. }
  18. }
Add Comment
Please, Sign In to add comment