コマンドexec
を使用して復元を開始できません。また、私はexec_pull
を試しました。 それは役に立たなかった。私の目標は、rtmp://localhost:1935/hls
に私のローカルnginxにrtmp://ktv.s4c.link/live/livestream
URLを復元することです。 /tmp/logs/ffmpeg.log
は空です。 私はexec
も呼ばれていないと思いますが、なぜですか?nginx-rtmp-moduleで復元できません
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;
}
}
私はnginx-1.12.0を使用しています。 私はnobody
ユーザーとして、すべてのEXECコマンドを実行しているnginxのを認識して、だからすべての最初をthis