Wowza Community

Keep HLS playlist alive after RTMP stream is disconnected

My Wowza server is taking an RTMP stream as an output, and packetizing to be consumed as an HLS stream. The chunks are 3 seconds in length, so the HLS stream ends up being about 15 seconds behind the encoder. After the host ends their RTMP stream, the packetizer shuts down immediately and does not create the last few chunks needed for HLS viewers, meaning that these viewers miss the last ~15 seconds of the stream. Is there any way to remedy this problem, and keep the packetizer alive until all remaining RTMP information has been packetized and served?

Hi,

There is a known issue with players streaming chunks to potentially missing the last bit of a stream once it is unpublished. This is something that we already have captured and are looking to improve on, but I can’t give timescales on if or when this will be addressed at the moment.

Regards,

Paul

You could remedy this using the LoopUntilLive module. The idea is to have some “filler” video which would be streamed automatically in place of the live stream once it is finished. This filler video could be anything, even a black background only. Using the instructions from the document, this filler video can be broadcast only for the needed number of seconds, so with the right tuning it would be almost unnoticable and the clients would be able to download all the remaining chunks as the filler video would keep the stream live long enough.