nginx-rtmp-module icon indicating copy to clipboard operation
nginx-rtmp-module copied to clipboard

"record all manual", "record_interval 2m", "record_unique on" - together, does not split output file

Open VVhiteCoder opened this issue 11 years ago • 2 comments

I'm trying manual recording with splitting output file into chunks by duration (record_unique on), splitting works perfect if "record" is not manual, with "record all manual" it's write into one file. Also if I specify "record_max_size" instead of "record_interval" file reach this size but does not create new chunk.

        recorder live_rec {
            record all manual;
            record_unique on;
            record_path /mnt/ramdisk;
            record_suffix -%d-%b-%y-%T.flv;
            record_interval 2m; 
            #record_max_size 2m;
            }  

nginx -V nginx version: nginx/1.7.7 built by gcc 4.8.2 (Ubuntu 4.8.2-19ubuntu1) TLS SNI support enabled configure arguments: --add-module=../nginx-upload-module --add-module=../nginx-upload-progress-module --add-module=../nginx_cross_origin_module --add-module=../nginx-rtmp-module --prefix=/etc/nginx/ --sbin-path=/usr/sbin/nginx --conf-path=/etc/nginx/nginx.conf --error-log-path=/var/log/nginx/error.log --http-log-path=/var/log/nginx/access.log --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock --http-client-body-temp-path=/var/cache/nginx/client_temp --user=nginx --group=nginx --with-http_realip_module --with-http_addition_module --with-http_sub_module --with-http_mp4_module --with-http_gzip_static_module --with-http_random_index_module --with-http_secure_link_module --with-http_stub_status_module --with-file-aio

VVhiteCoder avatar Nov 18 '14 15:11 VVhiteCoder

Ran into the same issue. Desired to manually choose when to start recording, but still have it respect the interval setting.

cthurston avatar Feb 25 '16 20:02 cthurston

Hello Do someone know if this was addressed ? We are facing the exact same situation. Our incoming stream is 10Mbps (~4.5GB/hour) and we want to split in 4 hour chunks (18GB)

        application someappname {
          live on;
          exec_push sh /usr/local/nginx/open_stream.sh someappname $app $name;
          exec_publish_done sh /usr/local/nginx/close_stream.sh someappname $app $name;
          recorder all {
                record all manual;
                record_path /mnt/mediabox/someappname/tmp;
                record_max_size 18000M;
                record_interval 240m;
                record_unique off;
                record_suffix _%Y-%m-%d-%H.%M.%S.094-UTC_0.flv;
           }
         }

jeanmichel-nwsb avatar Jan 08 '24 09:01 jeanmichel-nwsb