{"id":9954,"date":"2020-08-11T23:19:46","date_gmt":"2020-08-12T06:19:46","guid":{"rendered":"https:\/\/www.apolonio.com\/blog\/?p=9954"},"modified":"2020-08-11T23:19:46","modified_gmt":"2020-08-12T06:19:46","slug":"streaming-pc-to-kodi","status":"publish","type":"post","link":"https:\/\/www.apolonio.com\/blog\/?p=9954","title":{"rendered":"Streaming PC to Kodi"},"content":{"rendered":"\n<p>I finally figured out how to stream my Windows 10 box to my Kodi setup.<\/p>\n\n\n\n<p>Basically I used nginx with some rtmp forwarding to get it to work.<\/p>\n\n\n\n<p>I followed this <a href=\"https:\/\/obsproject.com\/forum\/resources\/how-to-set-up-your-own-private-rtmp-server-using-nginx.50\/\">https:\/\/obsproject.com\/forum\/resources\/how-to-set-up-your-own-private-rtmp-server-using-nginx.50\/<\/a><\/p>\n\n\n\n<p>First I had to set up nginx on a CentOS box, unfortunately I could not use the EPEL packages because I needed a special module.<\/p>\n\n\n\n<p>Luckily it is an easy to build from source<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">git clone https:\/\/github.com\/sergey-dryabzhinsky\/nginx-rtmp-module.git\nwget http:\/\/nginx.org\/download\/nginx-1.18.0.tar.gz\ntar zxvf nginx-1.18.0.tar.gz\ncd ..\/nginx-1.18.0\/\n.\/configure --with-http_ssl_module --add-module=..\/nginx-rtmp-module\nmake \nmake install\n<\/pre>\n\n\n\n<p>Next edit \/usr\/local\/nginx\/conf\/nginx.conf and append the following<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">rtmp {\nserver {\nlisten 1935;\nchunk_size 4096;\n<code>application live { live on; record off; } }<\/code>\n}<\/pre>\n\n\n\n<p>Then follow start it<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">\/usr\/local\/nginx\/sbin\/nginx<\/pre>\n\n\n\n<p>From windows use OBS to stream<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"970\" height=\"174\" src=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/08\/image.png\" alt=\"\" class=\"wp-image-9955\" srcset=\"https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/08\/image.png 970w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/08\/image-300x54.png 300w, https:\/\/www.apolonio.com\/blog\/wp-content\/uploads\/2020\/08\/image-768x138.png 768w\" sizes=\"auto, (max-width: 970px) 100vw, 970px\" \/><\/figure>\n\n\n\n<p>It works for the most part.<\/p>\n\n\n\n<p>Weight: 316.8<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I finally figured out how to stream my Windows 10 box to my Kodi setup. Basically I used nginx with some rtmp forwarding to get it to work. I followed this https:\/\/obsproject.com\/forum\/resources\/how-to-set-up-your-own-private-rtmp-server-using-nginx.50\/ First I had to set up nginx on &hellip; <a href=\"https:\/\/www.apolonio.com\/blog\/?p=9954\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,3,9],"tags":[],"class_list":["post-9954","post","type-post","status-publish","format-standard","hentry","category-technical","category-training","category-weighin"],"_links":{"self":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=9954"}],"version-history":[{"count":1,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9954\/revisions"}],"predecessor-version":[{"id":9956,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/9954\/revisions\/9956"}],"wp:attachment":[{"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=9954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=9954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.apolonio.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=9954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}