When using a compiled a program that utilizes FFMPEG (Not library, but the path to the exe), and a GUI library; that has a function that uses FFMPEG, a console window from FFMPEG will quickly open and disappear.
I have a github repo that can be used to reproduce the bug: https://github.com/nednoodlehead/ffmpegthreading
I also have a quick youtube video showing what the bug looks like, and what it should look like: https://www.youtube.com/watch?v=tCZ0z9E5Iyw
A few things to note with this:
1). This will only occur when the app is compiled. Running this in a virtual environment works as expected. I run it from my IDE all the time with no console flashing. (as seen in video)
2). It will only flash while a GUI is present. So using a regular script to call the same command that produces the bug will NOT cause the bug
3). The bug was tested in Tkinter and PyQt5 and produced the same result (flashing console)
4). Threading is NOT needed to reproduce this bug, it just makes the debugging a bit easier
5). Using the ffmpeg module does not work as my entire project is based around an interface for PyDub (Which uses ffmpeg)
6). This solution does not work for me: How to hide console output of FFmpeg in Python? (Because this uses the module, while I use the exe)
7). I am using auto-py-to-exe to compile (which uses pyinstaller)
8). Running 'ffmpeg -version' (in regular cmd (same result in venv)) gives: ffmpeg version N-106605-gf67403edb3-20220413
I would appreciate any help, this is tying my brain up.