正在显示
2 个修改的文件
包含
14 行增加
和
3 行删除
@@ -170,7 +170,6 @@ vhost players { | @@ -170,7 +170,6 @@ vhost players { | ||
170 | } | 170 | } |
171 | } | 171 | } |
172 | } | 172 | } |
173 | - | ||
174 | vhost players_pub { | 173 | vhost players_pub { |
175 | hls { | 174 | hls { |
176 | enabled on; | 175 | enabled on; |
@@ -190,7 +189,19 @@ vhost players_chat { | @@ -190,7 +189,19 @@ vhost players_chat { | ||
190 | ffmpeg ./objs/ffmpeg/bin/ffmpeg; | 189 | ffmpeg ./objs/ffmpeg/bin/ffmpeg; |
191 | engine chat_hls { | 190 | engine chat_hls { |
192 | enabled on; | 191 | enabled on; |
193 | - vcodec copy; | 192 | + vfilter { |
193 | + } | ||
194 | + vcodec libx264; | ||
195 | + vbitrate 300; | ||
196 | + vfps 15; | ||
197 | + vwidth 768; | ||
198 | + vheight 320; | ||
199 | + vthreads 1; | ||
200 | + vprofile baseline; | ||
201 | + vpreset fast; | ||
202 | + vparams { | ||
203 | + g 30; | ||
204 | + } | ||
194 | acodec libaacplus; | 205 | acodec libaacplus; |
195 | abitrate 30; | 206 | abitrate 30; |
196 | asample_rate 44100; | 207 | asample_rate 44100; |
@@ -206,6 +217,6 @@ vhost chat_hls { | @@ -206,6 +217,6 @@ vhost chat_hls { | ||
206 | enabled on; | 217 | enabled on; |
207 | hls_path ./objs/nginx/html; | 218 | hls_path ./objs/nginx/html; |
208 | hls_fragment 2; | 219 | hls_fragment 2; |
209 | - hls_window 8; | 220 | + hls_window 10; |
210 | } | 221 | } |
211 | } | 222 | } |
-
请 注册 或 登录 后发表评论