matham / ffpyplayer

A cython implementation of an ffmpeg based player.
GNU Lesser General Public License v3.0
132 stars 37 forks source link

Catch-up time-lapse buffering and lag issues while working with FFpyplayer frames and QPixmap with a UDP stream in MPEG-TS format #164

Open kyrlon opened 1 month ago

kyrlon commented 1 month ago

I made a more detailed post here on StackOverflow, but I can post more info if requested here regarding my peculiar issue with pyqt6 and ffpyplayer.

I am experiencing catch-up time-lapse buffering and lag issues while working with FFpyplayer frames and QPixmap with a UDP stream in MPEG-TS format. I have noticed a speed-up effect in video playback followed by a return to normal speed, as well as stutter or lag on some videos. The issue seems to arise when retrieving and displaying frames using PyQt's QPixmap. I have shared sample code snippets showcasing the problem, one using FFpyplayer and PyQt and the other utilizing FFpyplayer and OpenCV, with the latter working flawlessly without any issues.

I am looking for guidance on adjusting settings or parameters within FFpyplayer and/or PyQt to resolve the catch-up time-lapse buffering effect.

kyrlon commented 1 month ago

Is ffpyplayer thread safe?