-
Notifications
You must be signed in to change notification settings - Fork 417
Closed
Description
Overview
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
Research
I have done the following:
- Checked the PyAV documentation
- Searched on Google
- Searched on Stack Overflow
- Looked through old GitHub issues
- Asked on PyAV Gitter
- ... and waited 72 hours for a response.
Metadata
Metadata
Assignees
Labels
No labels