Search in sources :

Example 1 with Demuxer

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);
}
Also used : Demuxer(org.fagu.fmv.ffmpeg.format.Demuxer) InputProcessor(org.fagu.fmv.ffmpeg.operation.InputProcessor) InputParameters(org.fagu.fmv.ffmpeg.operation.InputParameters)

Aggregations

Demuxer (org.fagu.fmv.ffmpeg.format.Demuxer)1 InputParameters (org.fagu.fmv.ffmpeg.operation.InputParameters)1 InputProcessor (org.fagu.fmv.ffmpeg.operation.InputProcessor)1