Added quotes to file parameters
This commit is contained in:
parent
818d73ac2e
commit
16959f49e8
2 changed files with 8 additions and 3 deletions
|
|
@ -51,7 +51,9 @@ public class FFmpegInput {
|
||||||
private boolean subtitleEnabled = true;
|
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) {
|
public FFmpegInput(String input) {
|
||||||
this.input = input;
|
this.input = input;
|
||||||
}
|
}
|
||||||
|
|
@ -152,7 +154,7 @@ public class FFmpegInput {
|
||||||
command.append(" -sn");
|
command.append(" -sn");
|
||||||
|
|
||||||
command.append(StringUtil.join(" ", additionalArgs));
|
command.append(StringUtil.join(" ", additionalArgs));
|
||||||
command.append(" -i ").append(input);
|
command.append(" -i \"").append(input).append("\"");
|
||||||
return command.toString().trim();
|
return command.toString().trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -71,6 +71,9 @@ public class FFmpegOutput {
|
||||||
private boolean subtitleEnabled = true;
|
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) {
|
public FFmpegOutput(String output) {
|
||||||
this.output = output;
|
this.output = output;
|
||||||
}
|
}
|
||||||
|
|
@ -352,7 +355,7 @@ public class FFmpegOutput {
|
||||||
command.append(" -sn");
|
command.append(" -sn");
|
||||||
|
|
||||||
command.append(StringUtil.join(" ", additionalArgs));
|
command.append(StringUtil.join(" ", additionalArgs));
|
||||||
command.append(' ').append(output);
|
command.append(" \"").append(output).append("\"");
|
||||||
return command.toString().trim();
|
return command.toString().trim();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue