Fixed FFmpeg testcases
This commit is contained in:
parent
af10ac5058
commit
4e01c413e9
3 changed files with 7 additions and 7 deletions
|
|
@ -34,7 +34,7 @@ public class FFmpegInputTest {
|
|||
public void onlyInput() {
|
||||
FFmpegInput ffmpegInput = new FFmpegInput("iTest.mp4");
|
||||
|
||||
assertEquals("-i iTest.mp4", ffmpegInput.buildCommand());
|
||||
assertEquals("-i \"iTest.mp4\"", ffmpegInput.buildCommand());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -51,6 +51,6 @@ public class FFmpegInputTest {
|
|||
assertEquals("-ss 9.1 -to 20.1 -t 10.1" +
|
||||
" -an" +
|
||||
" -sn" +
|
||||
" -i iTest.mp4", ffmpegInput.buildCommand());
|
||||
" -i \"iTest.mp4\"", ffmpegInput.buildCommand());
|
||||
}
|
||||
}
|
||||
|
|
@ -34,7 +34,7 @@ public class FFmpegOutputTest {
|
|||
public void onlyOutput() {
|
||||
FFmpegOutput ffmpegOutput = new FFmpegOutput("oTest.mp4");
|
||||
|
||||
assertEquals("oTest.mp4", ffmpegOutput.buildCommand());
|
||||
assertEquals("\"oTest.mp4\"", ffmpegOutput.buildCommand());
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -67,7 +67,7 @@ public class FFmpegOutputTest {
|
|||
" -codec:v libx264 -frames 29.8 -filter:v scale=320:240 -b:v 300000 -qscale:v 22" +
|
||||
" -codec:a libmp3lame -ar 48000 -ac 6 -b:a 360000 -qscale:a 23 -an" +
|
||||
" -codec:s subrip -sn" +
|
||||
" oTest.mp4",
|
||||
" \"oTest.mp4\"",
|
||||
ffmpegOutput.buildCommand());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ public class FFmpegTest {
|
|||
ffmpeg.addInput(new FFmpegInput("iTest.mp4"));
|
||||
ffmpeg.addOutput(new FFmpegOutput("oTest.mp4"));
|
||||
|
||||
assertEquals("ffmpeg -i iTest.mp4 oTest.mp4", ffmpeg.buildCommand());
|
||||
assertEquals("ffmpeg -i \"iTest.mp4\" \"oTest.mp4\"", ffmpeg.buildCommand());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -48,7 +48,7 @@ public class FFmpegTest {
|
|||
ffmpeg.addInput(new FFmpegInput("iTest.mp4"));
|
||||
ffmpeg.addOutput(new FFmpegOutput("oTest.mp4"));
|
||||
|
||||
assertEquals("ffmpeg -loglevel error -i iTest.mp4 oTest.mp4", ffmpeg.buildCommand());
|
||||
assertEquals("ffmpeg -loglevel error -i \"iTest.mp4\" \"oTest.mp4\"", ffmpeg.buildCommand());
|
||||
}
|
||||
|
||||
@Test
|
||||
|
|
@ -58,6 +58,6 @@ public class FFmpegTest {
|
|||
ffmpeg.addInput(new FFmpegInput("iTest.mp4"));
|
||||
ffmpeg.addOutput(new FFmpegOutput("oTest.mp4"));
|
||||
|
||||
assertEquals("ffmpeg -y -i iTest.mp4 oTest.mp4", ffmpeg.buildCommand());
|
||||
assertEquals("ffmpeg -y -i \"iTest.mp4\" \"oTest.mp4\"", ffmpeg.buildCommand());
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue