diff --git a/common/src/main/java/ctbrec/recorder/download/hls/MergedHlsDownload.java b/common/src/main/java/ctbrec/recorder/download/hls/MergedHlsDownload.java index b708fe00..8257d60b 100644 --- a/common/src/main/java/ctbrec/recorder/download/hls/MergedHlsDownload.java +++ b/common/src/main/java/ctbrec/recorder/download/hls/MergedHlsDownload.java @@ -78,7 +78,7 @@ public class MergedHlsDownload extends HlsDownload { ); // @formatter:on LOG.debug("Command line: {}", Arrays.toString(cmdline)); - Process ffmpeg = Runtime.getRuntime().exec(cmdline); + Process ffmpeg = Runtime.getRuntime().exec(cmdline, new String[0], playlist.getParentFile()); new Thread(new StreamRedirectThread(ffmpeg.getInputStream(), System.out)).start(); // NOSONAR new Thread(new StreamRedirectThread(ffmpeg.getErrorStream(), System.err)).start(); // NOSONAR int exitCode = ffmpeg.waitFor();