-
-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to stop FFMPEG process gracefully with ffmpeg-cli-wrapper ? #282
Comments
I'm having the same issue. I think I'm going to just call on the shell to kill any process with the name ffmpeg. It's not ideal, but it'll work for my project. |
You'll have to execute ffmpeg manually and get a Process object that you can then read streams or kill as needed. Similar to what
|
Yeah, that's working for me. If there was a way to get the PID for the ffmpeg job, then I could narrow the kill command to that. |
The current API doesn't make it easy to get the Process object / PID. So that's why I suggest executing ffmpeg yourself. |
Meh, I'm queuing up tasks anyway so there will only be one ffmpeg process running at a time. My personal project is just shrinking video files from blu-ray quality to x265 and moving them to a new folder so not exactly needing production quality. I appreciate this cli wrapper! Thanks for your work making this. |
Hi folks ,
I wrote a simple UDP stream recorder application with using this library in Java 11. Everything works fine except stopping FFMPEG record process before the duration time. (i.e The duration time is 60 seconds but want to stop FFMPEG process like in 30th second.)
What should I do for solving this problem ? Any ideas would be appreciated .
Thanks,
Mert
The text was updated successfully, but these errors were encountered: