parent
5cde588b6d
commit
8848ff19f9
@ -1,8 +1,10 @@
|
||||
influxdb
|
||||
portainer/data
|
||||
mysql
|
||||
influxdb
|
||||
srs/objs
|
||||
log
|
||||
UserCenter
|
||||
IoTCenter
|
||||
JobServer
|
||||
WebMVC
|
||||
WebSPA
|
||||
WebSPA
|
@ -0,0 +1,65 @@
|
||||
listen 1935;
|
||||
daemon off;
|
||||
max_connections 1000;
|
||||
srs_log_tank file;
|
||||
srs_log_file ./objs/srs.log;
|
||||
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 on;
|
||||
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;
|
||||
}
|
||||
http_hooks {
|
||||
enabled on;
|
||||
on_dvr http://iotcenter/IoTCenter/api/v1/Srs/OnDvr;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue