Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.io.IOException;
- public static void main(String[] args) {
- /*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";
- Process p = Runtime.getRuntime().exec(cmd);*/
- String cmd = "/usr/local/Cellar/ffmpeg/3.4/bin/ffmpeg -i "
- + "/Users/testuser/test/i.mov" + " " + "/Users/testuser/test/o.mov"; //+" && rm -rf "+infileName +" " +capfileName ;
- System.out.println("CMD TO EXECUTE : " + cmd);
- try {
- Process p = Runtime.getRuntime().exec(cmd);
- } catch (IOException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- }
Add Comment
Please, Sign In to add comment