{"id":8,"date":"2018-07-05T13:52:00","date_gmt":"2018-07-05T13:52:00","guid":{"rendered":""},"modified":"2021-02-22T01:14:12","modified_gmt":"2021-02-22T01:14:12","slug":"installing-acestream-proxy-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.tech-and-dev.com\/blog\/2018\/07\/installing-acestream-proxy-on-ubuntu.html","title":{"rendered":"Installing Acestream Proxy on Ubuntu Server &#038; Streaming it locally"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a style=\"margin-left: 1em; margin-right: 1em;\" href=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2018\/07\/acestreamlogo.png\"><img decoding=\"async\" title=\"acestream logo\" src=\"https:\/\/www.tech-and-dev.com\/blog\/wp-content\/uploads\/2018\/07\/acestreamlogo.png\" alt=\"acestream logo\" border=\"0\" data-original-height=\"250\" data-original-width=\"250\" \/><\/a><\/div>\n<p>Acestream allows you to stream a video from peer to peer (P2P) connections. Because it&#8217;s a P2P and works like torrents, your connection will be distributed to other users that are streaming the same video.<\/p>\n<p>If you have a slow internet connection or slow upload, you can install acestream on a small server and stream it locally from your PC.<\/p>\n<p><a name=\"more\"><\/a><\/p>\n<h2 style=\"text-align: left;\">Installation<\/h2>\n<p>The following was tested on Ubuntu 16.04<\/p>\n<p>Install wget and nano if they aren&#8217;t installed<\/p>\n<pre>sudo apt-get install nano wget<\/pre>\n<p>Installing python packages<\/p>\n<pre>sudo apt-get install python-gevent python-psutil<\/pre>\n<p>Installing git<\/p>\n<pre>sudo apt-get install git<\/pre>\n<p>Installing VLC<\/p>\n<pre>sudo apt-get install vlc<\/pre>\n<p>Installing Acestream Engine<br \/>\nOpen apt sources<\/p>\n<pre>sudo nano \/etc\/apt\/sources.list<\/pre>\n<p>And add the following at the end<\/p>\n<pre>deb http:\/\/repo.acestream.org\/ubuntu\/ trusty main<\/pre>\n<p>Install the public key for the repo<\/p>\n<pre>sudo wget -O - http:\/\/repo.acestream.org\/keys\/acestream.public.key | sudo apt-key add -<\/pre>\n<p>Install Ace Stream engine<\/p>\n<pre>sudo apt-get install acestream-engine<\/pre>\n<p>And copy AceStream proxy from git<\/p>\n<pre>git clone https:\/\/github.com\/ValdikSS\/aceproxy.git<\/pre>\n<p>Configure the AceStream proxy:<\/p>\n<pre>cd aceproxy\r\nnano aceconfig.py<\/pre>\n<p>And change the following:<\/p>\n<pre>vlcuse = True\r\nvideodelay = 0\r\nvideoobey = False\r\nvideopausedelay = 0<\/pre>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: left;\">Installing Pulse Audio<\/h2>\n<pre>sudo apt-get install pulseaudio<\/pre>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: left;\">Running the acestream<\/h2>\n<p>I&#8217;ll add <b>&#8220;&amp;<\/b>&#8221; in the end of the commands in case you want to close the terminal and keep them running in the background.<\/p>\n<pre>pulseaudio -D --system\r\nvlc -I telnet --clock-jitter -1 --network-caching -1 --sout-mux-caching 3000 --telnet-password admin --telnet-port 4212 &amp;\r\nacestreamengine --client-console &amp;\r\npython acehttp.py &amp;<\/pre>\n<p>&nbsp;<\/p>\n<h2 style=\"text-align: left;\">Streaming Locally<\/h2>\n<p>Open VLC or any media player and stream from the following url:<br \/>\nhttp:\/\/<span style=\"color: #38761d;\"><span style=\"color: #cc0000;\">yourServerIp<\/span><\/span>:8000\/pid\/<span style=\"color: #741b47;\">acestreamId<\/span>\/stream.mp4<\/p>\n<p>Where <span style=\"color: #38761d;\"><span style=\"color: #cc0000;\">yourServerIp<\/span><\/span> is the IP of the server and <span style=\"color: #741b47;\">acestreamId<\/span> is a 40 character hash.<\/p>\n<p><b>Any questions? Post them below!<\/b><\/p>\n<p>&nbsp;<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Acestream allows you to stream a video from peer to peer (P2P) connections. Because it&#8217;s a P2P and works like torrents, your connection will be distributed to other users that are streaming the same video. If you have a slow internet connection or slow upload, you can install acestream on a small server and stream [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,6,5,4],"tags":[],"class_list":["post-8","post","type-post","status-publish","format-standard","hentry","category-acestream","category-linux","category-torrent","category-ubuntu"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/8","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/comments?post=8"}],"version-history":[{"count":2,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions"}],"predecessor-version":[{"id":391,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/posts\/8\/revisions\/391"}],"wp:attachment":[{"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/media?parent=8"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/categories?post=8"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.tech-and-dev.com\/blog\/wp-json\/wp\/v2\/tags?post=8"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}