Class FFmpegStopper
java.lang.Object
com.github.kokorin.jaffree.ffmpeg.FFmpegStopper
- All Implemented Interfaces:
Stopper
Implement
Stopper to allow forceful and graceful ffmpeg stop.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidStops ffmpeg forcefully by sending "qq" character to stdin.voidStops ffmpeg gracefully by sending "q" character to stdin.protected voidsendToStdIn(String chars) Send specified characters to process StdIn.voidsetProcess(Process process) Sets ffmpeg/ffprobe process to be stopped.
-
Constructor Details
-
FFmpegStopper
public FFmpegStopper()
-
-
Method Details
-
graceStop
public void graceStop()Stops ffmpeg gracefully by sending "q" character to stdin. -
forceStop
public void forceStop()Stops ffmpeg forcefully by sending "qq" character to stdin. -
setProcess
Sets ffmpeg/ffprobe process to be stopped.- Specified by:
setProcessin interfaceStopper- Parameters:
process- ffmpeg/ffprobe process
-
sendToStdIn
Send specified characters to process StdIn.- Parameters:
chars- characters to send
-