时间:2021-07-01 10:21:17 帮助过:47人阅读
application hls {
live on;
hls on;
record all;
record_path /home/zhanghui/test;
#record_interval 10s;
#record_append on;
hls_path /tmp/app;
hls_fragment 5s;
# convert recorded file to mp4 format
exec_record_done '/usr/local/bin/ffmpeg' -y -i /home/zhanghui/test/livestream.flv -vcodec libx264 -f mp4 /home/zhanghui/test/test_record.mp4 2>>/home/zhanghui/test/test_record.log;
}以上就介绍了如何在nginx服务器上实现多媒体流的录制和转码,包括了方面的内容,希望对PHP教程有兴趣的朋友有所帮助。