Acestream Player - Alternative for Torrents

Share your own howto's etc. Not for support questions!
Post Reply
Message
Author
User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Acestream Player - Alternative for Torrents

#1 Post by bester69 »

Acestream Player
http://acestream.org/

0- Install webtorrent client
sudo apt-get install nodejs-legacy
sudo npm install webtorrent-cli -g

1- Create a desktop script that we'll use as a luncher by drag&drop the file torrent over it.
# video Player we want to use (vlc/mpv, etc)
player="vlc"
killall $player
killall node
killall WebTorrent
sleep 1
killall -9 $player
killall -9 WebTorrent
killall -9 node
rm -rfv /tmp/webtorrent/*
webtorrent "$1" --$player --port 8622 -o /tmp/webtorrent/ &
sleep 10
#We'll use gcolor2 app to pause the flow of the script
gcolor2
rm -rfv /tmp/webtorrent/*
killall $player
killall WebTorrent
killall node
sleep 1
killall -9 $player
killall -9 WebTorrent
killall -9 node
It works very well, i'd say its the same as using Acestream Player :wink:
Last edited by bester69 on 2017-02-13 03:00, edited 1 time in total.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

User avatar
BubuXP
Posts: 29
Joined: 2014-10-27 00:41
Location: Oriental Sicily

Re: Acestream Player - Alternative

#2 Post by BubuXP »

Did you test this? It doesn't seem to work.
Usually you get an AceStream URL link (acestream://), not a torrent file...

User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Re: Acestream Player - Alternative

#3 Post by bester69 »

BubuXP wrote:Did you test this? It doesn't seem to work.
Usually you get an AceStream URL link (acestream://), not a torrent file...
HI bubu,

the script do work, im using it now,
You need to have installed:
- gcolor2
- vlc or mpv
- webtorrent


im using with .torrent files, i dont know about link (acestream://), but you could check it this way:

Code: Select all

webtorrent acestream://yourURLAcestreamxxxx --vlc --port 8622 -o /tmp/webtorrent/ 
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

jjgomera
Posts: 9
Joined: 2013-02-05 18:05

Re: Acestream Player - Alternative

#4 Post by jjgomera »

Interesting.

I'm trying to run acestream link in it but dont work

Code: Select all

jjgomera@hp:~$ webtorrent acestream://6cda05e087d8761071086a7af7f5fa003174a026 --vlc --port 8622 -o /tmp/webtorrent/
Error: Invalid torrent identifier

UNEXPECTED ERROR: If this is a bug in WebTorrent, report it!
OPEN AN ISSUE: https://github.com/feross/webtorrent/issues

DEBUG INFO: webtorrent-cli 1.9.0, webtorrent 0.98.7, node v4.7.2, linux x64, exit 1
jjgomera@hp:~$
Obviously webtorrent don't recognize acestream links.

User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Re: Acestream Player - Alternative

#5 Post by bester69 »

jjgomera wrote:Interesting.

I'm trying to run acestream link in it but dont work
.....

Obviously webtorrent don't recognize acestream links.
you're right i didnt know, Im using it to play torrents files ( i used AcestreamPlayer to watch torrent files), it seems doesnt play acestream protocol.

I searched for a solution for linux to play acestream protocol, and the way to go is:

0- Install:
- Kodi + plexus addon
- acestramengine
- Android Yatse App

1- To use acestream's urls (acestream://asnjwsda........) into kodi plexus addon, you'll need to write down the whole long url, or
you can do a simple Copy/Paste into it, by using Android apps:
>> Yatse App (control remote for kodi)

- Copy URL from your computer
- Paste from Android phone


2- You can replace native Kodi player for other one, by just editing playercorefactory.xml file:
Example of Kodi biding stream to mpv player:

Code: Select all

<playercorefactory>
        <players>
                <player name="VLC" type="ExternalPlayer" audio="false" video="true">
                        <filename>/usr/bin/mpv</filename>
                        <hidexbmc>true</hidexbmc>
                        <playcountminimumtime>120</playcountminimumtime>
                </player>

        </players>
        <rules action="prepend">
<!---
**********                   **********
********** EDIT THIS SECTION **********
**********                   **********
-->
                <rule protocols="smb" player="VLC" />
                <rule dvdimage="true" player="VLC"/>
                <rule protocols="rtmp" player="VLC"/>
                <rule protocols="rtsp" player="VLC" />
                <rule protocols="sop" player="VLC" />
                <rule internetstream="true" player="VLC" />
                <rule video="true" player="VLC"/> <!-- Default for anything else not listed -->
        </rules>
</playercorefactory>

bester69 wrote:You wont change my mind when I know Im right, Im not an ...

jjgomera
Posts: 9
Joined: 2013-02-05 18:05

Re: Acestream Player - Alternative for Torrents

#6 Post by jjgomera »

Thanks!
I'm trying to install without kodi

http://wiki.acestream.org/wiki/index.php/Install_Ubuntu

I can install acestream-engine.
But with acestream-player, I'm trying to compile from source as explain here: https://bitbucket.org/AceStream/acestre ... r/overview
First I dont know the code work, is fairly old, last commit is from end of 2014. Anyway i'm trying to compile.

First problem with ./configure:

Code: Select all

...
checking for AVCODEC... yes
configure: error: libavcodec versions 56 and later are not supported yet.
If I disable the avcodec the configure finish fine, but in make get the error

Code: Select all

...
  CC       liblibbluray_plugin_la-bluray.lo
In file included from /home/jjgomera/Descargas/AceStream-acestreamplayer-48e4768f9224/vlc-2.1.5/include/vlc_atomic.h:33:0,
                 from /home/jjgomera/Descargas/AceStream-acestreamplayer-48e4768f9224/vlc-2.1.5/modules/access/bluray.c:46:
/home/jjgomera/Descargas/AceStream-acestreamplayer-48e4768f9224/vlc-2.1.5/modules/access/bluray.c: In function ‘blurayInitOverlay’:
/home/jjgomera/Descargas/AceStream-acestreamplayer-48e4768f9224/vlc-2.1.5/modules/access/bluray.c:744:51: error: expected expression before ‘{’ token
     p_sys->p_overlays[ov->plane]->released_once = ATOMIC_FLAG_INIT;
                                                   ^
Makefile:3193: fallo en las instrucciones para el objetivo 'liblibbluray_plugin_la-bluray.lo'
make[5]: *** [liblibbluray_plugin_la-bluray.lo] Error 1
...
Really i don't know how to continue

User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Re: Acestream Player - Alternative for Torrents

#7 Post by bester69 »

jjgomera wrote:Thanks!
I'm trying to install without kodi

http://wiki.acestream.org/wiki/index.php/Install_Ubuntu

I can install acestream-engine.
But with acestream-player, I'm trying to compile from source as explain here: https://bitbucket.org/AceStream/acestre ... r/overview
First I dont know the code work, is fairly old, last commit is from end of 2014. Anyway i'm trying to compile.

First problem with ./configure:

Code: Select all

...
checking for AVCODEC... yes
configure: error: libavcodec versions 56 and later are not supported yet.
If I disable the avcodec the configure finish fine, but in make get the error

Code: Select all

...
  CC       liblibbluray_plugin_la-bluray.lo
In file included from /home/jjgomera/Descargas/AceStream-acestreamplayer-48e4768f9224/vlc-2.1.5/include/vlc_atomic.h:33:0,
                 from /home/jjgomera/Descargas/AceStream-acestreamplayer-48e4768f9224/vlc-2.1.5/modules/access/bluray.c:46:
/home/jjgomera/Descargas/AceStream-acestreamplayer-48e4768f9224/vlc-2.1.5/modules/access/bluray.c: In function ‘blurayInitOverlay’:
/home/jjgomera/Descargas/AceStream-acestreamplayer-48e4768f9224/vlc-2.1.5/modules/access/bluray.c:744:51: error: expected expression before ‘{’ token
     p_sys->p_overlays[ov->plane]->released_once = ATOMIC_FLAG_INIT;
                                                   ^
Makefile:3193: fallo en las instrucciones para el objetivo 'liblibbluray_plugin_la-bluray.lo'
make[5]: *** [liblibbluray_plugin_la-bluray.lo] Error 1
...
Really i don't know how to continue
That's a too old project, Im afraid its abandoned, you're gonna get many problems, I was using that acetream-player by when wheezy, and i yet got into trouble when i moved to Jessie, so now that im in Stretch i dont even consider that project.
Yesterday night i was trying my proposed solution (Kodi+plexus), and it works great, but the only way i know to copy/paste acestream's link is by using android's app.

I reccommed you dont try anymore, you will break your system.. use kodi.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

User avatar
phenest
Posts: 1704
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Acestream Player - Alternative for Torrents

#8 Post by phenest »

Acestream seems to make some assumptions about torrent files. I haven't read anything too much about it, but there is no way of knowing exactly whether the torrent is 100% available (or is there?), or if the music/video format/codec is playable, or what the folder structure is, to name a few potential problems. Do they have a way to overcome any of this? As someone whose bandwidth is limited, I'd hate to waste precious time streaming something that isn't complete and/or playable.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

User avatar
phenest
Posts: 1704
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Acestream Player - Alternative for Torrents

#9 Post by phenest »

ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Re: Acestream Player - Alternative for Torrents

#10 Post by bester69 »

phenest wrote:Found this:
https://webtorrent.io/desktop/
Phenest, this is the gui version of webtorrent-client, it doesnt play acestream protocol neither (it plays torrents files), the OP wants to play acestream's urls. (example url --> acestream://12hja3ekjlkeja892ejlkjlj), I think thats a proptocol propietary and needs acestreamengine as a client streaming.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

User avatar
phenest
Posts: 1704
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Acestream Player - Alternative for Torrents

#11 Post by phenest »

bester69 wrote:... the OP wants to play acestream's urls ...
I like the way you refer to yourself in the 3rd person.
ASRock H77 Pro4-M i7 3770K - 32GB RAM - Pioneer BDR-209D

jjgomera
Posts: 9
Joined: 2013-02-05 18:05

Re: Acestream Player - Alternative for Torrents

#12 Post by jjgomera »

bester69 wrote: That's a too old project, Im afraid its abandoned, you're gonna get many problems, I was using that acetream-player by when wheezy, and i yet got into trouble when i moved to Jessie, so now that im in Stretch i dont even consider that project.
Yesterday night i was trying my proposed solution (Kodi+plexus), and it works great, but the only way i know to copy/paste acestream's link is by using android's app.

I reccommed you dont try anymore, you will break your system.. use kodi.
Thanks.
Finally I've installed kodi and the plexus plugin and work great.
Anyway, i prefer user this script to send the acestream link to avoid the android app:

Code: Select all

#!/usr/bin/python
# -*- coding: utf-8 -*-

import json
import urllib2
import sys

# Configure kodi equipment
host = 'localhost'
port = '8080'

def getJsonRemote(txt):
    url = 'http://%s:%s/jsonrpc' % (host, port)
    values = {}
    values['jsonrpc'] = '2.0'
    values['method'] = "INPUT.SendText"
    values['params'] = {"text": txt}
    values['id'] = 1
    headers = {'Content-Type': 'application/json'}
    data = json.dumps(values)
    req = urllib2.Request(url, data, headers)
    response = urllib2.urlopen(req)
    return response.read()

if __name__ == '__main__':
    try:
        txt = sys.argv[1]
    except IndexError:
        print("The must give the acestream link")
        exit()

    getJsonRemote(txt)
Usage:

Code: Select all

python ace2kodi.py acestream://aassdfasdfasdfasdfsfsfsdf

User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Re: Acestream Player - Alternative for Torrents

#13 Post by bester69 »

jjgomera wrote: Thanks.
Finally I've installed kodi and the plexus plugin and work great.
Anyway, i prefer user this script to send the acestream link to avoid the android app:

Code: Select all

#!/usr/bin/python
# -*- coding: utf-8 -*-

import json
import urllib2
import sys

# Configure kodi equipment
host = 'localhost'
port = '8080'

def getJsonRemote(txt):
    url = 'http://%s:%s/jsonrpc' % (host, port)
    values = {}
    values['jsonrpc'] = '2.0'
    values['method'] = "INPUT.SendText"
    values['params'] = {"text": txt}
    values['id'] = 1
    headers = {'Content-Type': 'application/json'}
    data = json.dumps(values)
    req = urllib2.Request(url, data, headers)
    response = urllib2.urlopen(req)
    return response.read()

if __name__ == '__main__':
    try:
        txt = sys.argv[1]
    except IndexError:
        print("The must give the acestream link")
        exit()

    getJsonRemote(txt)
Usage:

Code: Select all

python ace2kodi.py acestream://aassdfasdfasdfasdfsfsfsdf
Thanks, It works great, I'll take it. :P (it's necessary to open remote web in kodi)
Last edited by bester69 on 2017-02-13 23:25, edited 1 time in total.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Re: Acestream Player - Alternative for Torrents

#14 Post by bester69 »

phenest wrote:Acestream seems to make some assumptions about torrent files. I haven't read anything too much about it, but there is no way of knowing exactly whether the torrent is 100% available (or is there?), or if the music/video format/codec is playable, or what the folder structure is, to name a few potential problems. Do they have a way to overcome any of this? As someone whose bandwidth is limited, I'd hate to waste precious time streaming something that isn't complete and/or playable.
Acestream are most of time Live Streaming, for sports, News and TV channels.
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

pelogan
Posts: 1
Joined: 2017-03-02 19:30

Re: Acestream Player - Alternative for Torrents

#15 Post by pelogan »

Hi. I´ve installed in my Debian 9 acestream engine and kodi + plexus, but i´m not able to open arenavision channels, Plexus tell me acestream cant connect.
Could you help me please?
I think the problem is I have to start acestreamengine but I dont know how to do it.

User avatar
bester69
Posts: 1900
Joined: 2015-04-02 13:15
Been thanked: 1 time

Re: Acestream Player - Alternative for Torrents

#16 Post by bester69 »

pelogan wrote:Hi. I´ve installed in my Debian 9 acestream engine and kodi + plexus, but i´m not able to open arenavision channels, Plexus tell me acestream cant connect.
Could you help me please?
I think the problem is I have to start acestreamengine but I dont know how to do it.
You need to configure
Plexus-> Acestream Tab --> AcestreamCommand: acestreamengine --clien-console
You might also need to open some port in router or enable UpnP ,
bester69 wrote:You wont change my mind when I know Im right, Im not an ...

Post Reply