Acestream Player - Alternative for Torrents

Share your own howto's etc. Not for support questions!

Acestream Player - Alternative for Torrents

Postby bester69 » 2016-07-08 14:56

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.
User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: Acestream Player - Alternative

Postby BubuXP » 2016-09-16 11:53

Did you test this? It doesn't seem to work.
Usually you get an AceStream URL link (acestream://), not a torrent file...
User avatar
BubuXP
 
Posts: 29
Joined: 2014-10-27 00:41
Location: Oriental Sicily

Re: Acestream Player - Alternative

Postby bester69 » 2016-09-23 01:41

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/
User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: Acestream Player - Alternative

Postby jjgomera » 2017-02-12 18:11

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.
jjgomera
 
Posts: 9
Joined: 2013-02-05 18:05

Re: Acestream Player - Alternative

Postby bester69 » 2017-02-13 02:51

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>

User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: Acestream Player - Alternative for Torrents

Postby jjgomera » 2017-02-13 16:14

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
jjgomera
 
Posts: 9
Joined: 2013-02-05 18:05

Re: Acestream Player - Alternative for Torrents

Postby bester69 » 2017-02-13 16:46

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.
User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: Acestream Player - Alternative for Torrents

Postby phenest » 2017-02-13 17:30

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.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Acestream Player - Alternative for Torrents

Postby phenest » 2017-02-13 17:35

NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Acestream Player - Alternative for Torrents

Postby bester69 » 2017-02-13 19:39

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.
User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: Acestream Player - Alternative for Torrents

Postby phenest » 2017-02-13 20:11

bester69 wrote:... the OP wants to play acestream's urls ...

I like the way you refer to yourself in the 3rd person.
NEC Spirit 550 P4 3.8GHz HT - 2GB RAM - nVidia 7600GT - Pioneer BDR-209DBK
ASUS Sabertooth P67 i7 3770K - 32GB RAM - 2x nVidia 660GTX SLI'd
User avatar
phenest
 
Posts: 1571
Joined: 2010-03-09 09:38
Location: The Matrix

Re: Acestream Player - Alternative for Torrents

Postby jjgomera » 2017-02-13 20:42

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
jjgomera
 
Posts: 9
Joined: 2013-02-05 18:05

Re: Acestream Player - Alternative for Torrents

Postby bester69 » 2017-02-13 22:12

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.
User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: Acestream Player - Alternative for Torrents

Postby bester69 » 2017-02-13 23:23

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.
User avatar
bester69
 
Posts: 845
Joined: 2015-04-02 13:15

Re: Acestream Player - Alternative for Torrents

Postby pelogan » 2017-03-02 19:37

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.
pelogan
 
Posts: 1
Joined: 2017-03-02 19:30

Next

Return to Docs, Howtos, Tips & Tricks

Who is online

Users browsing this forum: No registered users and 2 guests

fashionable