Sign in

Ngix RTMP sets the path to save the recorded file according to the date

Toby edited in Wed, 22 Jun 2022

rtmp {

server {
    listen 1935;
    chunk_size 4096;
    max_message 1M;
    max_streams 32;
    ack_window 5000000;
    timeout 60s;
    buflen 5s;
    application live {
        live on;
        sync 100ms;
        recorder rec1{
            record all;
            record_path D:/record;
            record_unique off;
            record_suffix .flv;
        # record all;
        # record_path D:/record;
        # record_suffix _recorded.flv;


Now all the recorded files are saved in one folder. How to create different folders according to the time to save the files to be recorded

3 Replies
commented on Wed, 22 Jun 2022

on_ record_ done http :// localhost / record_ doneexec_ record_ Done XXX operates by calling back itself. Both operations have parameters for the recording path. You can check the details.

commented on Thu, 23 Jun 2022

Please check the official document: HTTPS :// github . com / arut / nginx ...

record_ unique on;record_ suffix -%d-%b-%y-%T.flv;

commented on Thu, 23 Jun 2022

Hello, I wrote the same configuration as the building owner, why not save the video

lock This question has been locked and the reply function has been disabled.