1 min readAug 16, 2020
I see you're displaying a random frame so this method of extracting a single frame will work fine. I found this method to produce unreliable results if you're trying to step through the file frame by frame and instead needed to use ffmpeg screenshots.