# 2. zero, only ensure sttream start at zero, ignore timestamp jitter. # 3. off, disable the time jitter algorithm, like atc. # default: full time_jitter full; # whether use the interleaved/mixed algorithm to correct the timestamp. # if on, always ensure the timestamp of audio+video...
DVR作为SRS3的核心功能,永远开启DVR,只需要在配置文件的vhostdefaultVhost 加入以下内容即可 ``` dvr { enabled on; dvrapply all; dvrplan segment; dvrpath ./objs/nginx/html/[app]/[2006]/[01]/[stream]-[02]-[15].[04].[05].[999].mp4; dvrduration 30; dvrwaitkeyframe on; time_jitter ful...
注意:若不按关键帧切flv(即dvr_wait_keyframe配置为off),所以会导致后面的flv启动时会花屏。 time_jitter: 时间戳抖动算法。full使用完全的时间戳矫正;zero只是保证从0开始;off不矫正时间戳。 dvr_path: 录制的路径 DVR支持的变量包括: 年:[2006],将这个字符串替换为年份。 月:[01],将这个字符串替换成月份。
在vhost中配置时间戳矫正: vhost jitter.srs.com { about the stream monotonically increasing: # 1. video timestamp is monotonically increasing,# 2. audio timestamp is monotonically increasing,# 3. video and audio timestamp is interleaved monotonically increasing.# it's specified by RTMP specification...
time_jitter full;# on_dvr,never configinhere,should configinhttp_hooks.#forthe dvr http callback,@see http_hooks.on_dvrofvhost hooks.callback.srs.com # @read https://github.com/ossrs/srs/wiki/v3_CN_DVR#http-callback # @read https://github.com/ossrs/srs/wiki/v3_CN_DVR#http-call...
time_jitter full; }rtc { enabled on; # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtmp-to-rtcrtmp_to_rtc on; # @see https://ossrs.net/lts/zh-cn/docs/v4/doc/webrtc#rtc-to-rtmprtc_to_rtmp on; } http_remux { ...
time_jitter full;}} 二、配置SRS 开启HTTP API 修改conf目录下的srs.conf文件,增加如下配置 stats{network0;disk sda sdb xvda xvdb;}http_api{enabled on;listen1985;crossdomain on;raw_api{enabled off;allow_reload off;allow_query off;allow_update off;}}...
SRS is a simple, high-efficiency, real-time media server supporting RTMP, WebRTC, HLS, HTTP-FLV, HTTP-TS, SRT, MPEG-DASH, and GB28181. - v4_CN_TimeJitter · ossrs/srs Wiki
time_jitter: 时间戳抖动算法。full使用完全的时间戳矫正;zero只是保证从0开始;off不矫正时间戳。 dvr_path: 录制的路径,规则参考下一章。 参考conf/dvr.segment.conf和conf/dvr.session.conf配置实例。 Apply DVR的apply决定了是否对某个流开启dvr,默认的all是对所有开启。 这个功能是SRS实现nginx提供的control mo...
time_jitter full; } } 这里该了http的服务端口为80,添加了保存rtmp流文件的配置,指定存储路径./objs/nginx/html/[app]/[stream].flv。 启动SRS: 1 ./objs/srs-c conf/my.http.flv.live.conf 接下来就是推流了。 假定你安装了ffmpeg。 1 ffmpeg-re-i/root/Videos/video.flv-c copy-f flv rtmp://...