mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-02 06:39:32 +02:00
split line
This commit is contained in:
parent
1b5e19d4e7
commit
4fd9c6c15c
|
@ -144,7 +144,8 @@ rtmp_auto_push directive.
|
||||||
#
|
#
|
||||||
# Multiple exec lines can be specified.
|
# Multiple exec lines can be specified.
|
||||||
|
|
||||||
exec ffmpeg -re -i rtmp://localhost:1935/$app/$name -vcodec flv -acodec copy -s 32x32 -f flv rtmp://localhost:1935/small/${name};
|
exec ffmpeg -re -i rtmp://localhost:1935/$app/$name -vcodec flv -acodec copy -s 32x32
|
||||||
|
-f flv rtmp://localhost:1935/small/${name};
|
||||||
}
|
}
|
||||||
|
|
||||||
application small {
|
application small {
|
||||||
|
@ -156,7 +157,8 @@ rtmp_auto_push directive.
|
||||||
live on;
|
live on;
|
||||||
|
|
||||||
# Stream from local webcam
|
# Stream from local webcam
|
||||||
exec_static ffmpeg -f video4linux2 -i /dev/video0 -c:v libx264 -an -f flv rtmp://localhost:1935/webcam/mystream;
|
exec_static ffmpeg -f video4linux2 -i /dev/video0 -c:v libx264 -an
|
||||||
|
-f flv rtmp://localhost:1935/webcam/mystream;
|
||||||
}
|
}
|
||||||
|
|
||||||
application mypush {
|
application mypush {
|
||||||
|
|
Loading…
Reference in a new issue