You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I`m read RTSP stream with PyAV frame by frame. And for each frame make some processing. All good, but sometimes processing takes longer than the time between frames and my processed video starts lagging behind real time. This gap is constantly growing.
Obviously it's because of the input buffer.
Expected behavior
I want to decrease buffer size to one frame.
Actual behavior
To synchronize with real time i need read all frames from buffer.
Investigation
try set flag: container.flags |= av.container.Flags.NOBUFFER
try set low delay: container.streams.video[0].codec_context.flags |= av.codec.context.Flags.LOW_DELAY
Activity