Is there any way to know the execution time of the command? Making exec
synchronous
Runtime rt = Runtime.getRuntime();
Process process = rt.exec(ffmpeg +" -i "+source+" -vcodec h264 -acodec aac "+destination);
the ffmpeg command is taking time so I want to log something after the execution. Is there any way to log the things after the command has executed?
You could record the time before the process starts, waitFor it to finish, and then record the time again, and subtract the two: