V2 upgrade
This commit is contained in:
55
docker/srs-origin.conf
Normal file
55
docker/srs-origin.conf
Normal file
@ -0,0 +1,55 @@
|
||||
listen 1935;
|
||||
max_connections 1000;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
|
||||
http_api {
|
||||
enabled on;
|
||||
listen 1985;
|
||||
}
|
||||
|
||||
http_server {
|
||||
enabled on;
|
||||
listen 8080;
|
||||
}
|
||||
|
||||
vhost hls.zap.stream {
|
||||
cluster {
|
||||
mode local;
|
||||
}
|
||||
|
||||
hls {
|
||||
enabled on;
|
||||
hls_dispose 30;
|
||||
hls_fragment 2;
|
||||
hls_window 20;
|
||||
}
|
||||
|
||||
rtc {
|
||||
enabled on;
|
||||
rtmp_to_rtc on;
|
||||
}
|
||||
|
||||
http_hooks {
|
||||
enabled on;
|
||||
on_publish http://10.100.2.226:5295/api/srs;
|
||||
on_unpublish http://10.100.2.226:5295/api/srs;
|
||||
on_hls http://10.100.2.226:5295/api/srs;
|
||||
}
|
||||
|
||||
transcode {
|
||||
enabled on;
|
||||
ffmpeg ./objs/ffmpeg/bin/ffmpeg;
|
||||
|
||||
engine {
|
||||
enabled on;
|
||||
vcodec png;
|
||||
acodec an;
|
||||
vparams {
|
||||
vframes 1;
|
||||
}
|
||||
oformat image2;
|
||||
output ./objs/nginx/html/[app]/[stream].png;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user