Class CaptureInput.WindowsGdiGrab
java.lang.Object
com.github.kokorin.jaffree.ffmpeg.BaseInOut<CaptureInput.WindowsGdiGrab>
com.github.kokorin.jaffree.ffmpeg.BaseInput<CaptureInput.WindowsGdiGrab>
com.github.kokorin.jaffree.ffmpeg.CaptureInput<CaptureInput.WindowsGdiGrab>
com.github.kokorin.jaffree.ffmpeg.CaptureInput.WindowsGdiGrab
- All Implemented Interfaces:
Input
- Enclosing class:
CaptureInput<T extends CaptureInput<T>>
Input implementation for GDI Grab 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 TypeMethodDescriptionstatic CaptureInput.WindowsGdiGrabCreatesCaptureInput.WindowsGdiGrabcapture device to capture desktop.static CaptureInput.WindowsGdiGrabcaptureWindow(String windowTitle) CreatesCaptureInput.WindowsGdiGrabcapture device.setCaptureCursor(boolean captureCursor) Instructs ffmpeg to capture mouse cursor.setCaptureVideoOffset(int xOffset, int yOffset) Sets the video region offsets.Methods inherited from class com.github.kokorin.jaffree.ffmpeg.CaptureInput
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
-
WindowsGdiGrab
- Parameters:
input- input identifier
-
-
Method Details
-
captureDesktop
CreatesCaptureInput.WindowsGdiGrabcapture device to capture desktop.- Returns:
- WindowsGdiGrab
-
captureWindow
CreatesCaptureInput.WindowsGdiGrabcapture device. Cpatures single window with specified title.- Parameters:
windowTitle- window title- Returns:
- WindowsGdiGrab
-
setCaptureCursor
Instructs ffmpeg to capture mouse cursor.Note: this feature is not supported on all devices.
- Specified by:
setCaptureCursorin classCaptureInput<CaptureInput.WindowsGdiGrab>- Parameters:
captureCursor- true to capture cursor- Returns:
- this
-
setCaptureVideoOffset
Sets the video region offsets.Note: this option doesn't work for some capture devices.
- Specified by:
setCaptureVideoOffsetin classCaptureInput<CaptureInput.WindowsGdiGrab>- Parameters:
xOffset- x offsetyOffset- y offset- Returns:
- this
-