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);
}
Aggregations