Вот мой код:
application stream {
live on;
record all;
record_interval 15s;
record_path /opt/data/record;
# record_max_size 100000K;
record_unique on;
record_suffix -%d-%b-%y-%T.flv;
exec_record_done ffmpeg -i $path -c copy /opt/data/record/$basename.mp4;
exec ffmpeg -i rtmp://localhost:1936/stream/$name
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 1000k -f flv -g 30 -r 30 -s 854x480 -preset superfast -profile:v baseline rtmp://localhost:1936/hls/$name_480p1128kbs
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 750k -f flv -g 30 -r 30 -s 640x360 -preset superfast -profile:v baseline rtmp://localhost:1936/hls/$name_360p878kbs
-c:a libfdk_aac -b:a 128k -c:v libx264 -b:v 400k -f flv -g 30 -r 30 -s 426x240 -preset superfast -profile:v baseline rtmp://localhost:1936/hls/$name_240p528kbs
-c:a libfdk_aac -b:a 64k -c:v libx264 -b:v 200k -f flv -g 15 -r 15 -s 426x240 -preset superfast -profile:v baseline rtmp://localhost:1936/hls/$name_240p264kbs;
}
application vod {
play /opt/data/record/;
}
Есть ли способ установить путь записи к другому серверу / компьютеру в локальной локальной сети?
Заранее спасибо