Open ewerybody opened 3 years ago
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.
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... 🤔
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!