Former-commit-id: 9a204905ff42951c8b4686fbd2c8fce8b5de4ab9 Former-commit-id: 87629352bdd6b9a004ebd4d1300e8c182fdfb91bTSXN
parent
f6be8cb1a0
commit
a4d2ab3323
@ -1,66 +0,0 @@
|
|||||||
listen 1935;
|
|
||||||
max_connections 1000;
|
|
||||||
srs_log_tank file;
|
|
||||||
srs_log_file ./objs/log/srs.log;
|
|
||||||
daemon off;
|
|
||||||
http_api {
|
|
||||||
enabled on;
|
|
||||||
listen 1985;
|
|
||||||
raw_api {
|
|
||||||
enabled on;
|
|
||||||
allow_reload on;
|
|
||||||
allow_query on;
|
|
||||||
allow_update on;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
http_server {
|
|
||||||
enabled on;
|
|
||||||
listen 8080;
|
|
||||||
dir ./objs/nginx/html;
|
|
||||||
}
|
|
||||||
stats {
|
|
||||||
network 0;
|
|
||||||
disk sda sdb xvda xvdb;
|
|
||||||
}
|
|
||||||
vhost __defaultVhost__ {
|
|
||||||
transcode live {
|
|
||||||
enabled off;
|
|
||||||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
|
||||||
engine snapshot {
|
|
||||||
enabled on;
|
|
||||||
iformat flv;
|
|
||||||
vfilter {
|
|
||||||
vf fps=1;
|
|
||||||
}
|
|
||||||
vcodec png;
|
|
||||||
vparams {
|
|
||||||
vframes 1;
|
|
||||||
}
|
|
||||||
acodec an;
|
|
||||||
oformat image2;
|
|
||||||
output ./objs/nginx/html/[app]/[stream].png;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
http_remux {
|
|
||||||
enabled on;
|
|
||||||
mount [vhost]/[app]/[stream].flv;
|
|
||||||
}
|
|
||||||
hls {
|
|
||||||
enabled on;
|
|
||||||
hls_fragment 3;
|
|
||||||
hls_window 10;
|
|
||||||
hls_path ./objs/nginx/html;
|
|
||||||
hls_m3u8_file [app]/[stream].m3u8;
|
|
||||||
hls_ts_file [app]/[stream]-[seq].ts;
|
|
||||||
}
|
|
||||||
dvr {
|
|
||||||
enabled on;
|
|
||||||
dvr_apply none;
|
|
||||||
dvr_path ./objs/nginx/html/video/[app].[stream].[timestamp].mp4;
|
|
||||||
time_jitter full;
|
|
||||||
}
|
|
||||||
http_hooks {
|
|
||||||
enabled on;
|
|
||||||
on_dvr http://172.172.0.80/IoTCenter/api/v1/Srs/OnDvr http://host.docker.internal/IoTCenter/api/v1/Srs/OnDvr;
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in new issue