{"id":698,"date":"2024-04-19T21:29:35","date_gmt":"2024-04-19T13:29:35","guid":{"rendered":"https:\/\/flighhai.cn\/?p=698"},"modified":"2024-04-19T22:51:24","modified_gmt":"2024-04-19T14:51:24","slug":"ubuntu%e5%ae%89%e8%a3%85ffmpeg%e5%b9%b6%e5%ae%89%e8%a3%85owncast%e5%ae%9e%e7%8e%b0%e6%9c%ac%e5%9c%b0%e6%8e%a8%e6%b5%81%e6%9c%8d%e5%8a%a1%e5%99%a8","status":"publish","type":"post","link":"https:\/\/flighhai.cn\/?p=698","title":{"rendered":"Ubuntu\u5b89\u88c5FFmpeg\u5e76\u5b89\u88c5Owncast\u5b9e\u73b0\u672c\u5730\u63a8\u6d41\u670d\u52a1\u5668"},"content":{"rendered":"<p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u4e00\u53f0Ubuntu\u7cfb\u7edf\u7684\u7535\u8111\uff0c\u914d\u7f6e\u4f60\u81ea\u5df1\u968f\u4fbf\u5b89\u6392\uff0c\u6211\u8fd9\u8fb9\u7684VMware ESXi\u5c31\u53ea\u7ed9\u4e862H 2G 25G\u3002<br \/>\nUbuntu\u7cfb\u7edf\u6700\u597d\u662f\u82f1\u6587\u8def\u5f84\u65b9\u4fbf\u7ec8\u7aef\u8def\u5f84\u8fd0\u884c\u3002<br \/>\n1\u3001\u4f60\u8981\u53bbOwncast\u5b98\u7f51https:\/\/owncast.online\/quickstart\/\u4e0b\u8f7d\u61d2\u4eba\u7248\u5b89\u88c5\u5305\u540d\u5b57\u662fowncast-0.1.3-linux-64bit.zip\u3002\u4f60\u53ef\u4ee5\u53c2\u8003\u4e00\u4e0b<br \/>\n2\u3001\u5728Ubuntu\u7ec8\u7aef\u8f93\u5165\uff1a<br \/>\nsudo apt update\uff08\u66f4\u65b0\u672c\u5730\u8f6f\u4ef6\u5305\uff09<br \/>\nsudo apt install ffmpeg\uff08\u5b89\u88c5ffmpeg\uff09<br \/>\nffmpeg -version\uff08\u67e5\u770b\u5b89\u88c5\u7684ffmpeg\u7248\u672c\u53f7\uff09<br \/>\n3\u3001sudo -i \u7136\u540e\u628a\u4f60\u89e3\u538b\u597d\u7684owncast-0.1.3-linux-64bit.zip\u8fd9\u4e2a\u6587\u4ef6\u201cowncast\u201d\u62d6\u8fdb\u53bb\u7ec8\u7aef\u673a\u70b9\u51fb\u56de\u8f66<br \/>\n\uff08\u8fd9\u4e2a\u65f6\u5019\u60a8\u5c31\u4f1a\u53d1\u73b0\u8be5\u76ee\u5f55\u4e0b\u591a\u4e86\u4e2adata\uff09\u7136\u540e\u7ec8\u7aef\u663e\u793a\u6b63\u5e38\u8fd0\u884c\uff0c\u7aef\u53e3\u53f7\u662f8080<br \/>\n4\u3001\u8fdb\u5165\u7ba1\u7406\u540e\u53f0\uff0c\u767b\u9646\u57df\u540d\u662f\uff1ahttps:\/\/[localhost]:8080\/admin(\u8d26\u53f7\uff1aadmin \u5bc6\u7801\uff1aabc123)<br \/>\n5\u3001\u8fdb\u5165\u540e\u53f0\u8bf7\u8bb0\u5f97\u66f4\u6539\u5bc6\u7801\u3002Configuration > Server Setup > Server Config > Admin Password<br \/>\n6\u3001\u63a8\u6d41\u7801\u83b7\u53d6\uff1aConfiguration > Stream Keys > Key (\u9ed8\u8ba4abc123)<br \/>\n7\u3001\u5728OBS\u586b\u4e0a\u63a8\u6d41\u5730\u5740\uff1aHome > Streaming URL: rtmp:\/\/[localhost]:1935\/live<br \/>\n8\u3001\u5ba2\u6237\u7aef\u89c2\u770b\u5730\u5740\uff1ahttps:\/\/[localhost]:8080\u6216\u8005https:\/\/[localhost]:8080\/hls\/stream.m3u8<br \/>\n\u4ee5\u4e0a\u5c31\u662f\u672c\u6559\u7a0b\u7684\u5168\u90e8\u5185\u5bb9\u5566\uff0c\u5728\u6b64\u4e5f\u975e\u5e38\u611f\u89c9Owncast\u505a\u51fa\u4e86\u90a3\u4e48\u597d\u7528\u7684\u8f6f\u4ef6\u548c\u7b80\u5355\u7684\u90e8\u7f72\u670d\u52a1\u5668\u3002\u5728\u6b64\u4e5f\u611f\u8c22\u963f\u591c\u63d0\u4f9b\u7684\u6280\u672f\u6307\u5bfc\u3002\u56e0\u4e3a\u6709\u4f60\u4eec\u624d\u4f7f\u5f97\u8fd9\u4e2a\u4e92\u8054\u7f51\u4e16\u754c\u8d8a\u53d8\u8d8a\u597d\uff0c\u611f\u8c22\u5404\u4f4d\u5728\u7535\u8111\u80cc\u540e\u7684\u8001\u5e08\u3001\u6280\u672f\u3001\u540c\u5b66\u3001\u8fd0\u7ef4\u7684\u8d21\u732e\u3002<br \/>\n\u963f\u591c\u63d0\u4f9b\u81ea\u542f\u52a8\u5907\u5fd8\u5f55\uff1a<br \/>\n#\u521b\u5efa\u670d\u52a1\u8f6f\u94fe\u63a5<br \/>\nln -fs \/lib\/systemd\/system\/rc-local.service \/etc\/systemd\/system\/rc-local.service<br \/>\n#\u7f16\u8f91\u670d\u52a1\u6587\u4ef6<br \/>\n \/etc\/systemd\/system\/rc-local.service<br \/>\n#\u6587\u4ef6\u672b\u5c3e\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\n[Install]<br \/>\nWantedBy=multi-user.target<br \/>\nAlias=rc-local.service<br \/>\n#\u521b\u5efa \/etc\/rc.local\u6587\u4ef6\u5e76\u6dfb\u52a0 755 \u6743\u9650<br \/>\ntouch \/etc\/rc.local &#038;&#038; chmod 755 \/etc\/rc.local<br \/>\n#\u7f16\u8f91 \/etc\/rc.local \u6587\u4ef6<br \/>\nvi \/etc\/rc.local<br \/>\n#\/etc\/rc.local \u5934\u90e8\u6dfb\u52a0\u4ee5\u4e0b\u5185\u5bb9<br \/>\n#!\/bin\/sh -e<br \/>\n#\u547d\u4ee4\u5199\u5728\u8fd9\u91cc<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u4e00\u53f0Ubuntu\u7cfb\u7edf\u7684\u7535\u8111\uff0c\u914d\u7f6e\u4f60\u81ea\u5df1\u968f\u4fbf\u5b89\u6392\uff0c &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/posts\/698"}],"collection":[{"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/flighhai.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=698"}],"version-history":[{"count":3,"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/posts\/698\/revisions"}],"predecessor-version":[{"id":701,"href":"https:\/\/flighhai.cn\/index.php?rest_route=\/wp\/v2\/posts\/698\/revisions\/701"}],"wp:attachment":[{"href":"https:\/\/flighhai.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=698"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/flighhai.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=698"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/flighhai.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=698"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}