相信有人能看得懂。看懂了请回复。
application record {
live on;
hls on;
hls_path /home/record;
hls_fragment 5s;
record all;
record_path /home/record;
record_suffix -20%y-%m-%d-%H-%M-%S.flv;
record_interval 15m;
exec_record_done bash -c "/usr/local/bin/ffmpeg -y -i $path -codec copy -f mp4 $dirname/$basename.mp4; rm -f $path";
# track client info
exec_play bash -c "echo `date` $addr $app $addr $pageurl >> /tmp/clients";
exec_publish bash -c "echo `date` $addr $flashver >> /tmp/publishers";
}
转载于:https://my.oschina.net/mingyuejingque/blog/479187