bluenviron / mediamtx

Ready-to-use SRT / WebRTC / RTSP / RTMP / LL-HLS media server and media proxy that allows to read, publish, proxy, record and playback video and audio streams.
MIT License
11.74k stars 1.48k forks source link

Allow a publisher to reconnect without disconnecting readers #2214

Open aler9 opened 1 year ago

aler9 commented 1 year ago

Describe the feature

When a publisher has not connected yet or has disconnected, a blank stream or a fallback stream should be shown to readers. As soon as the publisher reconnects, its stream is routed to readers again.

The original stream, the fallback stream and the blank screen screen must have the same number of tracks and the same codecs, therefore this feature requires some kind of configuration:

paths:
  mypath:
    alwaysAvailable: yes
    alwaysAvailableTracks:
    - codec: h264
    - codec: opus

All streams (main one and fallback) are checked for codecs before being activated.

rnuck2 commented 1 year ago

This feature could be very useful to me. Is its implementation in progress? At the moment, with the latest release (builded from main branch code), i get alwaysAvailable field not existing. Thank you.

sz55net commented 11 months ago

This feature seems very useful!

mrasvialpha commented 10 months ago

It would also be good if there is an option to wait until a timeout is reached to check if the publisher reconnects and continue sending frame. Currently all the readers are disconnected immediately.

efraimjer commented 9 months ago

any news on this feature?

xaionaro commented 8 months ago

Also curious if there are any plans to make it happen anytime soon :)

JoLoZ commented 5 months ago

Are there any updates regarding this feature?

winkmichael commented 4 months ago

If I understand this correct, this would give the user the ability to have a stream and insert a "No Video.' or "No Input Available" type message into the stream itself?

sz55net commented 3 months ago

If I understand this correct, this would give the user the ability to have a stream and insert a "No Video.' or "No Input Available" type message into the stream itself?

Yes

epunter commented 3 months ago

This would be an incredibly good feature, currently the only thing I need to get my gold standard home RTSP server

m1k1o commented 2 months ago

I would like to implement this feature, because I am looking for a way how to acheive exactly this behavior for RTMP ingest. While my research I found out that liquidsoap has already something experimental like this issue and there is a way how to acheive it with gstreamer in rust.

@aler9 is there any idea / hints from your side how to implement this freatue? Some information that would be beneficial for me to know before I fork this repository and start tinkering with possible solutions? Thanks.

TagorePde commented 1 week ago

mistserver , have failover streaming feature.