off when the main stream ends
am i supposed to have my main stream on live or fallback application? either way it doesnt switch over for some reason
am i missing sth?
rtmp { server { listen 1935; chunk_size 4096; application live { live on; record off; # When a stream is published, start the FFmpeg fallback process exec_push ffmpeg -re -i /path/to/silent.wav -c:a pcm_s16le -f flv rtmp://localhost/fallback/$name; # When the main stream is stopped, stop the FFmpeg fallback process exec_push_done killall -9 ffmpeg; } application fallback { live on; record off; # Pull the fallback stream into the main stream when the main stream is down pull rtmp://localhost/live/$name name=$name fallback; } } }
nginx[13441]: nginx: [emerg] unknown directive "exec_push_done" in /etc/nginx/nginx.conf:22
also nginx: [emerg] "pull" directive unsuppored parameter in /etc/nginx/nginx.conf:29
Обсуждают сегодня