use of org.fagu.fmv.ffmpeg.operation.OperationListener in project fmv by f-agu.
the class AutoRotate method beforeAddAround.
// *******************************************
/**
* @see org.fagu.fmv.ffmpeg.filter.FilterCombined#beforeAddAround(org.fagu.fmv.ffmpeg.operation.Operation,
* org.fagu.fmv.ffmpeg.filter.FilterNaming)
*/
@Override
protected void beforeAddAround(Operation<?, ?> operation, FilterNaming filterNaming) {
super.beforeAddAround(operation, filterNaming);
operation.addListener(new OperationListener() {
@Override
public void eventPreToArguments(Operation<?, ?> operation) {
upgrade(operation);
}
});
}
use of org.fagu.fmv.ffmpeg.operation.OperationListener in project fmv by f-agu.
the class FFUtils method builder.
/**
* @param project
* @return
*/
public static FFMPEGExecutorBuilder builder(Project project) {
FFMPEGExecutorBuilder builder = FFMPEGExecutorBuilder.create();
builder.hideBanner();
if (project.getProperty(Properties.SHOW_COMMAND_LINE)) {
builder.addListener(new OperationListener() {
/**
* @see org.fagu.fmv.ffmpeg.operation.OperationListenerAdaptor#eventCreate(org.fagu.fmv.ffmpeg.executor.FFExecutor)
*/
@Override
public void eventCreate(FFExecutor<?> ffExecutor) {
try {
System.out.println(ffExecutor.getCommandLine());
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
return builder;
}
Aggregations