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

Take videos just the SAME convenient way one takes screenshots #3

Open
ewerybody opened this issue Oct 13, 2021 · 3 comments
Open

Take videos just the SAME convenient way one takes screenshots #3

ewerybody opened this issue Oct 13, 2021 · 3 comments
Assignees

Comments

@ewerybody
Copy link
Owner

There is extra tools for this a lot! But surely: ShareX does a great job of offering almost the same experience and I got the idea of doing just that with ffmpeg from them 👍
cheers!

@ewerybody ewerybody self-assigned this Oct 13, 2021
ewerybody added a commit that referenced this issue Oct 30, 2021
ffmpeg needs to run in shell to receive CTRL+C when there is no console 🤔 ... trying to get new pid then. ...
@ewerybody
Copy link
Owner Author

Pcheeew.. This went quite down the rabbit hole. So eventually this tool should be a non-console python app. aka using pythonw in the end.

To summarize .. I'm JUST learning about all of this. So there might still be some misunderstandings!

So problem with the non-console mode that is that all subprocesses will also not have a console channel available. Apparently sending signals to gracefully terminate the ffmpeg process ONLY works with a console attached.
It IS possible to attach a console tho: https://stackoverflow.com/a/64357453/469322
I just tried to implement this already.

@ewerybody
Copy link
Owner Author

Meanwhile I found a project that already DOES what I was looking for: python-ffmpeg this is already a fork. The original project seems abandoned although there is quite some praise about it. The fork is also not that active but has a few nice improvements already.

I'm still struggling If we should actually use this project. It ALSO has the problem with the non-console mode and so far I don't see many benefits since we already work asynchronous via QThreads and we would not need much of the other features... 🤔

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

No branches or pull requests

1 participant