Skip to content

Commit

Permalink
add version 3.1.18
Browse files Browse the repository at this point in the history
  • Loading branch information
sshmanko committed Oct 30, 2017
1 parent b7068ba commit f8ee9a0
Show file tree
Hide file tree
Showing 534 changed files with 68,338 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
# acestream-armv7
AceStream engine for Raspberry Pi 2/3

Wrapper for latest official ARM version from http://wiki.acestream.org/wiki/index.php/Download

Runs embedded Python in chrooted environment to mimic Android fs on Linux.

Initial author: [pepsik-kiev](https://github.com/pepsik-kiev)


## Installation

1. Unzip latest release to /opt/acestream
2. Copy acestream-user.conf.example to acestream-user.conf and change user/password
3. Copy acestream.service to /etc/systemd/system
4. Enable service to run at boot and start it (systemctl enable acestream; systemctl start acestream)

27 changes: 27 additions & 0 deletions acestream-user.conf.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
################################################################################
# acestreamengine user arguments :
################################################################################

ACE_USER_ARG="--log-debug 0 \
--login ACESTREAM_LOGIN \
--password ACESTREAM_PASSW \
--access-token WEBUIPASSWORD \
--bind-all \
--live-cache-type memory \
--live-cache-size 209715200 \
--vod-drop-max-age 120 \
--live-buffer 30 \
--vod-buffer 10 \
--max-connections 500 \
--max-peers 50 \
--max-peers-limit 100 \
--max-upload-slots 10 \
--download-limit 0 \
--upload-limit 0 \
--stats-report-interval 2 \
--slots-manager-use-cpu-limit 1 \
--core-dlr-periodic-check-interval 5 \
--check-live-pos-interval 5 \
--refill-buffer-interval 1 \
--core-skip-have-before-playback-pos 1 \
--webrtc-allow-outgoing-connections 1"
11 changes: 11 additions & 0 deletions acestream.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Acestream Service
After=network.target

[Service]
Type=simple
ExecStart=/opt/acestream/autostart.sh
Restart=on-abort

[Install]
WantedBy=multi-user.target
38 changes: 38 additions & 0 deletions acestream.start
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
#!/bin/sh
PATH=/sbin:/bin:/usr/sbin:/usr/bin

ACEADDON=$(readlink -f $(dirname $0))
ACECHROOT="androidfs"

if ! [ $(id -u) = 0 ]; then
PERMISSION=sudo
fi

if mount | grep -E "( $ACEADDON/$ACECHROOT/proc | $ACEADDON/$ACECHROOT/sys | $ACEADDON/$ACECHROOT/dev )" >/dev/null; then

$PERMISSION pkill -9 -f "/system/data/data/org.acestream.engine/files/python/bin/python" &>/dev/null
$PERMISSION pkill -9 -f "/system/bin/acestream.sh" &>/dev/null
$PERMISSION umount $ACEADDON/$ACECHROOT/proc
$PERMISSION umount $ACEADDON/$ACECHROOT/sys
$PERMISSION umount $ACEADDON/$ACECHROOT/dev
sleep 2
fi

$PERMISSION mkdir -p $ACEADDON/$ACECHROOT/dev
$PERMISSION mkdir -p $ACEADDON/$ACECHROOT/proc
$PERMISSION mkdir -p $ACEADDON/$ACECHROOT/sys

$PERMISSION mount -o bind /dev $ACEADDON/$ACECHROOT/dev &>/dev/null
$PERMISSION mount -t proc proc $ACEADDON/$ACECHROOT/proc &>/dev/null
$PERMISSION mount -t sysfs sysfs $ACEADDON/$ACECHROOT/sys &>/dev/null

$PERMISSION chroot $ACEADDON/$ACECHROOT /system/bin/sh -c "cd /system/data/data/org.acestream.engine/files ; /system/bin/acestream.sh" > $ACEADDON/acestream.log 2>&1 - << EOF
from acestreamengine import Core
params = "$@".split(' ')
if params == ['']:
params = []
Core.run(params)
EOF
10 changes: 10 additions & 0 deletions androidfs/system/bin/acestream.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/system/bin/sh
#/system/bin/ps aux
export ANDROID_ROOT=/system
export ANDROID_DATA=/data
export ANDROID_STORAGE=/storage
export PYTHONHOME=/system/data/data/org.acestream.engine/files/python
export PYTHONPATH=/system/data/data/org.acestream.engine/files/python/lib/python2.7/lib-dynload:/system/data/data/org.acestream.engine/files/python/lib/python2.7
export PATH=$PYTHONHOME/bin:$PATH
export LD_LIBRARY_PATH=/system/data/data/org.acestream.engine/files/python/lib:/system/data/data/org.acestream.engine/files/python/lib/python2.7/lib-dynload
/system/data/data/org.acestream.engine/files/python/bin/python
Binary file added androidfs/system/bin/linker
Binary file not shown.
Binary file added androidfs/system/bin/sh
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
(dp0
S'version'
p1
I2
sS'data'
p2
(dp3
S'0b824e4cf3f717766a6569a5b5d9367f16f58748'
p4
(dp5
sV_no_owner_
p6
(dp7
ss.
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"last_selected_player": null, "selected_player_cache": {}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
(dp0
S'version'
p1
I3
sS'data'
p2
(dp3
S'0b824e4cf3f717766a6569a5b5d9367f16f58748'
p4
(dp5
S'playlist'
p6
(lp7
sS'max_item_id'
p8
I0
sss.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f8ee9a0

Please sign in to comment.