Jump to content

java stdin


Recommended Posts

I am quite new to java, and try as I might, I can't find any examples to help me.  I am running ffmpeg as a process and parsing the stderr to get various bits of data - all of which is working fine, but I want to send a "q\n"  command to ffmpeg's input from a gui menu item to gracefully  quit it  whilst it is running when necessary. So all I want to do is send a string programmatically to ffmpeg,   the equivalent of sending q return from terminal.  A simplified segment of the source code is attached Thanks in advance


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...