User Tools

Site Tools


change_segment_clean_up_period

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
change_segment_clean_up_period [2017/06/15 07:43] – created walkeradminchange_segment_clean_up_period [2023/03/09 22:35] (current) – external edit 127.0.0.1
Line 8: Line 8:
 \\  \\ 
 \\  \\ 
----- +Open this file and look for the line <color #ed1c24>"periodDuration":3600,</color> change period duration from <color #ed1c24>3600</color> to <color #ed1c24>360</color>. This sets the DVR to 15 minutes. 
-  * [[Change segment clean up period]\\ +\\  
 +\\  
 +The tsPartDuration parameter is the duration of the chunk the dvr recorder will write. By default, the value is 2000 ms. Thus, every 2s, the dvr-recorder will write a chunk of 2s. 
 +You can change this parameter in order to decrease the NAS loading (i.e 10000ms). 
 +Increasing the value of this parameter will delay the live output stream. So, if you change the value from 2s to 10s. The live will be delayed of 8s. 
 +\\  
 +\\  
 +The periodDuration parameter is the internal period that will be used for DVR.  
 +<color #ed1c24>This rule must be respected: period duration <= (DVR duration /3).</color> 
 +\\  
 +\\  
 +<sxh [py][; options for SyntaxHighlighter]> 
 +
 +    "serverId": "server_0", 
 +    "dataBase":
 +        "type":"mongo", 
 +        "access":
 +            "url": "mongodb://127.0.0.1:27017/halodb?maxPoolSize=2" 
 +            } 
 +        }, 
 +    "fileAccess" : { 
 +         "mountFolder": "/opt/mfvp/mnt" 
 +    }, 
 +    "dvrManager" :{ 
 +        "debug":false, 
 +        "recorder": 
 +        { 
 +            "tsPartDuration":2000, 
 +            "periodDuration":360, 
 +            "deletionSpeed":1.2 
 +        }, 
 +        "statistics":
 +            "redisSocketPath":
 +                "port": 6381, 
 +                "host": "127.0.0.1" 
 +                } 
 +        }, 
 +        "log": 
 +        { 
 +                "traces":"/var/log/mfvp/packaging-dvr-recorder/private", 
 +        "dump":"/var/log/mfvp/packaging-dvr-recorder/private", 
 +        "apiAccessLogs": 
 +                { 
 +                        "period":3600, 
 +                        "count":169, 
 +                        "access":"/var/log/mfvp/packaging-dvr-recorder" 
 +                } 
 +        } 
 +     }, 
 +    "interface":
 +        "http":
 +        "port": 8051 
 +        } 
 +    }, 
 +    "alarm":
 +        "redisSocket": "/var/lib/envivio/alarm/alarm.sock" 
 +    } 
 +
 +</sxh>
  
  
-edit /opt/mfvp/packaging-dvr-recorder/etc/packaging-dvr-recorder.json  
-change period duration from 3600 to 360 
change_segment_clean_up_period.1497509016.txt.gz · Last modified: 2023/03/09 22:35 (external edit)