use of org.fagu.fmv.ffmpeg.format.Demuxer in project fmv by f-agu.
the class FFMPEGExecutorBuilder method addMediaInput.
/**
* @param input
* @return
*/
public InputProcessor addMediaInput(MediaInput input) {
if (input instanceof Demuxer) {
return demux((Demuxer<?>) input);
}
Processor<?> processor = defaultFFMPEGOperation.getProcessor(input);
if (processor != null && !(processor instanceof InputProcessor)) {
throw new IllegalArgumentException("Already defined: " + input);
}
InputParameters inputParameters = defaultFFMPEGOperation.getInputParameters();
return inputParameters.addInput(input);
}
Aggregations