Class CaptureInput.WindowsDirectShow
java.lang.Object
com.github.kokorin.jaffree.ffmpeg.BaseInOut<CaptureInput.WindowsDirectShow>
com.github.kokorin.jaffree.ffmpeg.BaseInput<CaptureInput.WindowsDirectShow>
com.github.kokorin.jaffree.ffmpeg.CaptureInput<CaptureInput.WindowsDirectShow>
com.github.kokorin.jaffree.ffmpeg.CaptureInput.WindowsDirectShow
- All Implemented Interfaces:
Input
- Enclosing class:
CaptureInput<T extends CaptureInput<T>>
public static class CaptureInput.WindowsDirectShow
extends CaptureInput<CaptureInput.WindowsDirectShow>
Input implementation for Direct Show capture device.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.github.kokorin.jaffree.ffmpeg.CaptureInput
CaptureInput.LinuxX11Grab, CaptureInput.MacOsAvFoundation, CaptureInput.WindowsDirectShow, CaptureInput.WindowsGdiGrab -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncaptureAudio(String audioDevice) CreatesCaptureInput.WindowsDirectShowcapture device.captureVideo(String videoDevice) CreatesCaptureInput.WindowsDirectShowcapture device.captureVideoAndAudio(String videoDevice, String audioDevice) CreatesCaptureInput.WindowsDirectShowcapture device.setCaptureCursor(boolean captureCursor) Not supported forCaptureInput.WindowsDirectShow.setCaptureVideoOffset(int xOffset, int yOffset) Not supported forCaptureInput.WindowsDirectShow.Methods inherited from class com.github.kokorin.jaffree.ffmpeg.CaptureInput
captureDesktop, setCaptureFrameRate, setCaptureVideoSize, setCaptureVideoSize, setFrameRateMethods inherited from class com.github.kokorin.jaffree.ffmpeg.BaseInput
buildArguments, setReadAtFrameRate, setStreamLoopMethods inherited from class com.github.kokorin.jaffree.ffmpeg.BaseInOut
addArgument, addArguments, getAdditionalArguments, helperThread, setCodec, setCodec, setDuration, setDuration, setFormat, setFrameRate, setFrameSize, setFrameSize, setFrameSize, setPixelFormat, setPixelFormat, setPosition, setPosition, setPositionEof, setPositionEof, thisAsT, toArgumentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.kokorin.jaffree.ffmpeg.Input
buildArguments, helperThread
-
Constructor Details
-
WindowsDirectShow
- Parameters:
input- input identifier
-
-
Method Details
-
captureVideo
CreatesCaptureInput.WindowsDirectShowcapture device.- Parameters:
videoDevice- video device identifier- Returns:
- WindowsDirectShow
-
captureAudio
CreatesCaptureInput.WindowsDirectShowcapture device.- Parameters:
audioDevice- audio device identifier- Returns:
- WindowsDirectShow
-
captureVideoAndAudio
public static CaptureInput.WindowsDirectShow captureVideoAndAudio(String videoDevice, String audioDevice) CreatesCaptureInput.WindowsDirectShowcapture device.- Parameters:
videoDevice- video device identifieraudioDevice- audio device identifier- Returns:
- WindowsDirectShow
-
setCaptureCursor
Not supported forCaptureInput.WindowsDirectShow.- Specified by:
setCaptureCursorin classCaptureInput<CaptureInput.WindowsDirectShow>- Parameters:
captureCursor- true to capture cursor- Returns:
- this
-
setCaptureVideoOffset
Not supported forCaptureInput.WindowsDirectShow.Sets the video region offsets.
Note: this option doesn't work for some capture devices.
- Specified by:
setCaptureVideoOffsetin classCaptureInput<CaptureInput.WindowsDirectShow>- Parameters:
xOffset- x offsetyOffset- y offset- Returns:
- this
-