Skip to content
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

Remove SendSignalCtrlC.exe dependancy #67

Open
eliduvid opened this issue Sep 30, 2020 · 2 comments
Open

Remove SendSignalCtrlC.exe dependancy #67

eliduvid opened this issue Sep 30, 2020 · 2 comments

Comments

@eliduvid
Copy link

As you can see here instead of keyboard interrupt (Ctrl + C) you can send letter q to ffmpeg console. This should be cross platform, does not require starting a new process and most importantly - now you don't need SendSignalCtrlC.exe dependency for windows.

It is pretty straightforward to do in java:

Process process =  new ProcessBuilder().command(command).start();
//...
OutputStreamWriter outputStreamWriter = new OutputStreamWriter(process.getOutputStream());
outputStreamWriter.write("q\n");
outputStreamWriter.flush();

I can try and implement it, but I can't test it on my machine for unrelated reasons.

@SergeyPirogov
Copy link
Owner

Please provide a pr

@eliduvid
Copy link
Author

Here you go 😃

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants