I'm unable to start restream using command exec
. Also I tried exec_pull
.
It didn't help. My target is to restream rtmp://ktv.s4c.link/live/livestream
url to my local nginx, to rtmp://localhost:1935/hls
.
/tmp/logs/ffmpeg.log
is empty.
I guess that exec
not even called, but why?
rtmp {
server {
listen 1935;
chunk_size 4096;
application live {
allow play all;
live on;
record off;
#pull rtmp://ktv.s4c.link/live/livestream;
exec ffmpeg -i rtmp://localhost:1935/live -f flv rtmp://localhost:1935/hls 2>>/tmp/logs/ffmpeg.log;
}
application hls {
allow play all;
live on;
record off;
}
}
I'm using nginx-1.12.0. I followed by this tutorial, watched this