-
Notifications
You must be signed in to change notification settings - Fork 989
Closed
Description
I have two use cases for this feature:
- I have a chinese Wi-Fi camera which, unless I keep always keep loading its stream, breaks the stream and go2rtc does not recover automatically.
- I don't think this is an issue with go2rtc
- Preloading the camera in Home Assistant fixes the issue
- As a temporary fix for: Copying audio only works after opening original stream once #530
If there was an option to preload (or maintain some stream always open in go2rtc itself), it would be great. I feel like preloading the camera from Home Assistant side takes too many CPU cycles as it spawns a ffmpeg process.
Example of how it could look like:
streams:
camera_01:
- rtsp://192.168.1.21:554/user=admin_password=pass_channel=0_stream=1&onvif=0.sdp?real_stream#preloadI don't think this support needs to be implemented to any other source (only RTSP), because one could easily create a fake consumer to the source just to preload it, if it's not already RTSP:
streams:
camera_01:
- ffmpeg:rtsp://192.168.1.21:554/user=admin_password=pass_channel=0_stream=1&onvif=0.sdp?real_stream#video=copy#audio=copy
camera_01_for_preload:
- rtsp://127.0.0.1:8554/camera_01#preloadReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request