【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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章