Python 3 OpenCV Tkinter Script to Render Flickering Video in Window Using FFMPEG Library GUI Desktop App

 

Solution: Make sure the image configure call precedes storing the image in the label image attribute. I’ve managed to solve this issue, however I don’t fully understand WHY it works as I am a python/tkinter novice. I will post the solution for now and will update the answer when I manage to find a proper explanation to this behavior. My best guess is that the storing of the image in the label attribute is what actually causes it to update on the screen, while the configure method just declares that there will be an image attached, which causes the loop to have to go through another iteration before getting to the update image update statement. The below code works fine without flicker:

 

 

 

 

Leave a Reply