arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.21k stars 3.49k forks source link

hls_playlist_length directive not honored ?! #983

Open dvision1979 opened 7 years ago

dvision1979 commented 7 years ago

I am trying to mimic the nDVR functionality of Wowza.by using the hls_playlist_length directive:

      application live {
            allow play all;
            live on;
            hls_playlist_length 4h;
            record_path /video_recordings;
            record_unique on;
            hls on;
            hls_nested on;
            hls_path /HLS/live;
            hls_continuous on;
            hls_cleanup off;
            hls_fragment 10s;

            hls_variant _source BANDWIDTH=4718592;
            hls_variant _high BANDWIDTH=1572864;
            hls_variant _low BANDWIDTH=819200;
          }

It looks that the specified directive is not honored in any way, because with 10s fragments a maximum of 12 fragments are kept in cache by the rtmp module. Can anyone confirm or I am doing something wrong? Thank you in advance!

dvision1979 commented 7 years ago

The directive is only honoured globally :(