Skip to content

Fallback stream for RTSP #1563

Open
Open
@alex-rsk

Description

Hello. Firstly, thank you for impressive work.

I want to ingest RTSP stream and produce ...another RTSP stream, so my goal is to restream.
But, suppose my RTSP source is unreliable, and sometimes breaking down, due to network weather.
Can I manage with go2rtc a fallback source, e.g. some local ffmpeg-generated stream, which is always working?
So i'd want to obtain seamless stream, which doesn't depend of network weather and source problems.

Activity

AlexxIT

AlexxIT commented on Jan 22, 2025

@AlexxIT
Owner

You can set multiple sources for your stream. But I've never tested this function as a fallback. You can try.

runningman84

runningman84 commented on Feb 7, 2025

@runningman84

It would also be great to have an api to switch off a stream to some static image. This would be really helpful for tools like frigate which are constantly restarting their video processing if some stream gets unavailable.

AlexxIT

AlexxIT commented on Feb 8, 2025

@AlexxIT
Owner

Switching active stream to something else is a hard task. Because you should pass same encoding data (resolution, codec with all params, etc).

runningman84

runningman84 commented on Feb 8, 2025

@runningman84

It would be no problem if the stream is interrupted for a moment, because frigate will restart the process anyway if there is an error. The static image could also be using a very low resolution to save bandwith and compute power...

AlexxIT

AlexxIT commented on Feb 8, 2025

@AlexxIT
Owner

Most video protocols should not change resolution and codec during video transmission.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Fallback stream for RTSP · Issue #1563 · AlexxIT/go2rtc