1

I am using ffmpeg and I have start a process and I want to pass an argument to same instance after its start, so how to do this in c sharp any resource. Basically I am using ffmpeg to recored desktop screen and ffmpeg recording can be stop with "q" word.

4
  • Have a look at standard input redirection here: msdn.microsoft.com/en-us/library/… Commented Oct 28, 2013 at 14:45
  • Maybe WshShell.SendKeys "q"? Commented Oct 28, 2013 at 14:46
  • It sounds like you want to just send q to the process. Probably SendKeys Commented Oct 28, 2013 at 14:46
  • yes just want to send q for stop process. Commented Oct 28, 2013 at 14:50

1 Answer 1

2

You're actually asking how to send input to a process, as if you had typed in its console.

Create the Process with the RedirectStandardInput property set, then write to its StandardInput stream.

Sign up to request clarification or add additional context in comments.

2 Comments

yes how to input a runing process, can you give demo resource, thanks

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.