use of org.fagu.fmv.ffmpeg.operation.InputProcessor in project fmv by f-agu.
the class FFMPEGExecutorBuilderTestCase method testInputProcessor_frameRate.
/**
*/
@Test
public void testInputProcessor_frameRate() {
MediaInput input = mockInput("/path/file");
InputProcessor inputProcessor = ffmpegExecutorBuilder.addMediaInput(input);
inputProcessor.frameRate(FrameRate.PAL);
assertArgs("-r", "25", "-i", "/path/file");
}
use of org.fagu.fmv.ffmpeg.operation.InputProcessor in project fmv by f-agu.
the class FFMPEGExecutorBuilderTestCase method testInputProcessor_size.
/**
*/
@Test
public void testInputProcessor_size() {
MediaInput input = mockInput("/path/file");
InputProcessor inputProcessor = ffmpegExecutorBuilder.addMediaInput(input);
inputProcessor.size(Size.HD720);
assertArgs("-s", "hd720", "-i", "/path/file");
}
use of org.fagu.fmv.ffmpeg.operation.InputProcessor in project fmv by f-agu.
the class FFMPEGExecutorBuilderTestCase method testInputProcessor_timeSeek.
/**
*/
@Test
public void testInputProcessor_timeSeek() {
MediaInput input = mockInput("/path/file");
InputProcessor inputProcessor = ffmpegExecutorBuilder.addMediaInput(input);
inputProcessor.timeSeek(new Time(1, 2, 3.4));
assertArgs("-ss", "01:02:03.400", "-i", "/path/file");
}
Aggregations