{"id":14181,"date":"2025-04-18T20:58:48","date_gmt":"2025-04-18T12:58:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/14181.html"},"modified":"2025-04-18T20:58:48","modified_gmt":"2025-04-18T12:58:48","slug":"linux%e4%b8%8b%e6%90%ad%e5%bb%bartmp%e8%a7%86%e9%a2%91%e7%82%b9%e6%92%ad%e3%80%81%e7%9b%b4%e6%92%ad%e3%80%81hls%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/14181.html","title":{"rendered":"linux\u4e0b\u642d\u5efaRTMP\u89c6\u9891\u70b9\u64ad\u3001\u76f4\u64ad\u3001HLS\u670d\u52a1\u5668"},"content":{"rendered":"<h4>\u200b\u4e00\u3001\u73af\u5883\u51c6\u5907\u200b\u200b<\/h4>\n<h5>\u200b\u200b1. \u670d\u52a1\u5668\u8981\u6c42\u200b\u200b<\/h5>\n<ul>\n<li>\u200b\u200b\u64cd\u4f5c\u7cfb\u7edf\u200b\u200b&#xff1a;Ubuntu\/CentOS\/Debian&#xff08;\u63a8\u8350 Ubuntu 22.04 LTS&#xff09;<\/li>\n<li>\u200b\u200b\u786c\u4ef6\u914d\u7f6e\u200b\u200b&#xff1a;4GB \u5185\u5b58 &#043; 2 \u6838 CPU&#xff08;HLS \u8f6c\u7801\u9700\u66f4\u9ad8\u914d\u7f6e&#xff09;<\/li>\n<li>\u200b\u200b\u4f9d\u8d56\u5e93\u200b\u200b&#xff1a;gcc\u3001make\u3001pcre\u3001zlib\u3001openssl<\/li>\n<\/ul>\n<h5>\u200b\u200b2. \u5b89\u88c5 Nginx &#043; RTMP \u6a21\u5757\u200b\u200b<\/h5>\n<p># \u4e0b\u8f7d Nginx \u548c RTMP \u6a21\u5757\u6e90\u7801<br \/>\nwget http:\/\/nginx.org\/download\/nginx-1.25.3.tar.gz<br \/>\ngit clone https:\/\/github.com\/arut\/nginx-rtmp-module<\/p>\n<p># \u7f16\u8bd1\u5b89\u88c5<br \/>\ntar -zxvf nginx-1.25.3.tar.gz<br \/>\ncd nginx-1.25.3<br \/>\n.\/configure &#8211;add-module&#061;.\/nginx-rtmp-module &#8211;with-http_ssl_module<br \/>\nmake &amp;&amp; sudo make install <\/p>\n<h5>\u200b\u200b3. \u5b89\u88c5 FFmpeg\u200b\u200b<\/h5>\n<p>sudo apt-get install ffmpeg  # Ubuntu\/Debian<br \/>\n# \u6216\u624b\u52a8\u7f16\u8bd1\u5b89\u88c5\u6700\u65b0\u7248&#xff08;\u652f\u6301 H.265 \u786c\u7f16\u89e3\u7801&#xff09; <\/p>\n<hr \/>\n<h4>\u200b\u200b\u4e8c\u3001Nginx \u914d\u7f6e\u200b\u200b<\/h4>\n<h5>\u200b\u200b1. \u57fa\u7840 RTMP \u914d\u7f6e\u200b\u200b<\/h5>\n<p>\u7f16\u8f91\u00a0\/usr\/local\/nginx\/conf\/nginx.conf&#xff0c;\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9&#xff1a;<\/p>\n<p>rtmp {<br \/>\n    server {<br \/>\n        listen 1935;          # RTMP \u9ed8\u8ba4\u7aef\u53e3<br \/>\n        chunk_size 4096;      # \u6570\u636e\u5757\u5927\u5c0f<\/p>\n<p>        # \u76f4\u64ad\u5e94\u7528<br \/>\n        application live {<br \/>\n            live on;          # \u5f00\u542f\u76f4\u64ad<br \/>\n            record off;       # \u5173\u95ed\u5f55\u5236<br \/>\n            # HLS \u652f\u6301<br \/>\n            hls on;<br \/>\n            hls_path \/tmp\/hls;  # HLS \u6587\u4ef6\u5b58\u50a8\u8def\u5f84<br \/>\n            hls_fragment 5s;    # \u6bcf\u4e2a TS \u6587\u4ef6\u65f6\u957f<br \/>\n            hls_playlist_length 60s;  # \u64ad\u653e\u5217\u8868\u957f\u5ea6<br \/>\n        }<\/p>\n<p>        # \u70b9\u64ad\u5e94\u7528<br \/>\n        application vod {<br \/>\n            play \/opt\/video\/vod;  # \u70b9\u64ad\u6587\u4ef6\u76ee\u5f55<br \/>\n        }<br \/>\n    }<br \/>\n}<\/p>\n<p>http {<br \/>\n    server {<br \/>\n        listen 80;<br \/>\n        server_name localhost;<\/p>\n<p>        # HLS \u8bbf\u95ee\u914d\u7f6e<br \/>\n        location \/hls {<br \/>\n            types {<br \/>\n                application\/vnd.apple.mpegurl m3u8;<br \/>\n                video\/mp2t ts;<br \/>\n            }<br \/>\n            root \/tmp;<br \/>\n            add_header Cache-Control no-cache;<br \/>\n            add_header Access-Control-Allow-Origin *;  # \u8de8\u57df\u652f\u6301<br \/>\n        }<\/p>\n<p>        # RTMP \u72b6\u6001\u76d1\u63a7<br \/>\n        location \/stat {<br \/>\n            rtmp_stat all;<br \/>\n            rtmp_stat_stylesheet stat.xsl;<br \/>\n        }<br \/>\n        location \/stat.xsl {<br \/>\n            root \/usr\/local\/nginx\/nginx-rtmp-module;<br \/>\n        }<br \/>\n    }<br \/>\n} <\/p>\n<h5>\u200b\u200b2. \u542f\u7528 HTTP-FLV \u652f\u6301&#xff08;\u53ef\u9009&#xff09;\u200b\u200b<\/h5>\n<p>\u5b89\u88c5\u00a0nginx-http-flv-module&#xff1a;<\/p>\n<p>git clone https:\/\/github.com\/winshining\/nginx-http-flv-module<br \/>\n.\/configure &#8211;add-module&#061;.\/nginx-http-flv-module &#8211;add-module&#061;.\/nginx-rtmp-module<br \/>\nmake &amp;&amp; sudo make install <\/p>\n<p>\u914d\u7f6e\u00a0\/etc\/nginx\/conf.d\/flv.conf&#xff1a;<\/p>\n<p>location \/live {<br \/>\n    flv;<br \/>\n    root \/tmp\/hls;<br \/>\n    add_header Access-Control-Allow-Origin *;<br \/>\n} <\/p>\n<hr \/>\n<h4>\u200b\u200b\u4e09\u3001\u529f\u80fd\u5b9e\u73b0\u200b\u200b<\/h4>\n<h5>\u200b\u200b1. RTMP \u76f4\u64ad\u63a8\u6d41\u4e0e\u64ad\u653e\u200b\u200b<\/h5>\n<ul>\n<li>\u200b\u200b\u63a8\u6d41\u5730\u5740\u200b\u200b&#xff1a;rtmp:\/\/\u670d\u52a1\u5668IP\/live\/stream_key<\/li>\n<li>\u200b\u200b\u64ad\u653e\u5730\u5740\u200b\u200b&#xff1a;\n<ul>\n<li>RTMP&#xff1a;rtmp:\/\/\u670d\u52a1\u5668IP\/live\/stream_key<\/li>\n<li>HLS&#xff1a;http:\/\/\u670d\u52a1\u5668IP\/hls\/stream_key.m3u8<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h5>\u200b\u200b2. \u89c6\u9891\u70b9\u64ad\u200b\u200b<\/h5>\n<ul>\n<li>\u5c06\u89c6\u9891\u6587\u4ef6&#xff08;windows\u7528 scp -r &#034;\u672c\u5730\u6587\u4ef6\u8def\u5f84&#034; \u7528\u6237\u540d&#064;\u670d\u52a1\u5668IP:\/\u76ee\u6807\u8def\u5f84 \u5982test.mp4&#xff09;\u653e\u5165\u00a0\/opt\/video\/vod\u00a0\u76ee\u5f55\u3002<\/li>\n<li>\u200b\u200b\u64ad\u653e\u5730\u5740\u200b\u200b&#xff1a;rtmp:\/\/\u670d\u52a1\u5668IP\/vod\/test.mp4<\/li>\n<\/ul>\n<h5>\u200b\u200b3. HLS \u5b9e\u65f6\u5207\u7247\u200b\u200b<\/h5>\n<ul>\n<li>FFmpeg \u81ea\u52a8\u5c06 RTMP \u6d41\u5207\u7247\u4e3a HLS \u683c\u5f0f&#xff1a; ffmpeg -re -i input.mp4 -c:v copy -c:a copy -f flv rtmp:\/\/\u670d\u52a1\u5668IP\/live\/stream <\/li>\n<\/ul>\n<hr \/>\n<h4>\u200b\u200b\u56db\u3001\u4f18\u5316\u4e0e\u5b89\u5168\u200b\u200b<\/h4>\n<h5>\u200b\u200b1. \u6027\u80fd\u4f18\u5316\u200b\u200b<\/h5>\n<ul>\n<li>\u200b\u200b\u542f\u7528\u786c\u4ef6\u52a0\u901f\u200b\u200b&#xff08;NVIDIA GPU&#xff09;&#xff1a; rtmp {<br \/>\n    application live {<br \/>\n        # \u542f\u7528 GPU \u7f16\u7801<br \/>\n        exec ffmpeg -hwaccel cuvid -i rtmp:\/\/localhost\/live\/$name \\\\<br \/>\n                    -c:v h264_nvenc -preset fast -b:v 2500k \\\\<br \/>\n                    -c:a aac -b:a 128k -f flv rtmp:\/\/localhost\/hls\/$name_720p;<br \/>\n    }<br \/>\n} <\/li>\n<li>\u200b\u200b\u8c03\u6574\u7f13\u51b2\u533a\u200b\u200b&#xff1a; rtmp {<br \/>\n    chunk_size 8192;  # \u589e\u5927\u5757\u5927\u5c0f\u4ee5\u51cf\u5c11\u5ef6\u8fdf<br \/>\n} <\/li>\n<\/ul>\n<h5>\u200b\u200b2. \u5b89\u5168\u52a0\u56fa\u200b\u200b<\/h5>\n<ul>\n<li>\u200b\u200b\u8bbf\u95ee\u63a7\u5236\u200b\u200b&#xff1a; location \/hls {<br \/>\n    allow 192.168.1.0\/24;  # \u5141\u8bb8\u5185\u7f51\u8bbf\u95ee<br \/>\n    deny all;              # \u62d2\u7edd\u5176\u4ed6 IP<br \/>\n} <\/li>\n<li>\u200b\u200bHTTPS \u914d\u7f6e\u200b\u200b&#xff1a; server {<br \/>\n    listen 443 ssl;<br \/>\n    ssl_certificate \/path\/to\/cert.pem;<br \/>\n    ssl_certificate_key \/path\/to\/key.pem;<br \/>\n} <\/li>\n<\/ul>\n<hr \/>\n<h4>\u200b\u200b\u4e94\u3001\u6d4b\u8bd5\u4e0e\u9a8c\u8bc1\u200b\u200b<\/h4>\n<h5>\u200b\u200b1. \u63a8\u6d41\u6d4b\u8bd5\u200b\u200b<\/h5>\n<p>\u4f7f\u7528 OBS \u63a8\u6d41&#xff1a;<\/p>\n<ul>\n<li>\u200b\u200b\u63a8\u6d41\u5730\u5740\u200b\u200b&#xff1a;rtmp:\/\/\u670d\u52a1\u5668IP\/live\/stream<\/li>\n<li>\u200b\u200b\u6d41\u5bc6\u94a5\u200b\u200b&#xff1a;test<\/li>\n<\/ul>\n<h5>\u200b\u200b2. \u64ad\u653e\u6d4b\u8bd5\u200b\u200b<\/h5>\n<ul>\n<li>\u200b\u200bHLS \u64ad\u653e\u200b\u200b&#xff1a;\u6d4f\u89c8\u5668\u8bbf\u95ee\u00a0http:\/\/\u670d\u52a1\u5668IP\/hls\/stream.m3u8<\/li>\n<li>\u200b\u200bRTMP \u64ad\u653e\u200b\u200b&#xff1a;VLC \u64ad\u653e\u5668\u8f93\u5165\u00a0rtmp:\/\/\u670d\u52a1\u5668IP\/live\/stream<\/li>\n<\/ul>\n<h5>\u200b\u200b3. \u65e5\u5fd7\u76d1\u63a7\u200b\u200b<\/h5>\n<ul>\n<li>\u200b\u200bRTMP \u72b6\u6001\u9875\u200b\u200b&#xff1a;http:\/\/\u670d\u52a1\u5668IP\/stat<\/li>\n<li>\u200b\u200b\u9519\u8bef\u65e5\u5fd7\u200b\u200b&#xff1a;\/usr\/local\/nginx\/logs\/error.log<\/li>\n<\/ul>\n<hr \/>\n<h4>\u200b\u200b\u516d\u3001\u5e38\u89c1\u95ee\u9898\u89e3\u51b3\u200b\u200b<\/h4>\n<table>\n<tr>\u200b\u200b\u95ee\u9898\u200b\u200b\u200b\u200b\u89e3\u51b3\u65b9\u6848\u200b\u200b<\/tr>\n<tbody>\n<tr>\n<td>\u200b\u200b\u63a8\u6d41\u5931\u8d25&#xff08;Error 403&#xff09;\u200b\u200b<\/td>\n<td>\u68c0\u67e5\u00a0hls_path\u00a0\u76ee\u5f55\u6743\u9650&#xff1a;chmod 777 \/tmp\/hls<\/td>\n<\/tr>\n<tr>\n<td>\u200b\u200bHLS \u65e0\u6cd5\u64ad\u653e\u200b\u200b<\/td>\n<td>\u786e\u8ba4 FFmpeg \u662f\u5426\u751f\u6210\u00a0.m3u8\u00a0\u548c\u00a0.ts\u00a0\u6587\u4ef6&#xff0c;\u68c0\u67e5\u9632\u706b\u5899\u662f\u5426\u5f00\u653e 80\/1935 \u7aef\u53e3<\/td>\n<\/tr>\n<tr>\n<td>\u200b\u200b\u5ef6\u8fdf\u8fc7\u9ad8\u200b\u200b<\/td>\n<td>\u51cf\u5c0f\u00a0hls_fragment&#xff08;\u5982 3s&#xff09;&#xff0c;\u542f\u7528\u4f4e\u5ef6\u8fdf\u6a21\u5f0f&#xff1a;-preset ultrafast<\/td>\n<\/tr>\n<tr>\n<td>\u200b\u200bNginx \u542f\u52a8\u62a5\u9519\u200b\u200b<\/td>\n<td>\u68c0\u67e5\u914d\u7f6e\u8bed\u6cd5&#xff1a;nginx -t&#xff0c;\u91cd\u65b0\u7f16\u8bd1\u65f6\u786e\u4fdd\u4f9d\u8d56\u5e93\u7248\u672c\u517c\u5bb9<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>\u200b\u200b\u4e03\u3001\u6269\u5c55\u5e94\u7528\u200b\u200b<\/h4>\n<ul>\n<li>\u200b\u200b\u591a\u5e73\u53f0\u7ea7\u8054\u200b\u200b&#xff1a;\u901a\u8fc7\u00a0push\u00a0\u6307\u4ee4\u5c06\u6d41\u63a8\u9001\u5230\u5176\u4ed6\u670d\u52a1\u5668&#xff08;\u5982 YouTube\/\u6296\u97f3&#xff09;&#xff1a; application live {<br \/>\n    live on;<br \/>\n    push rtmp:\/\/youtube\/stream_key;<br \/>\n} <\/li>\n<li>\u200b\u200b\u52a8\u6001\u7801\u7387\u81ea\u9002\u5e94\u200b\u200b&#xff1a;\u7ed3\u5408 FFmpeg \u751f\u6210\u591a\u5206\u8fa8\u7387 HLS \u6d41&#xff1a; ffmpeg -i input.mp4 -vf scale&#061;1280:720 -c:v libx264 -b:v 2500k \\\\<br \/>\n       -vf scale&#061;854:480 -c:v libx264 -b:v 1000k \\\\<br \/>\n       -f flv rtmp:\/\/\u670d\u52a1\u5668IP\/live\/stream_720p <\/li>\n<\/ul>\n<hr \/>\n<p>\u901a\u8fc7\u4ee5\u4e0a\u914d\u7f6e&#xff0c;\u53ef\u642d\u5efa\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u6d41\u5a92\u4f53\u670d\u52a1\u5668&#xff0c;\u652f\u6301\u4f4e\u5ef6\u8fdf\u76f4\u64ad\u3001\u70b9\u64ad\u56de\u653e\u53ca\u591a\u7ec8\u7aef\u81ea\u9002\u5e94\u64ad\u653e\u3002\u5982\u9700\u8fdb\u4e00\u6b65\u4f18\u5316&#xff0c;\u53ef\u53c2\u8003 Nginx \u5b98\u65b9\u6587\u6863\u53ca FFmpeg \u9ad8\u7ea7\u53c2\u6570\u8c03\u4f18\u3002<\/p>\n<p>\u51fa\u73b0\u95ee\u9898&#xff1a;\u8bb0\u5f97\u79c1\u4fe1\u4e0e\u6211\u4ea4\u6d41<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb863\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u914d\u7f6e\uff0c\u53ef\u642d\u5efa\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u652f\u6301\u4f4e\u5ef6\u8fdf\u76f4\u64ad\u3001\u70b9\u64ad\u56de\u653e\u53ca\u591a\u7ec8\u7aef\u81ea\u9002\u5e94\u64ad\u653e\u3002\u5982\u9700\u8fdb\u4e00\u6b65\u4f18\u5316\uff0c\u53ef\u53c2\u8003 Nginx \u5b98\u65b9\u6587\u6863\u53ca FFmpeg \u9ad8\u7ea7\u53c2\u6570\u8c03\u4f18\u3002_\u642d\u5efartmp<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,43,44],"topic":[],"class_list":["post-14181","post","type-post","status-publish","format-standard","hentry","category-server","tag-linux","tag-43","tag-44"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>linux\u4e0b\u642d\u5efaRTMP\u89c6\u9891\u70b9\u64ad\u3001\u76f4\u64ad\u3001HLS\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/14181.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"linux\u4e0b\u642d\u5efaRTMP\u89c6\u9891\u70b9\u64ad\u3001\u76f4\u64ad\u3001HLS\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb863\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u914d\u7f6e\uff0c\u53ef\u642d\u5efa\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u652f\u6301\u4f4e\u5ef6\u8fdf\u76f4\u64ad\u3001\u70b9\u64ad\u56de\u653e\u53ca\u591a\u7ec8\u7aef\u81ea\u9002\u5e94\u64ad\u653e\u3002\u5982\u9700\u8fdb\u4e00\u6b65\u4f18\u5316\uff0c\u53ef\u53c2\u8003 Nginx \u5b98\u65b9\u6587\u6863\u53ca FFmpeg \u9ad8\u7ea7\u53c2\u6570\u8c03\u4f18\u3002_\u642d\u5efartmp\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/14181.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-04-18T12:58:48+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14181.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/14181.html\",\"name\":\"linux\u4e0b\u642d\u5efaRTMP\u89c6\u9891\u70b9\u64ad\u3001\u76f4\u64ad\u3001HLS\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-04-18T12:58:48+00:00\",\"dateModified\":\"2025-04-18T12:58:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/14181.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/14181.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/14181.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"linux\u4e0b\u642d\u5efaRTMP\u89c6\u9891\u70b9\u64ad\u3001\u76f4\u64ad\u3001HLS\u670d\u52a1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"linux\u4e0b\u642d\u5efaRTMP\u89c6\u9891\u70b9\u64ad\u3001\u76f4\u64ad\u3001HLS\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/14181.html","og_locale":"zh_CN","og_type":"article","og_title":"linux\u4e0b\u642d\u5efaRTMP\u89c6\u9891\u70b9\u64ad\u3001\u76f4\u64ad\u3001HLS\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb863\u6b21\uff0c\u70b9\u8d5e12\u6b21\uff0c\u6536\u85cf9\u6b21\u3002\u901a\u8fc7\u4ee5\u4e0a\u914d\u7f6e\uff0c\u53ef\u642d\u5efa\u4e00\u4e2a\u9ad8\u6027\u80fd\u7684\u6d41\u5a92\u4f53\u670d\u52a1\u5668\uff0c\u652f\u6301\u4f4e\u5ef6\u8fdf\u76f4\u64ad\u3001\u70b9\u64ad\u56de\u653e\u53ca\u591a\u7ec8\u7aef\u81ea\u9002\u5e94\u64ad\u653e\u3002\u5982\u9700\u8fdb\u4e00\u6b65\u4f18\u5316\uff0c\u53ef\u53c2\u8003 Nginx \u5b98\u65b9\u6587\u6863\u53ca FFmpeg \u9ad8\u7ea7\u53c2\u6570\u8c03\u4f18\u3002_\u642d\u5efartmp","og_url":"https:\/\/www.wsisp.com\/helps\/14181.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-04-18T12:58:48+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/14181.html","url":"https:\/\/www.wsisp.com\/helps\/14181.html","name":"linux\u4e0b\u642d\u5efaRTMP\u89c6\u9891\u70b9\u64ad\u3001\u76f4\u64ad\u3001HLS\u670d\u52a1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-04-18T12:58:48+00:00","dateModified":"2025-04-18T12:58:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/14181.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/14181.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/14181.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"linux\u4e0b\u642d\u5efaRTMP\u89c6\u9891\u70b9\u64ad\u3001\u76f4\u64ad\u3001HLS\u670d\u52a1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/14181","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=14181"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/14181\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=14181"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=14181"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=14181"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=14181"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}