{"id":442701,"date":"2026-06-11T17:03:08","date_gmt":"2026-06-11T09:03:08","guid":{"rendered":"https:\/\/idc.net\/help\/?p=442701"},"modified":"2026-06-11T17:03:08","modified_gmt":"2026-06-11T09:03:08","slug":"%e6%b5%b7%e5%a4%96%e7%9b%b4%e6%92%ad%e6%8e%a8%e6%b5%81%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%80%8e%e4%b9%88%e9%80%89%ef%bc%9f%e4%bd%8e%e5%bb%b6%e8%bf%9f%e6%8e%a8%e6%b5%81%e8%8a%82%e7%82%b9%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/idc.net\/help\/442701\/","title":{"rendered":"\u6d77\u5916\u76f4\u64ad\u63a8\u6d41\u670d\u52a1\u5668\u600e\u4e48\u9009\uff1f\u4f4e\u5ef6\u8fdf\u63a8\u6d41\u8282\u70b9\u914d\u7f6e\u4e0eOBS\u53c2\u6570\u8c03\u4f18\u6307\u5357"},"content":{"rendered":"<p>\u8de8\u5883\u76f4\u64ad\u5e26\u8d27\u3001\u6d77\u5916\u6559\u80b2\u76f4\u64ad\u3001\u6e38\u620f\u76f4\u64ad\u7b49\u573a\u666f\u5bf9\u670d\u52a1\u5668\u5ef6\u8fdf\u548c\u7a33\u5b9a\u6027\u8981\u6c42\u6781\u9ad8\u3002\u63a8\u6d41\u670d\u52a1\u5668\u7684\u9009\u62e9\u76f4\u63a5\u5f71\u54cd\u753b\u8d28\u3001\u5361\u987f\u9891\u7387\u548c\u89c2\u770b\u4f53\u9a8c\u3002\u672c\u6587\u4ece\u670d\u52a1\u5668\u9009\u578b\u5230OBS\u53c2\u6570\u8c03\u4f18\uff0c\u7ed9\u51fa\u5b8c\u6574\u7684\u4f4e\u5ef6\u8fdf\u76f4\u64ad\u65b9\u6848\u3002<\/p>\n<h2>\u4e00\u3001\u76f4\u64ad\u63a8\u6d41\u67b6\u6784\u539f\u7406<\/h2>\n<p>\u5178\u578b\u7684\u76f4\u64ad\u63a8\u6d41\u94fe\u8def\u4e3a\uff1a<strong>\u4e3b\u64ad\u7aef\uff08OBS\uff09\u2192 \u63a8\u6d41\u670d\u52a1\u5668\uff08\u4e2d\u8f6c\uff09\u2192 CDN\u5206\u53d1 \u2192 \u89c2\u4f17\u7aef<\/strong>\u3002\u63a8\u6d41\u670d\u52a1\u5668\u627f\u62c5\u63a5\u6536\u4e3b\u64ad\u63a8\u6d41\u5e76\u5411CDN\u6216\u89c2\u4f17\u5206\u53d1\u7684\u6838\u5fc3\u804c\u8d23\uff0c\u5176\u5730\u7406\u4f4d\u7f6e\u51b3\u5b9a\u4e86\u4e3b\u64ad\u63a8\u6d41\u7684\u5ef6\u8fdf\u548c\u7a33\u5b9a\u6027\u3002<\/p>\n<h2>\u4e8c\u3001\u4e3a\u4ec0\u4e48\u9009\u9999\u6e2f\u4f5c\u4e3a\u63a8\u6d41\u8282\u70b9\uff1f<\/h2>\n<ul>\n<li><strong>\u9762\u5411\u5927\u9646\u89c2\u4f17<\/strong>\uff1a\u9999\u6e2fCN2 GIA\u7ebf\u8def\u5927\u9646\u5ef6\u8fdf10~30ms\uff0c\u753b\u9762\u6d41\u7545\u65e0\u5361\u987f<\/li>\n<li><strong>\u9762\u5411\u4e1c\u5357\u4e9a\u89c2\u4f17<\/strong>\uff1a\u9999\u6e2f\u662f\u4e9a\u592a\u7f51\u7edc\u67a2\u7ebd\uff0c\u8fde\u63a5\u4e1c\u5357\u4e9a\u5404\u56fd\u7ebf\u8def\u8d28\u91cf\u4f18\u79c0<\/li>\n<li><strong>\u514d\u5907\u6848<\/strong>\uff1a\u56fd\u5185\u5e73\u53f0\u63a8\u6d41\u670d\u52a1\u5668\u9700\u5907\u6848\uff0c\u9999\u6e2f\u670d\u52a1\u5668\u76f4\u63a5\u4f7f\u7528<\/li>\n<li><strong>\u5e26\u5bbd\u5f39\u6027<\/strong>\uff1a1080P\u76f4\u64ad\u7ea6\u97004~8Mbps\u4e0a\u884c\uff0c4K\u76f4\u64ad\u7ea6\u970015~25Mbps<\/li>\n<\/ul>\n<h3>\u5404\u8282\u70b9\u5ef6\u8fdf\u5bf9\u6bd4\uff08\u4e3b\u64ad\u5728\u5927\u9646\uff09<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u63a8\u6d41\u8282\u70b9<\/th>\n<th>\u5927\u9646\u4e3b\u64ad\u4e0a\u884c\u5ef6\u8fdf<\/th>\n<th>\u5927\u9646\u89c2\u4f17\u4e0b\u884c\u5ef6\u8fdf<\/th>\n<th>\u63a8\u8350\u573a\u666f<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u9999\u6e2f\uff08CN2 GIA\uff09<\/td>\n<td>10~30ms<\/td>\n<td>10~30ms<\/td>\n<td>\u9762\u5411\u5927\u9646\u89c2\u4f17\u9996\u9009<\/td>\n<\/tr>\n<tr>\n<td>\u65b0\u52a0\u5761<\/td>\n<td>60~90ms<\/td>\n<td>60~90ms<\/td>\n<td>\u4e1c\u5357\u4e9a\u89c2\u4f17\u4e3a\u4e3b<\/td>\n<\/tr>\n<tr>\n<td>\u65e5\u672c<\/td>\n<td>40~80ms<\/td>\n<td>40~80ms<\/td>\n<td>\u65e5\u97e9\u89c2\u4f17\u4e3a\u4e3b<\/td>\n<\/tr>\n<tr>\n<td>\u7f8e\u56fd\u6d1b\u6749\u77f6<\/td>\n<td>150~220ms<\/td>\n<td>150~220ms<\/td>\n<td>\u6b27\u7f8e\u89c2\u4f17\u4e3a\u4e3b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2>\u4e09\u3001\u642d\u5efaSRS\u63a8\u6d41\u670d\u52a1\u5668<\/h2>\n<p>SRS\uff08Simple Realtime Server\uff09\u662f\u56fd\u5185\u5f00\u6e90\u7684\u9ad8\u6027\u80fd\u76f4\u64ad\u670d\u52a1\u5668\uff0c\u652f\u6301RTMP\u3001HLS\u3001WebRTC\uff0c\u6027\u80fd\u6781\u5f3a\u3002<\/p>\n<h3>Docker\u5feb\u901f\u90e8\u7f72SRS<\/h3>\n<pre><code># \u62c9\u53d6SRS\u955c\u50cf\r\ndocker pull ossrs\/srs:5\r\n\r\n# \u8fd0\u884cSRS\u5bb9\u5668\r\ndocker run -d \\\r\n  --name srs \\\r\n  --restart always \\\r\n  -p 1935:1935 \\\r\n  -p 1985:1985 \\\r\n  -p 8080:8080 \\\r\n  ossrs\/srs:5 \\\r\n  .\/objs\/srs -c conf\/docker.conf\r\n\r\n# \u67e5\u770b\u8fd0\u884c\u72b6\u6001\r\ndocker logs srs<\/code><\/pre>\n<h3>\u81ea\u5b9a\u4e49\u914d\u7f6e\u6587\u4ef6\uff08\u5f00\u542f\u5f55\u5236\u548cHLS\uff09<\/h3>\n<pre><code># \/etc\/srs\/srs.conf\r\nlisten              1935;\r\nmax_connections     1000;\r\ndaemon              off;\r\n\r\nvhost __defaultVhost__ {\r\n    hls {\r\n        enabled     on;\r\n        hls_path    .\/objs\/nginx\/html;\r\n        hls_fragment 10;\r\n        hls_window  60;\r\n    }\r\n\r\n    dvr {\r\n        enabled      on;\r\n        dvr_path     .\/objs\/dvr\/[app]\/[stream]\/[2006][01][02]-[15][04][05].mp4;\r\n        dvr_plan     session;\r\n    }\r\n}<\/code><\/pre>\n<h2>\u56db\u3001OBS\u63a8\u6d41\u53c2\u6570\u6700\u4f73\u914d\u7f6e<\/h2>\n<h3>\u57fa\u7840\u63a8\u6d41\u8bbe\u7f6e<\/h3>\n<p>OBS \u2192 \u8bbe\u7f6e \u2192 \u63a8\u6d41\uff1a<\/p>\n<ul>\n<li>\u670d\u52a1\uff1a\u81ea\u5b9a\u4e49<\/li>\n<li>\u670d\u52a1\u5668\uff1a<code>rtmp:\/\/\u4f60\u7684\u670d\u52a1\u5668IP\/live<\/code><\/li>\n<li>\u4e32\u6d41\u5bc6\u94a5\uff1a<code>livestream?secret=\u4f60\u7684\u5bc6\u94a5<\/code><\/li>\n<\/ul>\n<h3>\u8f93\u51fa\uff08\u7f16\u7801\uff09\u53c2\u6570\u914d\u7f6e<\/h3>\n<table>\n<thead>\n<tr>\n<th>\u53c2\u6570<\/th>\n<th>720P\u76f4\u64ad<\/th>\n<th>1080P\u76f4\u64ad<\/th>\n<th>1080P\u9ad8\u8d28\u91cf<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>\u7f16\u7801\u5668<\/td>\n<td>x264 \/ NVENC<\/td>\n<td>NVENC\uff08\u63a8\u8350\uff09<\/td>\n<td>NVENC<\/td>\n<\/tr>\n<tr>\n<td>\u7801\u7387\uff08Kbps\uff09<\/td>\n<td>2500~4000<\/td>\n<td>4000~6000<\/td>\n<td>8000~12000<\/td>\n<\/tr>\n<tr>\n<td>\u5173\u952e\u5e27\u95f4\u9694<\/td>\n<td>2\u79d2<\/td>\n<td>2\u79d2<\/td>\n<td>2\u79d2<\/td>\n<\/tr>\n<tr>\n<td>\u9884\u8bbe<\/td>\n<td>veryfast<\/td>\n<td>fast<\/td>\n<td>medium<\/td>\n<\/tr>\n<tr>\n<td>Profile<\/td>\n<td>main<\/td>\n<td>high<\/td>\n<td>high<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3>\u51cf\u5c11\u6389\u5e27\u7684\u5173\u952e\u8bbe\u7f6e<\/h3>\n<ul>\n<li>\u7f51\u7edc\u5e26\u5bbd\u9884\u7559\uff1a\u63a8\u6d41\u7801\u7387\u4e0d\u8d85\u8fc7\u4e0a\u884c\u5e26\u5bbd\u768470%\uff08\u5982\u4e0a\u884c10Mbps\uff0c\u7801\u7387\u63a7\u5236\u57287Mbps\u4ee5\u5185\uff09<\/li>\n<li>\u5f00\u542f\"\u7f51\u7edc\u4f18\u5316\"\uff1aOBS \u2192 \u9ad8\u7ea7 \u2192 \u7f51\u7edc \u2192 \u542f\u7528\u7f51\u7edc\u4f18\u5316<\/li>\n<li>\u52a8\u6001\u6bd4\u7279\u7387\uff1a\u5728\u5e26\u5bbd\u6ce2\u52a8\u65f6\u81ea\u52a8\u964d\u4f4e\u7801\u7387\u9632\u6b62\u5361\u987f<\/li>\n<\/ul>\n<h2>\u4e94\u3001Nginx-RTMP\u65b9\u6848\uff08\u8f7b\u91cf\u66ff\u4ee3\uff09<\/h2>\n<pre><code>apt install nginx libnginx-mod-rtmp -y<\/code><\/pre>\n<p>\u5728<code>\/etc\/nginx\/nginx.conf<\/code>\u672b\u5c3e\u6dfb\u52a0\uff1a<\/p>\n<pre><code>rtmp {\r\n    server {\r\n        listen 1935;\r\n        chunk_size 4096;\r\n\r\n        application live {\r\n            live on;\r\n            record off;\r\n\r\n            # \u8f6c\u63a8\u5230B\u7ad9\u3001YouTube\u7b49\u5e73\u53f0\r\n            push rtmp:\/\/live-push.bilivideo.com\/live-bvc\/\u4f60\u7684B\u7ad9\u63a8\u6d41\u7801;\r\n        }\r\n    }\r\n}<\/code><\/pre>\n<h2>\u516d\u3001\u591a\u5e73\u53f0\u540c\u65f6\u63a8\u6d41\u65b9\u6848<\/h2>\n<p>\u901a\u8fc7\u63a8\u6d41\u670d\u52a1\u5668\u7684\u8f6c\u63a8\u529f\u80fd\uff0cOBS\u53ea\u9700\u63a8\u6d41\u5230\u9999\u6e2f\u670d\u52a1\u5668\u4e00\u6b21\uff0c\u7531\u670d\u52a1\u5668\u81ea\u52a8\u8f6c\u63a8\u5230\u591a\u4e2a\u5e73\u53f0\uff0c\u8282\u7701\u4e3b\u64ad\u7aef\u5e26\u5bbd\uff1a<\/p>\n<pre><code># SRS\u914d\u7f6e\u8f6c\u63a8\u591a\u5e73\u53f0\r\nforward {\r\n    enabled on;\r\n    destination rtmp:\/\/a.rtmp.youtube.com\/live2\/\u4f60\u7684YouTube\u5bc6\u94a5;\r\n    destination rtmp:\/\/live-push.bilivideo.com\/live-bvc\/\u4f60\u7684B\u7ad9\u5bc6\u94a5;\r\n}<\/code><\/pre>\n<h2>\u4e03\u3001\u603b\u7ed3<\/h2>\n<p>\u9999\u6e2f\u670d\u52a1\u5668\u662f\u9762\u5411\u5927\u9646\u89c2\u4f17\u7684\u76f4\u64ad\u63a8\u6d41\u6700\u4f18\u8282\u70b9\uff0c\u5ef6\u8fdf\u4f4e\u3001\u7a33\u5b9a\u6027\u5f3a\u3002SRS\u63a8\u6d41\u670d\u52a1\u5668\u914d\u5408OBS\uff0c\u53ef\u5b9e\u73b0\u4e13\u4e1a\u7ea7\u7684\u4f4e\u5ef6\u8fdf\u76f4\u64ad\u67b6\u6784\u3002IDC.Net\u63d0\u4f9b<a href=\"https:\/\/idc.net\/cloud-hk\/\">\u9999\u6e2f\u72ec\u7acb\u670d\u52a1\u5668\u548cVPS<\/a>\uff0c\u5927\u5e26\u5bbd\u65b9\u6848\u6700\u9ad8\u652f\u6301100Mbps\u72ec\u4eab\u5e26\u5bbd\uff0c\u5b8c\u5168\u6ee1\u8db3\u9ad8\u6e05\u76f4\u64ad\u9700\u6c42\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8de8\u5883\u76f4\u64ad\u5e26\u8d27\u3001\u6d77\u5916\u6559\u80b2\u76f4\u64ad\u3001\u6e38\u620f\u76f4\u64ad\u7b49\u573a\u666f\u5bf9\u670d\u52a1\u5668\u5ef6\u8fdf\u548c\u7a33\u5b9a\u6027\u8981\u6c42\u6781\u9ad8\u3002\u63a8\u6d41\u670d\u52a1\u5668\u7684\u9009\u62e9\u76f4\u63a5\u5f71\u54cd\u753b\u8d28\u3001\u5361\u987f\u9891\u7387 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[202646],"tags":[],"class_list":["post-442701","post","type-post","status-publish","format-standard","hentry","category-hkserver"],"_links":{"self":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/442701","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/comments?post=442701"}],"version-history":[{"count":1,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/442701\/revisions"}],"predecessor-version":[{"id":442702,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/posts\/442701\/revisions\/442702"}],"wp:attachment":[{"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/media?parent=442701"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/categories?post=442701"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/idc.net\/help\/wp-json\/wp\/v2\/tags?post=442701"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}