Jump to content
Sign in to follow this  
jdauthre

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

ffmpeg.txt

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...