{"id":177,"date":"2023-11-23T22:37:23","date_gmt":"2023-01-06T09:07:03","guid":{"rendered":"https:\/\/www.silicloud.com\/ja\/blog\/index.php\/2023\/11\/30\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/"},"modified":"2025-07-31T21:24:18","modified_gmt":"2025-07-31T12:24:18","slug":"ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/","title":{"rendered":"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d3\u30c7\u30aa\u306b\u306f\u591a\u304f\u306e\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002Twitch\u306e\u3088\u3046\u306a\u30b5\u30fc\u30d3\u30b9\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306f\u3001\u30a6\u30a7\u30d6\u63a2\u7d22\u3084\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u7ba1\u7406\u306e\u5074\u9762\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306b\u975e\u5e38\u306b\u4eba\u6c17\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001OBS Studio\u306e\u3088\u3046\u306a\u7121\u6599\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306f\u3001\u8907\u6570\u306e\u7570\u306a\u308b\u30b9\u30c8\u30ea\u30fc\u30e0\u30bd\u30fc\u30b9\u304b\u3089\u306e\u30d3\u30c7\u30aa\u30aa\u30fc\u30d0\u30fc\u30ec\u30a4\u3092\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u3067\u7d44\u307f\u5408\u308f\u305b\u308b\u305f\u3081\u306b\u5e83\u304f\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u3053\u308c\u3089\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u306f\u975e\u5e38\u306b\u5f37\u529b\u3067\u3059\u304c\u3001\u4ed6\u306e\u30b5\u30fc\u30d3\u30b9\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306b\u4f9d\u5b58\u3057\u306a\u3044\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u30db\u30b9\u30c8\u3067\u304d\u308b\u5834\u5408\u3082\u3042\u308b\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001Nginx\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u3092\u8a2d\u5b9a\u3057\u3066\u3001\u72ec\u7acb\u3057\u305fRTMP\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u30db\u30b9\u30c8\u3057\u3001\u7570\u306a\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u30ea\u30f3\u30af\u3057\u3001\u8868\u793a\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002 RTMP\u3001\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u30e1\u30c3\u30bb\u30fc\u30b8\u30f3\u30b0\u30d7\u30ed\u30c8\u30b3\u30eb\u306f\u3001\u307b\u3068\u3093\u3069\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306e\u57fa\u790e\u3092\u5b9a\u7fa9\u3057\u3066\u3044\u307e\u3059\u3002\u540c\u3058\u6280\u8853\u3092\u4f7f\u7528\u3057\u3066\u3001\u3088\u308a\u6700\u65b0\u306e\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308bHLS\u304a\u3088\u3073DASH\u30b9\u30c8\u30ea\u30fc\u30e0\u3082\u30db\u30b9\u30c8\u3059\u308b\u65b9\u6cd5\u3082\u5b66\u3073\u307e\u3059\u3002<\/p>\n<h2>\u524d\u63d0\u6761\u4ef6<\/h2>\n<p>\u3053\u306e\u30ac\u30a4\u30c9\u3092\u5b8c\u6210\u3055\u305b\u308b\u305f\u3081\u306b\u306f\u3001\u4ee5\u4e0b\u304c\u5fc5\u8981\u3067\u3059\uff1a<\/p>\n<ul class=\"post-ul\">\n<li>An Ubuntu 22.04 server and a non-root user with sudo privileges. You can learn more about how to set up a user with these privileges in our Initial Server Setup with Ubuntu 22.04 guide.<\/li>\n<li>Nginx installed, following How To Install Nginx on Ubuntu 22.04.<\/li>\n<\/ul>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001URL\u3068\u30db\u30b9\u30c8\u540d\u306b\u306f\u4eee\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3067\u3042\u308b your_domain \u3092\u4f7f\u7528\u3057\u307e\u3059\u3002\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3092\u9032\u3081\u308b\u306b\u3042\u305f\u308a\u3001\u81ea\u8eab\u306e\u30c9\u30e1\u30a4\u30f3\u540d\u3084IP\u30a2\u30c9\u30ec\u30b9\u306b\u7f6e\u304d\u63db\u3048\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d71- Nginx-RTMP\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u8a2d\u5b9a<\/h2>\n<p>\u591a\u304f\u306e\u73fe\u4ee3\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30c4\u30fc\u30eb\u306f\u3001\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u57fa\u672c\u30d1\u30e9\u30e1\u30fc\u30bf\u3092\u5b9a\u7fa9\u3059\u308bRTMP\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002Nginx\u30a6\u30a7\u30d6\u30b5\u30fc\u30d0\u30fc\u306b\u306f\u3001\u5c02\u7528\u306eURL\u304b\u3089\u6700\u5c0f\u9650\u306e\u8a2d\u5b9a\u3067RTMP\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u63d0\u4f9b\u3059\u308b\u305f\u3081\u306e\u30e2\u30b8\u30e5\u30fc\u30eb\u304c\u542b\u307e\u308c\u3066\u304a\u308a\u3001\u305d\u308c\u306f\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u30a6\u30a7\u30d6\u30da\u30fc\u30b8\u3078\u306eHTTP\u30a2\u30af\u30bb\u30b9\u3092\u63d0\u4f9b\u3059\u308b\u65b9\u6cd5\u3068\u540c\u69d8\u3067\u3059\u3002Nginx\u306eRTMP\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001Nginx\u3068\u81ea\u52d5\u7684\u306b\u7d44\u307f\u8fbc\u307e\u308c\u3066\u3044\u308b\u308f\u3051\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001Ubuntu 22.04\u3084\u4ed6\u306e\u591a\u304f\u306eLinux\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u3067\u306f\u8ffd\u52a0\u30d1\u30c3\u30b1\u30fc\u30b8\u3068\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001root\u30e6\u30fc\u30b6\u30fc\u3067\u306f\u306a\u3044\u30e6\u30fc\u30b6\u30fc\u3068\u3057\u3066\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u3001\u30d1\u30c3\u30b1\u30fc\u30b8\u30ea\u30b9\u30c8\u3092\u66f4\u65b0\u3057\u3001Nginx\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> libnginx-mod-rtmp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3082\u3001\u81ea\u52d5\u7684\u306b\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u63d0\u4f9b\u3059\u308b\u3053\u3068\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u5229\u7528\u53ef\u80fd\u306b\u3059\u308b\u306b\u306f\u3001Nginx\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u306b\u8a2d\u5b9a\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u8a2d\u5b9a\u30d6\u30ed\u30c3\u30af\u3067\u306f\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u304c\u3069\u3053\u306b\u3001\u3069\u306e\u3088\u3046\u306b\u5229\u7528\u53ef\u80fd\u306b\u306a\u308b\u304b\u3092\u5b9a\u7fa9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u304a\u597d\u304d\u306a\u30c6\u30ad\u30b9\u30c8\u30a8\u30c7\u30a3\u30bf\u30fc\u3001\u3082\u3057\u304f\u306fnano\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx\u306e\u30e1\u30a4\u30f3\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\u300c\/etc\/nginx\/nginx.conf\u300d\u3092\u958b\u304d\u3001\u3053\u306e\u8a2d\u5b9a\u30d6\u30ed\u30c3\u30af\u3092\u30d5\u30a1\u30a4\u30eb\u306e\u672b\u5c3e\u306b\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/nginx.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div>\/etc\/nginx\/nginx.conf\u3092\u65e5\u672c\u8a9e\u3067\u8a00\u3044\u63db\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\uff1a<br \/>\n\u300c\/etc\/nginx\/nginx.conf\u300d<\/div>\n<pre class=\"post-pre\"><code>. . .\r\nrtmp {\r\n        server {\r\n                listen 1935;\r\n                chunk_size 4096;\r\n                allow publish 127.0.0.1;\r\n                deny publish all;\r\n\r\n                application live {\r\n                        live on;\r\n                        record off;\r\n                }\r\n        }\r\n}\r\n<\/code><\/pre>\n<ul class=\"post-ul\">\n<li>listen 1935 means that RTMP will be listening for connections on port 1935, which is standard.<\/li>\n<li>chunk_size 4096 means that RTMP will be sending data in 4KB blocks, which is also standard.<\/li>\n<li>allow publish 127.0.0.1 and deny publish all mean that the server will only allow video to be published from the same server, to avoid any other users pushing their own streams.<\/li>\n<li>application live defines an application block that will be available at the \/live URL path.<\/li>\n<li>live on enables live mode so that multiple users can connect to your stream concurrently, a baseline assumption of video streaming.<\/li>\n<li>record off disables Nginx-RTMP\u2019s recording functionality, so that all streams are not separately saved to disk by default.<\/li>\n<\/ul>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u3082\u3057nano\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u3001CTRL+X\u3092\u62bc\u3057\u3001\u30d7\u30ed\u30f3\u30d7\u30c8\u304c\u8868\u793a\u3055\u308c\u305f\u3089\u3001Y\u3092\u62bc\u3057\u3066ENTER\u3092\u62bc\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3053\u308c\u306fRTMP\u306e\u8a2d\u5b9a\u306e\u59cb\u307e\u308a\u3092\u63d0\u4f9b\u3057\u307e\u3059\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30dd\u30fc\u30c81935\u3067\u30ea\u30b9\u30f3\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u305d\u306e\u30dd\u30fc\u30c8\u3092\u958b\u653e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u521d\u671f\u30b5\u30fc\u30d0\u30fc\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u306e\u4e00\u74b0\u3068\u3057\u3066ufw\u3092\u8a2d\u5b9a\u3057\u305f\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">1935<\/span>\/tcp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u73fe\u5728\u3001\u5909\u66f4\u3092\u52a0\u3048\u305fNginx\u3092\u518d\u8d77\u52d5\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl reload nginx.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u73fe\u5728\u3001\u52d5\u4f5c\u3057\u3066\u3044\u308bRTMP\u30b5\u30fc\u30d0\u30fc\u3092\u304a\u6301\u3061\u3067\u3059\u3002\u6b21\u306e\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u30ed\u30fc\u30ab\u30eb\u304a\u3088\u3073\u30ea\u30e2\u30fc\u30c8\u306e\u30bd\u30fc\u30b9\u304b\u3089RTMP\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306b\u3064\u3044\u3066\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d72 &#8211; RTMP\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30d3\u30c7\u30aa\u306e\u9001\u4fe1<\/h2>\n<p>RTMP\u30b5\u30fc\u30d0\u30fc\u3078\u306e\u30d3\u30c7\u30aa\u9001\u4fe1\u306b\u306f\u8907\u6570\u306e\u65b9\u6cd5\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e1\u3064\u306f\u3001\u30dd\u30d4\u30e5\u30e9\u30fc\u306a\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u97f3\u58f0\u30fb\u30d3\u30c7\u30aa\u30e6\u30fc\u30c6\u30a3\u30ea\u30c6\u30a3\u3067\u3042\u308bffmpeg\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d3\u30c7\u30aa\u30d5\u30a1\u30a4\u30eb\u3092\u76f4\u63a5\u30b5\u30fc\u30d0\u30fc\u4e0a\u3067\u518d\u751f\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002\u3082\u3057\u30b5\u30fc\u30d0\u30fc\u4e0a\u306b\u65e2\u306b\u30d3\u30c7\u30aa\u30d5\u30a1\u30a4\u30eb\u304c\u306a\u3044\u5834\u5408\u306f\u3001youtube-dl\u3068\u3044\u3046YouTube\u306a\u3069\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u304b\u3089\u30d3\u30c7\u30aa\u3092\u53d6\u5f97\u3059\u308b\u305f\u3081\u306e\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u30c4\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001\u30d3\u30c7\u30aa\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002youtube-dl\u3092\u4f7f\u7528\u3059\u308b\u306b\u306f\u3001\u30b5\u30fc\u30d0\u30fc\u4e0a\u306b\u6700\u65b0\u306ePython\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n<p>\u6700\u521d\u306b\u3001Python\u3068\u305d\u306e\u30d1\u30c3\u30b1\u30fc\u30b8\u30de\u30cd\u30fc\u30b8\u30e3\u30fc\u3067\u3042\u308bpip\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> python3-pip<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001pip\u3092\u4f7f\u7528\u3057\u3066youtube-dl\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> pip <span class=\"token function\">install<\/span> youtube-dl<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3001YouTube\u304b\u3089\u30d3\u30c7\u30aa\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308b\u305f\u3081\u306byoutube-dl\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u7279\u5b9a\u306e\u30d3\u30c7\u30aa\u304c\u601d\u3044\u6d6e\u304b\u3070\u306a\u3044\u5834\u5408\u306f\u3001Silicon Cloud\u306eApp Platform\u3092\u7d39\u4ecb\u3059\u308b\u3053\u306e\u30d3\u30c7\u30aa\u3092\u8a66\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">youtube-dl https:\/\/www.youtube.com\/watch?v<span class=\"token operator\">=<\/span>iom_nhYQIYk <span class=\"token parameter variable\">-f<\/span> mp4<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1a\u6642\u3005\u3001\u300c\u30a8\u30e9\u30fc\uff1a\u30d3\u30c7\u30aa\u30c7\u30fc\u30bf\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u307e\u305b\u3093\u3002HTTP\u30a8\u30e9\u30fc403\uff1a\u30a2\u30af\u30bb\u30b9\u304c\u7981\u6b62\u3055\u308c\u3066\u3044\u307e\u3059\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u306b\u906d\u9047\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u3082\u3057\u8a72\u5f53\u3059\u308b\u5834\u5408\u306f\u3001\u6b63\u3057\u3044URL\u3092\u518d\u5ea6\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002URL\u304c\u6b63\u3057\u3044\u5834\u5408\u3001\u30b3\u30de\u30f3\u30c9\u3092\u3082\u3046\u4e00\u5ea6\u5b9f\u884c\u3059\u308b\u3068\u52d5\u4f5c\u3057\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u3053\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4ecb\u3057\u3066YouTube\u3068\u306e\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u3059\u308b\u969b\u306e\u7279\u7570\u6027\u3067\u3059\u3002<\/div>\n<\/div>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3055\u308c\u305f\u30d3\u30c7\u30aa\u3068\u30aa\u30fc\u30c7\u30a3\u30aa\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u3001\u51fa\u529b\u306fyoutube-dl\u3068\u3057\u3066\u8fd4\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u901a\u5e38\u306e\u52d5\u4f5c\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>[youtube] iom_nhYQIYk: Downloading webpage [download] Destination: Introducing App Platform by Silicon Cloud-iom_nhYQIYk.mp4 [download] 100% of 7.90MiB in 01:39<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u73fe\u5728\u3001Silicon Cloud-iom_nhYQIYk.mp4\u306e\u3088\u3046\u306a\u30bf\u30a4\u30c8\u30eb\u3092\u6301\u3064\u30d3\u30c7\u30aa\u30d5\u30a1\u30a4\u30eb\u304c\u73fe\u5728\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u3092\u30b9\u30c8\u30ea\u30fc\u30e0\u3059\u308b\u305f\u3081\u306b\u306f\u3001ffmpeg\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> ffmpeg<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u305d\u3057\u3066\u3001ffmpeg\u3092\u4f7f\u7528\u3057\u3066RTMP\u30b5\u30fc\u30d0\u30fc\u306b\u9001\u4fe1\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\">ffmpeg <span class=\"token parameter variable\">-re<\/span> <span class=\"token parameter variable\">-i<\/span> <span class=\"token string\">&#8220;Introducing App Platform by Silicon Cloud-iom_nhYQIYk.mp4&#8221;<\/span> <span class=\"token parameter variable\">-c:v<\/span> copy <span class=\"token parameter variable\">-c:a<\/span> aac <span class=\"token parameter variable\">-ar<\/span> <span class=\"token number\">44100<\/span> <span class=\"token parameter variable\">-ac<\/span> <span class=\"token number\">1<\/span> <span class=\"token parameter variable\">-f<\/span> flv rtmp:\/\/localhost\/live\/stream<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u306effmpeg\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u30d3\u30c7\u30aa\u3092\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306b\u9069\u3057\u305f\u5f62\u5f0f\u306b\u3059\u308b\u305f\u3081\u306b\u3044\u304f\u3064\u304b\u306e\u4f5c\u696d\u3092\u884c\u3063\u3066\u3044\u307e\u3059\u3002\u8a73\u7d30\u306b\u306f\u89e6\u308c\u307e\u305b\u3093\u304c\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3055\u307e\u3056\u307e\u306a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7406\u89e3\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<ul class=\"post-ul\">\n<li>-re specifies that input will be read at its native frame rate.<\/li>\n<li>-i &#8220;Introducing App Platform by Silicon Cloud-iom_nhYQIYk.mp4&#8221; specifies the path to our input file.<\/li>\n<li>-c:v is set to copy, meaning that you\u2019re copying over the video format you got from YouTube natively.<\/li>\n<li>-c:a has other parameters, namely aac -ar 44100 -ac 1, because you need to resample the audio to an RTMP-friendly format. aac is a widely supported audio codec, 44100 hz is a common frequency, and -ac 1 specifies the first version of the AAC spec for compatibility purposes.<\/li>\n<li>-f flv wraps the video in an flv format container for maximum compatibility with RTMP.<\/li>\n<\/ul>\n<p>\u30d3\u30c7\u30aa\u306f\u3001\u30b9\u30c6\u30c3\u30d71\u3067\u30e9\u30a4\u30d6\u306e\u8a2d\u5b9a\u30d6\u30ed\u30c3\u30af\u3092\u5b9a\u7fa9\u3057\u305f\u305f\u3081\u3001rtmp:\/\/localhost\/live\/stream\u306b\u9001\u4fe1\u3055\u308c\u307e\u3059\u3002&#8221;stream&#8221;\u306f\u3053\u306e\u30d3\u30c7\u30aa\u7528\u306b\u4efb\u610f\u306b\u9078\u629e\u3055\u308c\u305fURL\u3067\u3059\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\uff1affmpeg\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u3001\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u304c\u7dad\u6301\u30fb\u7ba1\u7406\u3057\u3066\u3044\u308bffmpeg\u30b3\u30de\u30f3\u30c9\u306e\u4f8b\u306e\u30ab\u30bf\u30ed\u30b0\u3067\u3042\u308bffmprovisr\u304b\u3089\u8a73\u7d30\u3092\u5b66\u3076\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u307e\u305f\u306f\u3001\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/div>\n<\/div>\n<p>ffmpeg\u304c\u30d3\u30c7\u30aa\u3092\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3057\u3066\u3044\u308b\u9593\u3001\u30bf\u30a4\u30e0\u30b3\u30fc\u30c9\u3092\u8868\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">Output<\/div>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>frame= 127 fps= 25 q=-1.0 size= 405kB time=00:00:05.00 bitrate= 662.2kbits\/s speed=frame= 140 fps= 25 q=-1.0 size= 628kB time=00:00:05.52 bitrate= 931.0kbits\/s speed=frame= 153 fps= 25 q=-1.0 size= 866kB time=00:00:06.04 bitrate=1173.1kbits\/s speed=<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3053\u308c\u306f\u6a19\u6e96\u306effmpeg\u306e\u51fa\u529b\u3067\u3059\u3002\u3082\u3057\u30d3\u30c7\u30aa\u3092\u5225\u306e\u5f62\u5f0f\u306b\u5909\u63db\u3059\u308b\u5834\u5408\u3001\u3053\u308c\u3089\u306f\u30d3\u30c7\u30aa\u304c\u3069\u308c\u3060\u3051\u52b9\u7387\u7684\u306b\u30ea\u30b5\u30f3\u30d7\u30ea\u30f3\u30b0\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u7406\u89e3\u3059\u308b\u306e\u306b\u5f79\u7acb\u3064\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u304c\u3001\u4eca\u56de\u306e\u5834\u5408\u306f\u305f\u3060\u4e00\u8cab\u3057\u3066\u518d\u751f\u3055\u308c\u3066\u3044\u308b\u304b\u3092\u78ba\u8a8d\u3059\u308b\u305f\u3081\u3060\u3051\u306b\u4f7f\u3044\u307e\u3059\u3002\u3053\u306e\u30b5\u30f3\u30d7\u30eb\u30d3\u30c7\u30aa\u3092\u4f7f\u7528\u3059\u308b\u3068\u3001\u6b63\u78ba\u306afps= 25\u306e\u5897\u5206\u3092\u53d6\u5f97\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<p>ffmpeg\u304c\u5b9f\u884c\u4e2d\u306e\u9593\u3001\u30d3\u30c7\u30aa\u30d7\u30ec\u30fc\u30e4\u30fc\u304b\u3089RTMP\u30b9\u30c8\u30ea\u30fc\u30e0\u306b\u63a5\u7d9a\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002VLC\u3001mpv\u3001\u307e\u305f\u306f\u4ed6\u306e\u30ed\u30fc\u30ab\u30eb\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u30e1\u30c7\u30a3\u30a2\u30d7\u30ec\u30fc\u30e4\u30fc\u304c\u3042\u308b\u5834\u5408\u3001\u30e1\u30c7\u30a3\u30a2\u30d7\u30ec\u30fc\u30e4\u30fc\u3067URL rtmp:\/\/your_domain\/live\/stream\u3092\u958b\u304f\u3053\u3068\u3067\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u8868\u793a\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002ffmpeg\u304c\u30d3\u30c7\u30aa\u518d\u751f\u3092\u7d42\u4e86\u3057\u305f\u5f8c\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u306f\u7d42\u4e86\u3057\u307e\u3059\u3002\u7121\u671f\u9650\u306b\u30eb\u30fc\u30d7\u3055\u305b\u305f\u3044\u5834\u5408\u306f\u3001ffmpeg\u30b3\u30de\u30f3\u30c9\u306e\u5148\u982d\u306b -stream_loop -1 \u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1aNginx-RTMP\u3092\u4f7f\u7528\u305b\u305a\u306b\u3001\u4f8b\u3048\u3070\u3001Facebook Live\u306b\u76f4\u63a5\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002ffmpeg\u30b3\u30de\u30f3\u30c9\u5185\u306ertmp:\/\/localhost\/live\/stream\u3092rtmps:\/\/live-api-s.facebook.com:443\/rtmp\/your-facebook-stream-key\u306b\u7f6e\u304d\u63db\u3048\u308b\u3053\u3068\u3067\u5b9f\u884c\u3067\u304d\u307e\u3059\u3002YouTube\u306frtmp:\/\/a.rtmp.youtube.com\/live2\u306e\u3088\u3046\u306aURL\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002RTMP\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u53d6\u308a\u8fbc\u3080\u4ed6\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30ed\u30d0\u30a4\u30c0\u3082\u540c\u69d8\u306b\u52d5\u4f5c\u3059\u308b\u306f\u305a\u3067\u3059\u3002<\/div>\n<\/div>\n<p>\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u4e0a\u3067OBS\u3092\u4f7f\u7528\u3057\u3066\u3001\u9759\u7684\u306a\u30d3\u30c7\u30aa\u30bd\u30fc\u30b9\u3092\u30b3\u30de\u30f3\u30c9\u30e9\u30a4\u30f3\u304b\u3089\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3093\u3060\u306e\u3067\u3001\u6b21\u306f\u52d5\u7684\u306a\u30bd\u30fc\u30b9\u304b\u3089\u30d3\u30c7\u30aa\u3092\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d73 \u2014 OBS\u3092\u4f7f\u3063\u3066\u30d3\u30c7\u30aa\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3059\u308b\uff08\u4efb\u610f\uff09<\/h2>\n<p>\u52d5\u753b\u518d\u751f\u3092\u3057\u305f\u3044\u6e96\u5099\u304c\u3067\u304d\u3066\u3044\u308b\u5834\u5408\u3001ffmpeg\u3092\u4f7f\u7528\u3057\u305f\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306f\u4fbf\u5229\u3067\u3059\u304c\u3001\u30e9\u30a4\u30d6\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306e\u65b9\u304c\u3088\u308a\u30c0\u30a4\u30ca\u30df\u30c3\u30af\u3067\u3059\u3002\u30e9\u30a4\u30d6\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306b\u304a\u3051\u308b\u6700\u3082\u4eba\u6c17\u306e\u3042\u308b\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u306f\u3001OBS\u307e\u305f\u306fOpen Broadcaster Software\u3067\u3059\u3002\u3053\u308c\u306f\u7121\u6599\u3067\u30aa\u30fc\u30d7\u30f3\u30bd\u30fc\u30b9\u3067\u3042\u308a\u3001\u975e\u5e38\u306b\u5f37\u529b\u3067\u3059\u3002<\/p>\n<p>OBS\u306f\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u3042\u308a\u3001\u30ed\u30fc\u30ab\u30eb\u30b3\u30f3\u30d4\u30e5\u30fc\u30bf\u304b\u3089\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u307e\u3059\u3002<\/p>\n<p>OBS\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u5f8c\u3001\u8a2d\u5b9a\u3059\u308b\u3068\u306f\u3001\u30b9\u30c8\u30ea\u30fc\u30e0\u306b\u8ffd\u52a0\u3059\u308b\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u30a6\u30a3\u30f3\u30c9\u30a6\u3068\u30aa\u30fc\u30c7\u30a3\u30aa\u30bd\u30fc\u30b9\u3092\u30ab\u30b9\u30bf\u30de\u30a4\u30ba\u3057\u3001\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u610f\u5473\u3057\u307e\u3059\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306e\u8a2d\u5b9a\u306b\u3064\u3044\u3066\u306f\u30ab\u30d0\u30fc\u3057\u307e\u305b\u3093\u3002\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u3001\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u5168\u4f53\u3092\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3059\u308b\u3060\u3051\u3067\u52d5\u4f5c\u3059\u308b\u30c7\u30e2\u304c\u3067\u304d\u307e\u3059\u3002\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d3\u30b9\u306e\u8a8d\u8a3c\u60c5\u5831\u3092\u8a2d\u5b9a\u3059\u308b\u306b\u306f\u3001OBS\u306e\u8a2d\u5b9a\u30e1\u30cb\u30e5\u30fc\u3092\u958b\u304d\u3001\u300c\u30b9\u30c8\u30ea\u30fc\u30e0\u300d\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u79fb\u52d5\u3057\u3001\u4ee5\u4e0b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>Streaming Service: Custom\r\nServer: rtmp:\/\/<mark>your_domain<\/mark>\/live\r\nPlay Path\/Stream Key: obs_stream\r\n<\/code><\/pre>\n<p>obs_stream\u306f\u4efb\u610f\u306b\u9078\u629e\u3055\u308c\u305f\u30d1\u30b9\u3067\u3059\u3002\u3053\u306e\u5834\u5408\u3001\u52d5\u753b\u306frtmp:\/\/your_domain\/live\/obs_stream\u3067\u5229\u7528\u53ef\u80fd\u3067\u3059\u3002\u8a8d\u8a3c\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u306f\u3042\u308a\u307e\u305b\u3093\u304c\u3001Step 1\u3067\u8a2d\u5b9a\u3057\u305fIP\u30db\u30ef\u30a4\u30c8\u30ea\u30b9\u30c8\u306b\u8ffd\u52a0\u306e\u30a8\u30f3\u30c8\u30ea\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p>\u30b5\u30fc\u30d0\u30fc\u306b\u623b\u308a\u3001Nginx\u306e\u30e1\u30a4\u30f3\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3067\u3042\u308b\/etc\/nginx\/nginx.conf\u3092\u958b\u304d\u3001\u30ed\u30fc\u30ab\u30ebIP\u30a2\u30c9\u30ec\u30b9\u306b\u5bfe\u3057\u3066\u8ffd\u52a0\u306e\u300callow publish\u300d\u30a8\u30f3\u30c8\u30ea\u3092\u8a2d\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u81ea\u5206\u306e\u30ed\u30fc\u30ab\u30ebIP\u30a2\u30c9\u30ec\u30b9\u304c\u5206\u304b\u3089\u306a\u3044\u5834\u5408\u306f\u3001\u300cWhat\u2019s my IP\u300d\u306a\u3069\u306e\u30b5\u30a4\u30c8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066\u3001\u305d\u308c\u304c\u3069\u3053\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3055\u308c\u305f\u304b\u3092\u78ba\u8a8d\u3059\u308b\u3053\u3068\u304c\u304a\u3059\u3059\u3081\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/nginx.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div>\/etc\/nginx\/nginx.conf\u306e\u65e5\u672c\u8a9e\u3067\u306e\u540c\u7fa9\u8868\u73fe\u306f\u6b21\u306e\u901a\u308a\u3067\u3059\u3002<br \/>\n\u300c\/etc\/nginx\/nginx.conf\u30d5\u30a1\u30a4\u30eb\u300d<\/div>\n<pre class=\"post-pre\"><code>. . .\r\n                allow publish 127.0.0.1;\r\n                allow publish <mark>your_local_ip_address<\/mark>;\r\n                deny publish all;\r\n. . .\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3001\u305d\u306e\u5f8c\u306bNginx\u3092\u518d\u8aad\u307f\u8fbc\u307f\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl reload nginx.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4eca\u3067\u306f\u3001OBS\u306e\u8a2d\u5b9a\u30e1\u30cb\u30e5\u30fc\u3092\u9589\u3058\u3001\u30e1\u30a4\u30f3\u30a4\u30f3\u30bf\u30fc\u30d5\u30a7\u30fc\u30b9\u304b\u3089\u300c\u30b9\u30c8\u30ea\u30fc\u30e0\u958b\u59cb\u300d\u3092\u30af\u30ea\u30c3\u30af\u3067\u304d\u308b\u306f\u305a\u3067\u3059\uff01\u524d\u3068\u540c\u3058\u3088\u3046\u306b\u3001\u30e1\u30c7\u30a3\u30a2\u30d7\u30ec\u30fc\u30e4\u30fc\u3067rtmp:\/\/your_domain\/live\/obs_stream\u3067\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u8996\u8074\u3057\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d3\u30c7\u30aa\u306e\u57fa\u672c\u3092\u7406\u89e3\u3057\u305f\u306e\u3067\u3001\u30b5\u30fc\u30d0\u30fc\u306b\u3044\u304f\u3064\u304b\u306e\u4ed6\u306e\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u3066\u3001\u3088\u308a\u672c\u756a\u5411\u304d\u306b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d74 \u2014 \u8a2d\u5b9a\u306b\u76e3\u8996\u3092\u8ffd\u52a0\u3059\u308b\uff08\u30aa\u30d7\u30b7\u30e7\u30f3\uff09<\/h2>\n<p>Nginx-RTMP\u30e2\u30b8\u30e5\u30fc\u30eb\u3092\u4f7f\u7528\u3057\u3066\u30d3\u30c7\u30aa\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3092\u8a2d\u5b9a\u3057\u305f\u306e\u3067\u3001\u6b21\u306e\u4e00\u822c\u7684\u306a\u30b9\u30c6\u30c3\u30d7\u306fRTMP\u306e\u7d71\u8a08\u30da\u30fc\u30b8\u3092\u6709\u52b9\u306b\u3059\u308b\u3053\u3068\u3067\u3059\u3002Nginx\u306f\u3001nginx.conf\u30d5\u30a1\u30a4\u30eb\u306b\u3055\u3089\u306b\u591a\u304f\u306e\u8a2d\u5b9a\u8a73\u7d30\u3092\u8ffd\u52a0\u3059\u308b\u4ee3\u308f\u308a\u306b\u3001sites-available\/\u3068\u3044\u3046\u30b5\u30d6\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306e\u500b\u3005\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u30b5\u30a4\u30c8\u3054\u3068\u306e\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u8a31\u53ef\u3057\u3066\u3044\u307e\u3059\u3002\u3053\u306e\u5834\u5408\u3001rtmp\u3068\u3044\u3046\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/sites-available\/rtmp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002 (Ika no naiy\u014d o tsuika shite kudasai)<\/p>\n<div>\/etc\/nginx\/sites-available\/rtmp \u306e\u5185\u5bb9\u3092\u65e5\u672c\u8a9e\u3067\u8ff0\u3079\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>server {\r\n    listen 8080;\r\n    server_name  localhost;\r\n\r\n    # rtmp stat\r\n    location \/stat {\r\n        rtmp_stat all;\r\n        rtmp_stat_stylesheet stat.xsl;\r\n    }\r\n    location \/stat.xsl {\r\n        root \/var\/www\/html\/rtmp;\r\n    }\r\n\r\n    # rtmp control\r\n    location \/control {\r\n        rtmp_control all;\r\n    }\r\n}\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u307e\u3059\u3002\u3053\u306e\u8a2d\u5b9a\u30d6\u30ed\u30c3\u30af\u304b\u3089\u306estat.xsl\u30d5\u30a1\u30a4\u30eb\u306f\u3001\u30d6\u30e9\u30a6\u30b6\u3067RTMP\u7d71\u8a08\u30da\u30fc\u30b8\u306e\u30b9\u30bf\u30a4\u30eb\u3068\u8868\u793a\u306b\u4f7f\u7528\u3055\u308c\u307e\u3059\u3002\u3053\u308c\u306f\u3001\u524d\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305flibnginx-mod-rtmp\u30e9\u30a4\u30d6\u30e9\u30ea\u306b\u3088\u3063\u3066\u63d0\u4f9b\u3055\u308c\u307e\u3059\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u5727\u7e2e\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001\u89e3\u51cd\u3057\u3066\/var\/www\/html\/rtmp\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u914d\u7f6e\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u306a\u304a\u3001\u3053\u308c\u3089\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u95a2\u3059\u308b\u8ffd\u52a0\u60c5\u5831\u306f\u3001Nginx-RTMP\u306e\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u898b\u3064\u3051\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u7528\u3057\u3066\u3001\/var\/www\/html\/rtmp\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001\u6b21\u306bstat.xsl.gz\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u51cd\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> \/var\/www\/html\/rtmp<\/li>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">cp<\/span> \/usr\/share\/doc\/libnginx-mod-rtmp\/examples\/stat.xsl \/var\/www\/html\/rtmp\/stat.xsl<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001\u8ffd\u52a0\u3057\u305f\u7d71\u8a08\u30da\u30fc\u30b8\u3078\u30a2\u30af\u30bb\u30b9\u3059\u308b\u305f\u3081\u306b\u306f\u3001\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u5225\u306e\u30dd\u30fc\u30c8\u3092\u958b\u304f\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u5177\u4f53\u7684\u306b\u306f\u3001\u30ea\u30c3\u30b9\u30f3\u30c7\u30a3\u30ec\u30af\u30c6\u30a3\u30d6\u304c\u30dd\u30fc\u30c88080\u3067\u8a2d\u5b9a\u3055\u308c\u3066\u3044\u308b\u305f\u3081\u3001Nginx\u3078\u306e\u30a2\u30af\u30bb\u30b9\u3092\u8a31\u53ef\u3059\u308b\u305f\u3081\u306b\u306f\u898f\u5247\u3092\u8ffd\u52a0\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3057\u3001\u4ed6\u306e\u4eba\u304c\u7d71\u8a08\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u306e\u306f\u671b\u307e\u3057\u304f\u306a\u3044\u3067\u3057\u3087\u3046\u304b\u3089\u3001\u81ea\u5206\u81ea\u8eab\u306eIP\u30a2\u30c9\u30ec\u30b9\u304b\u3089\u306e\u30a2\u30af\u30bb\u30b9\u306e\u307f\u3092\u8a31\u53ef\u3059\u308b\u306e\u304c\u6700\u5584\u3067\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw allow from <mark>your_ip_address<\/mark> to any port http-alt<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6b21\u306b\u3001\u3053\u306e\u65b0\u3057\u3044\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002Nginx\u306e\u6163\u4f8b\u3067\u306f\u3001sites-available\/\u5185\u306e\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u3001\u6709\u52b9\u307e\u305f\u306f\u7121\u52b9\u306b\u3059\u308b\u3068\u304d\u306bsites-enabled\/\u3068\u3044\u3046\u5225\u306e\u30d5\u30a9\u30eb\u30c0\u306b\u30b7\u30f3\u30dc\u30ea\u30c3\u30af\u30ea\u30f3\u30af\uff08\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u306e\u3088\u3046\u306a\u3082\u306e\uff09\u3092\u4f5c\u6210\u3057\u307e\u3059\u3002\u660e\u77ad\u3055\u306e\u305f\u3081\u306b\u3001\u5b8c\u5168\u306a\u30d1\u30b9\u3092\u4f7f\u7528\u3057\u3066\u305d\u306e\u30ea\u30f3\u30af\u3092\u4f5c\u6210\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">ln<\/span> <span class=\"token parameter variable\">-s<\/span> \/etc\/nginx\/sites-available\/rtmp \/etc\/nginx\/sites-enabled\/rtmp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306f\u4eca\u3001\u5909\u66f4\u5185\u5bb9\u3092\u53cd\u6620\u3055\u305b\u308b\u305f\u3081\u306bNginx\u3092\u518d\u5ea6\u30ea\u30ed\u30fc\u30c9\u3067\u304d\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl reload nginx.service<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u3042\u306a\u305f\u306f\u4eca\u3001\u30d6\u30e9\u30a6\u30b6\u3067 http:\/\/your_domain:8080\/stat \u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3001RTMP\u306e\u7d71\u8a08\u30da\u30fc\u30b8\u3092\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306f\u305a\u3067\u3059\u3002\u52d5\u753b\u3092\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3057\u306a\u304c\u3089\u30da\u30fc\u30b8\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3001\u30ea\u30d5\u30ec\u30c3\u30b7\u30e5\u3057\u3066\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u7d71\u8a08\u60c5\u5831\u304c\u5909\u5316\u3059\u308b\u306e\u3092\u898b\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u3042\u306a\u305f\u306f\u73fe\u5728\u3001\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u76e3\u8996\u3057\u3001\u7b2c\u4e09\u8005\u306e\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306b\u9001\u4fe1\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3057\u305f\u3002\u6700\u7d42\u30bb\u30af\u30b7\u30e7\u30f3\u3067\u306f\u3001\u7b2c\u4e09\u8005\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30e9\u30c3\u30c8\u30d5\u30a9\u30fc\u30e0\u3084\u72ec\u7acb\u3057\u305f\u30e1\u30c7\u30a3\u30a2\u30d7\u30ec\u30fc\u30e4\u30fc\u30a2\u30d7\u30ea\u3092\u4f7f\u7528\u3057\u306a\u3044\u3067\u3001\u76f4\u63a5\u30d6\u30e9\u30a6\u30b6\u4e0a\u3067\u63d0\u4f9b\u3059\u308b\u65b9\u6cd5\u3092\u5b66\u3073\u307e\u3059\u3002<\/p>\n<h2>\u30b9\u30c6\u30c3\u30d75 &#8211; \u30d6\u30e9\u30a6\u30b6\u5411\u3051\u306e\u30e2\u30c0\u30f3\u306a\u30b9\u30c8\u30ea\u30fc\u30e0\u306e\u4f5c\u6210 (\u30aa\u30d7\u30b7\u30e7\u30f3)<\/h2>\n<p>\u6700\u5f8c\u306e\u30b9\u30c6\u30c3\u30d7\u3068\u3057\u3066\u3001\u30e6\u30fc\u30b6\u30fc\u304c\u30a6\u30a7\u30d6\u30d6\u30e9\u30a6\u30b6\u3092\u4f7f\u7528\u3057\u3066\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u76f4\u63a5\u30d3\u30c7\u30aa\u3092\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u3067\u304d\u308b\u3088\u3046\u306b\u3001\u65b0\u3057\u3044\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d7\u30ed\u30c8\u30b3\u30eb\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u8ffd\u52a0\u3059\u308b\u3053\u3068\u3092\u304a\u3059\u3059\u3081\u3057\u307e\u3059\u3002Apple\u306eHLS\u3068MPEG DASH\u306e2\u3064\u306e\u30d7\u30ed\u30c8\u30b3\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3001HTTP\u30d9\u30fc\u30b9\u306e\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u4f5c\u6210\u3067\u304d\u307e\u3059\u3002\u305d\u308c\u305e\u308c\u306b\u5229\u70b9\u3068\u6b20\u70b9\u304c\u3042\u308a\u307e\u3059\u306e\u3067\u3001\u304a\u305d\u3089\u304f\u4e21\u65b9\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u3053\u3068\u3092\u304a\u52e7\u3081\u3057\u307e\u3059\u3002<\/p>\n<p>Nginx-RTMP\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u3001\u4e21\u65b9\u306e\u6a19\u6e96\u3092\u30b5\u30dd\u30fc\u30c8\u3057\u3066\u3044\u307e\u3059\u3002HLS\u3068DASH\u306e\u30b5\u30dd\u30fc\u30c8\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u8ffd\u52a0\u3059\u308b\u306b\u306f\u3001nginx.conf\u30d5\u30a1\u30a4\u30eb\u5185\u306ertmp\u30d6\u30ed\u30c3\u30af\u3092\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002nano\u307e\u305f\u306f\u304a\u597d\u307f\u306e\u30a8\u30c7\u30a3\u30bf\u3092\u4f7f\u7528\u3057\u3066\/etc\/nginx\/nginx.conf\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306e\u30cf\u30a4\u30e9\u30a4\u30c8\u8868\u793a\u3055\u308c\u305f\u6307\u793a\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/nginx.conf<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div>\/etc\/nginx\/nginx.conf\u3092\u65e5\u672c\u8a9e\u3067\u66f8\u304d\u63db\u3048\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u306a\u308a\u307e\u3059\u3002<\/div>\n<pre class=\"post-pre\"><code>. . .\r\nrtmp {\r\n        server {\r\n. . .\r\n                application live {\r\n                        live on;\r\n                        record off;\r\n                        <mark>hls on;<\/mark>\r\n                        <mark>hls_path \/var\/www\/html\/stream\/hls;<\/mark>\r\n                        <mark>hls_fragment 3;<\/mark>\r\n                        <mark>hls_playlist_length 60;<\/mark>\r\n\r\n                        <mark>dash on;<\/mark>\r\n                        <mark>dash_path \/var\/www\/html\/stream\/dash;<\/mark>\r\n                }\r\n        }\r\n}\r\n. . .\r\n<\/code><\/pre>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u6b21\u306b\u3001sites-available\/rtmp\u306e\u672b\u5c3e\u306b\u3053\u308c\u3092\u8ffd\u52a0\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">nano<\/span> \/etc\/nginx\/sites-available\/rtmp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<div>\/etc\/nginx\/sites-available\/rtmp\u306e\u65e5\u672c\u8a9e\u3067\u306e\u30d1\u30e9\u30d5\u30ec\u30fc\u30ba\uff1a<br \/>\n\u300c\/etc\/nginx\/sites-available\/rtmp\u300d<\/div>\n<pre class=\"post-pre\"><code>. . .\r\nserver {\r\n    listen 8088;\r\n\r\n    location \/ {\r\n        add_header Access-Control-Allow-Origin *;\r\n        root \/var\/www\/html\/stream;\r\n    }\r\n}\r\n\r\ntypes {\r\n    application\/dash+xml mpd;\r\n}\r\n<\/code><\/pre>\n<div class=\"post-conf-note\">\n<p class=\"post-conf-desc\">Note<\/p>\n<div>\u6ce8\u610f\uff1aAccess-Control-Allow-Origin * \u30d8\u30c3\u30c0\u30fc\u306f\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u7121\u52b9\u306b\u306a\u3063\u3066\u3044\u308bCORS\uff08Cross-Origin Resource Sharing\uff09\u3092\u6709\u52b9\u306b\u3057\u307e\u3059\u3002\u3053\u308c\u306b\u3088\u308a\u3001\u30b5\u30fc\u30d0\u30fc\u304b\u3089\u30c7\u30fc\u30bf\u306b\u30a2\u30af\u30bb\u30b9\u3059\u308b\u3059\u3079\u3066\u306eWeb\u30d6\u30e9\u30a6\u30b6\u304c\u3001\u30b5\u30fc\u30d0\u30fc\u304c\u4ed6\u306e\u30dd\u30fc\u30c8\u3084\u30c9\u30e1\u30a4\u30f3\u304b\u3089\u30ea\u30bd\u30fc\u30b9\u3092\u8aad\u307f\u8fbc\u3080\u3053\u3068\u304c\u3067\u304d\u308b\u3053\u3068\u3092\u901a\u77e5\u3057\u307e\u3059\u3002CORS\u306f\u3001HLS\u3068DASH\u306e\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u3068\u306e\u6700\u5927\u306e\u4e92\u63db\u6027\u3092\u78ba\u4fdd\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u3067\u3042\u308a\u3001\u4ed6\u306e\u591a\u304f\u306eWeb\u5c55\u958b\u3067\u5171\u901a\u306e\u8a2d\u5b9a\u30c8\u30b0\u30eb\u3067\u3059\u3002<\/div>\n<\/div>\n<p>\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u3066\u9589\u3058\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u3053\u3067\u306f\u30dd\u30fc\u30c88088\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u3053\u3068\u306b\u6ce8\u610f\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u306f\u3001\u30dd\u30fc\u30c880\u3084443\u3067\u5b9f\u884c\u3057\u3066\u3044\u308b\u30b5\u30fc\u30d3\u30b9\u3068\u885d\u7a81\u3059\u308b\u306e\u3092\u907f\u3051\u308b\u305f\u3081\u306b\u3001\u3053\u308c\u3082\u4efb\u610f\u306e\u9078\u629e\u80a2\u3067\u3059\u3002\u4e00\u6642\u7684\u306b\u30d5\u30a1\u30a4\u30a2\u30a6\u30a9\u30fc\u30eb\u3067\u305d\u306e\u30dd\u30fc\u30c8\u3092\u958b\u3051\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> ufw allow <span class=\"token number\">8088<\/span>\/tcp<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u6700\u5f8c\u306b\u3001\u8a2d\u5b9a\u30d6\u30ed\u30c3\u30af\u3068\u4e00\u81f4\u3059\u308b\u3088\u3046\u306bWeb\u30eb\u30fc\u30c8\u306b\u30b9\u30c8\u30ea\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3092\u4f5c\u6210\u3057\u3001Nginx\u304cHLS\u3068DASH\u306b\u5fc5\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u751f\u6210\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> <span class=\"token function\">mkdir<\/span> \/var\/www\/html\/stream<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u518d\u3073Nginx\u3092\u30ea\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<ol>\n<li data-prefix=\"$\"><span class=\"token function\">sudo<\/span> systemctl reload nginx<\/li>\n<\/ol>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"post-pre\"><code><\/code><\/pre>\n<p>\u73fe\u5728\u3001http:\/\/your_domain:8088\/hls\/stream.m3u8\u306bHLS\u30b9\u30c8\u30ea\u30fc\u30e0\u304c\u5229\u7528\u53ef\u80fd\u3067\u3042\u308a\u3001http:\/\/your_domain:8088\/dash\/stream.mpd\u306bDASH\u30b9\u30c8\u30ea\u30fc\u30e0\u304c\u5229\u7528\u53ef\u80fd\u3068\u306a\u308a\u307e\u3057\u305f\u3002\u3053\u308c\u3089\u306e\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u306f\u3001\u30e2\u30c0\u30f3\u306aAPI\u3092\u30b5\u30dd\u30fc\u30c8\u3059\u308b\u305f\u3081\u306b\u3001RTMP\u30d3\u30c7\u30aa\u30d5\u30a3\u30fc\u30c9\u306e\u4e0a\u306b\u5fc5\u8981\u306a\u30e1\u30bf\u30c7\u30fc\u30bf\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n<h2>\u7d50\u8ad6<\/h2>\n<p>\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u4f7f\u7528\u3057\u305f\u69cb\u6210\u30aa\u30d7\u30b7\u30e7\u30f3\u306f\u3001\u3059\u3079\u3066Nginx RTMP Wiki\u30da\u30fc\u30b8\u306b\u6587\u66f8\u5316\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u901a\u5e38\u3001Nginx\u30e2\u30b8\u30e5\u30fc\u30eb\u306f\u5171\u901a\u306e\u69cb\u6587\u3092\u5171\u6709\u3057\u3001\u975e\u5e38\u306b\u591a\u304f\u306e\u8a2d\u5b9a\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u516c\u958b\u3057\u3066\u304a\u308a\u3001\u3053\u3053\u304b\u3089\u8a2d\u5b9a\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u306b\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3092\u53c2\u7167\u3067\u304d\u307e\u3059\u3002<\/p>\n<p>\u307b\u3068\u3093\u3069\u306e\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8\u306e\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306f\u3001RTMP\u3001HLS\u3001\u304a\u3088\u3073DASH\u4e0a\u3067\u5b9f\u88c5\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u305d\u3057\u3066\u3001\u3053\u306e\u30c1\u30e5\u30fc\u30c8\u30ea\u30a2\u30eb\u3067\u63a2\u7a76\u3057\u305f\u65b9\u6cd5\u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3067\u3001\u4ed6\u306e\u653e\u9001\u30b5\u30fc\u30d3\u30b9\u3092\u901a\u3058\u3066\u30b9\u30c8\u30ea\u30fc\u30e0\u3092\u63d0\u4f9b\u3057\u305f\u308a\u3001\u9078\u629e\u3057\u305f\u65b9\u6cd5\u3067\u516c\u958b\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u307e\u3059\u3002\u6b21\u306b\u3001\u3053\u308c\u3089\u306e\u7570\u306a\u308b\u30d3\u30c7\u30aa\u30a8\u30f3\u30c9\u30dd\u30a4\u30f3\u30c8\u3092\u30b5\u30d6\u30c9\u30e1\u30a4\u30f3\u3068\u3057\u3066\u5229\u7528\u3067\u304d\u308b\u3088\u3046\u3001Nginx\u3092\u30ea\u30d0\u30fc\u30b9\u30d7\u30ed\u30ad\u30b7\u3068\u3057\u3066\u8a2d\u5b9a\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u8aad\u3093\u3067\u307f\u308b\u3053\u3068\u3082\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b \u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30d3\u30c7\u30aa\u306b\u306f\u591a\u304f\u306e\u7528\u9014\u304c\u3042\u308a\u307e\u3059\u3002Twitch\u306e\u3088\u3046\u306a\u30b5\u30fc\u30d3\u30b9\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc\u306f\u3001\u30a6\u30a7\u30d6\u63a2\u7d22\u3084\u30b3\u30df\u30e5\u30cb\u30c6\u30a3\u7ba1\u7406\u306e\u5074\u9762\u306e\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u306b\u975e\u5e38\u306b\u4eba\u6c17\u304c\u3042\u308a\u307e\u3059\u3002\u307e\u305f\u3001OBS Studio\u306e\u3088\u3046\u306a\u7121\u6599\u30bd\u30d5\u30c8\u30a6 [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[58,18],"class_list":["post-177","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-linux","tag-18"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 - Blog - Silicon Cloud<\/title>\n<meta name=\"description\" content=\"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\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.silicloud.com\/ja\/blog\/ubuntu-22-04\u3092\u4f7f\u7528\u3057\u3066\u3001nginx-rtmp\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\/\" \/>\n<meta property=\"og:locale\" content=\"ja_JP\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\" \/>\n<meta property=\"og:description\" content=\"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04\u3092\u4f7f\u7528\u3057\u3066\u3001nginx-rtmp\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-06T09:07:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-07-31T12:24:18+00:00\" \/>\n<meta name=\"author\" content=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u57f7\u7b46\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u7dbe\u4e43, \u4e00\u5e0c\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"29\u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/\",\"name\":\"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\"},\"datePublished\":\"2023-01-06T09:07:03+00:00\",\"dateModified\":\"2025-07-31T12:24:18+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff\"},\"description\":\"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/#breadcrumb\"},\"inLanguage\":\"ja\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/ja\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"ja\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff\",\"name\":\"\u7dbe\u4e43, \u4e00\u5e0c\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g\",\"caption\":\"\u7dbe\u4e43, \u4e00\u5e0c\"},\"url\":\"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"ja\",\"@id\":\"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 - Blog - Silicon Cloud","description":"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","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.silicloud.com\/ja\/blog\/ubuntu-22-04\u3092\u4f7f\u7528\u3057\u3066\u3001nginx-rtmp\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\/","og_locale":"ja_JP","og_type":"article","og_title":"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002","og_description":"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","og_url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04\u3092\u4f7f\u7528\u3057\u3066\u3001nginx-rtmp\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-06T09:07:03+00:00","article_modified_time":"2025-07-31T12:24:18+00:00","author":"\u7dbe\u4e43, \u4e00\u5e0c","twitter_card":"summary_large_image","twitter_misc":{"\u57f7\u7b46\u8005":"\u7dbe\u4e43, \u4e00\u5e0c","\u63a8\u5b9a\u8aad\u307f\u53d6\u308a\u6642\u9593":"29\u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/","url":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/","name":"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website"},"datePublished":"2023-01-06T09:07:03+00:00","dateModified":"2025-07-31T12:24:18+00:00","author":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff"},"description":"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3092\u5206\u304b\u308a\u3084\u3059\u304f\u89e3\u8aac\u3002\u5b9f\u8df5\u7684\u306a\u4f8b\u3068\u30b3\u30fc\u30c9\u3001\u6ce8\u610f\u70b9\u3092\u542b\u3081\u3066\u521d\u5fc3\u8005\u306b\u3082\u7406\u89e3\u3067\u304d\u308b\u3088\u3046\u8aac\u660e\u3057\u307e\u3059\u3002","breadcrumb":{"@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/#breadcrumb"},"inLanguage":"ja","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/ja\/blog\/"},{"@type":"ListItem","position":2,"name":"Ubuntu 22.04\u3092\u4f7f\u7528\u3057\u3066\u3001Nginx-RTMP\u3092\u4f7f\u3063\u305f\u30d3\u30c7\u30aa\u30b9\u30c8\u30ea\u30fc\u30df\u30f3\u30b0\u30b5\u30fc\u30d0\u30fc\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u6559\u3048\u3066\u304f\u3060\u3055\u3044\u3002"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#website","url":"https:\/\/www.silicloud.com\/ja\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"ja"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/601389077b7f4e4ad6115428e3b73bff","name":"\u7dbe\u4e43, \u4e00\u5e0c","image":{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/2228fe98b71141214fb24fb1b5ae44f99bdfa0602bbd89b351f2acd49ece862d?s=96&d=mm&r=g","caption":"\u7dbe\u4e43, \u4e00\u5e0c"},"url":"https:\/\/www.silicloud.com\/ja\/blog\/author\/ayanokazuki\/"},{"@type":"ImageObject","inLanguage":"ja","@id":"https:\/\/www.silicloud.com\/ja\/blog\/ubuntu-22-04%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%a6%e3%80%81nginx-rtmp%e3%82%92%e4%bd%bf%e3%81%a3%e3%81%9f%e3%83%93%e3%83%87%e3%82%aa%e3%82%b9%e3%83%88%e3%83%aa%e3%83%bc%e3%83%9f%e3%83%b3\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/177","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/comments?post=177"}],"version-history":[{"count":1,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/177\/revisions"}],"predecessor-version":[{"id":37336,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/posts\/177\/revisions\/37336"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/media?parent=177"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/categories?post=177"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/ja\/blog\/wp-json\/wp\/v2\/tags?post=177"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}