add encode mode
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-09-20 02:49:49 +02:00
parent 0fc0ae1ff7
commit e0a298da5b
6 changed files with 66 additions and 19 deletions

17
config/nginx_encode.conf Normal file
View File

@ -0,0 +1,17 @@
daemon off;
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 8192;
application origin {
live on;
record off;
meta copy;
exec ffmpeg -i rtmp://localhost:1935/origin/___STREAMKEY___ ___FFMPEG_ARGS___ ___ENCOE_PUSH_URL___;
}
}
}

23
config/nginx_ingest.conf Normal file
View File

@ -0,0 +1,23 @@
daemon off;
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 8192;
application origin {
live on;
record off;
meta copy;
exec ffmpeg -i rtmp://localhost:1935/origin/___STREAMKEY___ -c copy -f flv rtmp://127.0.0.1:1935/live;
}
application live {
allow publish 127.0.0.1;
deny publish all;
live on;
record off;
}
}
}

View File

@ -0,0 +1,17 @@
daemon off;
worker_processes 1;
events {
worker_connections 1024;
}
rtmp {
server {
listen 1935;
chunk_size 8192;
application origin {
live on;
record off;
meta copy;
___PUSH_DIRECTIVES___
}
}
}