mirror of
https://github.com/livepeer/lpms
synced 2025-09-26 19:51:36 +08:00
65 lines
1.7 KiB
Plaintext
Executable File
65 lines
1.7 KiB
Plaintext
Executable File
listen 2435;
|
|
max_connections 200;
|
|
daemon off;
|
|
srs_log_tank console;
|
|
http_server {
|
|
enabled on;
|
|
listen 7935;
|
|
dir ./objs/nginx/html;
|
|
}
|
|
|
|
vhost __defaultVhost__ {
|
|
hls {
|
|
enabled on;
|
|
hls_fragment 10;
|
|
hls_window 60;
|
|
hls_path ./objs/nginx/html;
|
|
hls_m3u8_file [app]/[stream].m3u8;
|
|
hls_ts_file [app]/[stream]-[seq].ts;
|
|
}
|
|
|
|
transcode {
|
|
enabled on;
|
|
ffmpeg /usr/local/bin/ffmpeg;
|
|
engine hls500 {
|
|
enabled on;
|
|
vfilter {
|
|
}
|
|
vcodec libx264;
|
|
vbitrate 500;
|
|
vfps 25;
|
|
vwidth 720;
|
|
vheight 480;
|
|
vthreads 12;
|
|
vprofile main;
|
|
vpreset medium;
|
|
vparams {
|
|
}
|
|
acodec libfdk_aac;
|
|
aparams {
|
|
}
|
|
output rtmp://127.0.0.1:[port]/[app]?vhost=[vhost]/[stream]_[engine];
|
|
}
|
|
engine hls1000 {
|
|
enabled on;
|
|
vfilter {
|
|
}
|
|
vcodec libx264;
|
|
vbitrate 1000;
|
|
vfps 25;
|
|
vwidth 720;
|
|
vheight 480;
|
|
vthreads 12;
|
|
vprofile main;
|
|
vpreset medium;
|
|
vparams {
|
|
}
|
|
acodec libfdk_aac;
|
|
aparams {
|
|
}
|
|
output rtmp://127.0.0.1:[port]/[app]?vhost=[vhost]/[stream]_[engine];
|
|
}
|
|
}
|
|
}
|
|
|