Search in sources :

Example 1 with IntMediaInput

use of org.fagu.fmv.ffmpeg.ioe.IntMediaInput in project fmv by f-agu.

the class FFMPEGExecutorBuilder method addMediaInputWebCam.

/**
 * @return
 */
public InputProcessor addMediaInputWebCam() {
    String format = Devices.webCam().getName();
    InputProcessor input = addMediaInput(new IntMediaInput(0));
    input.format(format);
    input.frameRate(FrameRate.PAL);
    return input;
}
Also used : IntMediaInput(org.fagu.fmv.ffmpeg.ioe.IntMediaInput) InputProcessor(org.fagu.fmv.ffmpeg.operation.InputProcessor)

Aggregations

IntMediaInput (org.fagu.fmv.ffmpeg.ioe.IntMediaInput)1 InputProcessor (org.fagu.fmv.ffmpeg.operation.InputProcessor)1