From 66525de4ea76ec7be63fc3acb271d898cba34fc1 Mon Sep 17 00:00:00 2001 From: 0xboobface <0xboobface@gmail.com> Date: Sun, 22 Dec 2019 15:04:14 +0100 Subject: [PATCH] Run FFmpeg in the segments directory of HLS downloads --- .../java/ctbrec/recorder/download/hls/MergedHlsDownload.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();