forked from j62/ctbrec
1
0
Fork 0

Run FFmpeg in the segments directory of HLS downloads

This commit is contained in:
0xboobface 2019-12-22 15:04:14 +01:00
parent 5b9b91d6e8
commit 66525de4ea
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class MergedHlsDownload extends HlsDownload {
); );
// @formatter:on // @formatter:on
LOG.debug("Command line: {}", Arrays.toString(cmdline)); 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.getInputStream(), System.out)).start(); // NOSONAR
new Thread(new StreamRedirectThread(ffmpeg.getErrorStream(), System.err)).start(); // NOSONAR new Thread(new StreamRedirectThread(ffmpeg.getErrorStream(), System.err)).start(); // NOSONAR
int exitCode = ffmpeg.waitFor(); int exitCode = ffmpeg.waitFor();