application myapp {
live on;
exec ffmpeg -i rtmp://localhost/myapp/$name -c copy
-f flv rtmp://example.com/myapp/$name 2>>/var/log/ffmpeg-$name.log;
}
Now you have a single log file like /var/log/ffmpeg-mystream.log for each stream where you can find all ffmpeg output including errors. You can redirect stdout (1>/var/log/ffmpeg-$name.out) and any other stream (1>&2) as well. Both truncate > and append >> modes are supported as well as usual variable substitutions .
Should this feature work with exec_static directive?
ReplyDeleteyes
ReplyDelete