ProcessWrapperImpl pw = new ProcessWrapperImpl(cmdArray, params);
pw.runInNewThread();
try {
pw.join(); // Wait until the conversion is finished
pw.stopProcess(); // Avoid creating a pipe for this process and messing up with buffer progress bar
} catch (InterruptedException e) {
LOGGER.debug("Subtitles conversion finished wih error: " + e);
return null;
}