Added quotes to file parameters

This commit is contained in:
Ziver Koc 2022-05-20 12:01:43 +02:00
parent 818d73ac2e
commit 16959f49e8
2 changed files with 8 additions and 3 deletions

View file

@ -51,7 +51,9 @@ public class FFmpegInput {
private boolean subtitleEnabled = true;
/**
* @param input A path to a file or network resource, see FFmpeg documentation for details https://ffmpeg.org/ffmpeg-protocols.html#Protocols
*/
public FFmpegInput(String input) {
this.input = input;
}
@ -152,7 +154,7 @@ public class FFmpegInput {
command.append(" -sn");
command.append(StringUtil.join(" ", additionalArgs));
command.append(" -i ").append(input);
command.append(" -i \"").append(input).append("\"");
return command.toString().trim();
}
}

View file

@ -71,6 +71,9 @@ public class FFmpegOutput {
private boolean subtitleEnabled = true;
/**
* @param output A path to a file or network resource, see FFmpeg documentation for details https://ffmpeg.org/ffmpeg-protocols.html#Protocols
*/
public FFmpegOutput(String output) {
this.output = output;
}
@ -352,7 +355,7 @@ public class FFmpegOutput {
command.append(" -sn");
command.append(StringUtil.join(" ", additionalArgs));
command.append(' ').append(output);
command.append(" \"").append(output).append("\"");
return command.toString().trim();
}
}