1. 程式人生 > >【nginx-rtmp】09、指令(Directives)之 記錄(Record)

【nginx-rtmp】09、指令(Directives)之 記錄(Record)

五、記錄/錄製(Record) 01、record 語法:record [off|all|audio|video|keyframes|manual]* 上下文:rtmp, server, application, recorder 記錄模式切換,流可以記錄到flv檔案中,這個指令指定了哪些需要記錄: Toggles record mode. Stream can be recorded in flv file. This directive specifies what exactly should be recorded:
  • off  -  no recording at all  ;不再記錄
  • all  -  audio & video (everything)   ; 音訊&視訊 (所有東西)
  • audio  -  audio  ;音訊
  • video  -   video  ;視訊 
  • keyframes  -  only key video frames ;只記錄關鍵幀
  • manual  -  never start recorder automatically, use control interface to start/stop ;不自動記錄,使用控制介面來啟動或停止
在單個指令中,可以寫多個相容值的組合。 There can be any compatible combination of keys in a single record directive. record all; record audio keyframes; 02、record_path 03、record_suffix 04、record_unique 05、record_append 06、record_lock 07、record_max_size 08、record_max_frames 09、record_interval 10、recorder 11、record_notify 參考:https://github.com/arut/nginx-rtmp-module/wiki/Directives