Coder Social home page Coder Social logo

Comments (5)

curiousurick avatar curiousurick commented on August 15, 2024

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.

from ffmpeg-cli-wrapper.

bramp avatar bramp commented on August 15, 2024

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

public void run(List<String> args) throws IOException {
and https://github.com/bramp/ffmpeg-cli-wrapper/blob/master/src/main/java/net/bramp/ffmpeg/RunProcessFunction.java do.

from ffmpeg-cli-wrapper.

curiousurick avatar curiousurick commented on August 15, 2024

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.

from ffmpeg-cli-wrapper.

bramp avatar bramp commented on August 15, 2024

The current API doesn't make it easy to get the Process object / PID. So that's why I suggest executing ffmpeg yourself.

from ffmpeg-cli-wrapper.

curiousurick avatar curiousurick commented on August 15, 2024

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.

from ffmpeg-cli-wrapper.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.