五、记录/录制(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