关闭

nginx配置rtmp多分辨率

别叨叨 1年前 ⋅ 143 阅读
rtmp {
	server {
		listen 1935;
		chunk_size 4096;
		application live {
			live on;
			record off;
			allow publish 127.0.0.1;
			allow publish 0.0.0.0;
			deny publish all;
			exec ffmpeg -i rtmp://localhost/live/$name -threads 1 -c:v libx264 -profile:v baseline -b:v 350K -s 640x360 -f flv -c:a aac -ac 1 -strict -2 -b:a 56k rtmp://localhost/live360p/$name;
		}
		application live360p {
			live on;
			record off;
			allow publish 127.0.0.1;
			allow publish 0.0.0.0;
			deny publish all;
		}
	}
}

全部评论: 0

    我有话说: