Fix crash when video file name contains whitespace (fixes #250)
This commit is contained in:
@@ -58,7 +58,7 @@ public class VideoWriter implements FrameConsumer<RGBFrame> {
|
|||||||
LOGGER.info("Starting {} with args: {}", executable, commandArgs);
|
LOGGER.info("Starting {} with args: {}", executable, commandArgs);
|
||||||
String[] cmdline;
|
String[] cmdline;
|
||||||
try {
|
try {
|
||||||
cmdline = new CommandLine(executable).addArguments(commandArgs).toStrings();
|
cmdline = new CommandLine(executable).addArguments(commandArgs, false).toStrings();
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
LOGGER.error("Failed to parse ffmpeg command line:", e);
|
LOGGER.error("Failed to parse ffmpeg command line:", e);
|
||||||
throw new FFmpegStartupException(settings, e.getLocalizedMessage());
|
throw new FFmpegStartupException(settings, e.getLocalizedMessage());
|
||||||
|
|||||||
Reference in New Issue
Block a user