Search in sources :

Example 1 with Muxer

use of org.fagu.fmv.ffmpeg.format.Muxer in project fmv by f-agu.

the class FFMPEGExecutorBuilder method addMediaOutput.

/**
 * @param output
 * @return
 */
public OutputProcessor addMediaOutput(MediaOutput output) {
    if (output instanceof Muxer) {
        return mux((Muxer<?>) output);
    }
    Processor<?> processor = defaultFFMPEGOperation.getProcessor(output);
    if (processor != null && !(processor instanceof OutputProcessor)) {
        throw new IllegalArgumentException("Already defined: " + output);
    }
    OutputParameters outputParameters = defaultFFMPEGOperation.getOutputParameters();
    return outputParameters.addOutput(output);
}
Also used : OutputParameters(org.fagu.fmv.ffmpeg.operation.OutputParameters) Muxer(org.fagu.fmv.ffmpeg.format.Muxer) OutputProcessor(org.fagu.fmv.ffmpeg.operation.OutputProcessor)

Aggregations

Muxer (org.fagu.fmv.ffmpeg.format.Muxer)1 OutputParameters (org.fagu.fmv.ffmpeg.operation.OutputParameters)1 OutputProcessor (org.fagu.fmv.ffmpeg.operation.OutputProcessor)1