Skip to content

[FEATURE REQUEST] Try to reconnect for VideoCapture #3

@LdDl

Description

@LdDl

Is your feature request related to a problem? Please describe.
When reading frames from RTSP or USB/Ethernet source sometime disconnects may occur.

Describe the solution you'd like
Add channel listener. When it receives a signal (disconnected from video source) it will try reestablish connection.
I guess, some kind of wrapper around gocv.VideoCapture is needed.

Describe alternatives you've considered
systemd/cron is an option.
But you always can disable reconnect option configuration JSON (context is below) and prepare systemd/cron by yourself.

Additional context
It's better to add reconnect option to configuration JSON also, eg '"reconnect_opts": {"num_of_attempts": 5, "sleep_time_between_attempts": "10sec"}'

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requesthelp wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions