-
Notifications
You must be signed in to change notification settings - Fork 420
Closed
Description
Overview
Open multiple rtsp steams using av.open in thread, some cameras maybe 1s delay in sometimes, if rtsp streams number exceeds 30,This phenomenon will become very obvious.
Expected behavior
How to reduce the delay when opening rtsp stream?
Actual behavior
{{ A clear and concise description of what actually happened. }}
Investigation
This is my code open camera:
def pyavRecord_open(camera_stream):
options = {
"rtsp_transport": "tcp",
"analyzeduration": "1000",
# "max_delay": "1000",
# "chunk_duration": "1000",
# "audio_preload": "1000",
"stimeout": "500000",
# "fflags": "flush_packets",
# "max_interleave_delta": "1000",
"use_wallclock_as_timestamps": "1",
}
input_ = av.open(camera_stream, 'r', format='rtsp', options=options, metadata_errors='ignore', )
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.
Additional context
{{ Add any other context about the problem here. }}
Metadata
Metadata
Assignees
Labels
No labels