trigu75
Posts: 3
Joined: Fri Dec 07, 2018 2:22 am

Stremio on RPI (Finally , kind of .. )

Fri Dec 07, 2018 3:06 am

I'm new to RPI , but after some tweaks I kind of made it work

I tried to compile it , but there is a missing module and for some reason apt-get doesn't find it as well ..

as for their website

" If you find: Project ERROR: Unknown module(s) in QT: webengine

Then install:

sudo apt-get install libkf5webengineviewer-dev "

libkf5webengineviewer-dev is not found on RPI repository ... so ... this is what I did

you need to have node.js installed

1. download Stremio engine/cast server

wget https://dl.strem.io/four/v4.4.10/server.js ; wget https://dl.strem.io/four/v4.4.10/stremio.asar

once we have these files , we need to do a small tweak to make it work with omxplayer (full gpu acceleration)

edit the downloaded file server.js , and search for MPV (caps)

it will look like this

Code: Select all

mpv: {
            title: "MPV",
            args: ['--no-terminal'],
            subArg: '--sub-file=', // DOESN'T WORK ON MAC
            timeArg: '--start ',
            playArg: '',
            darwin: {
                path: ["/usr/local/bin/mpv", "/opt/local/bin/mpv", "/sw/bin/mpv"] // Homebrew, MacPort, Fink
            },
            linux: {
                path: ["/usr/bin/mpv"]
            },
            win32: {
                path: []
            }
        },

add this after that and save

omx: {
          title: "OMX",
          args: [''],
          subArg: '', // DOESN'T WORK ON MAC
          timeArg: '',
          playArg: '',
          darwin: {
              path: ["/usr/local/bin/mpv", "/opt/local/bin/mpv", "/sw/bin/mpv"] // Homebrew, MacPort, Fink
          },
          linux: {
              path: ["/usr/bin/omxplayer"]
          },
          win32: {
              path: []
          }
      },
that's it , open a terminal window , execute node server.js , if everything is ok you will get

pi@raspberrypi:~ $ node server.js
hls executables located -> { ffmpeg: '/usr/bin/ffmpeg', ffsplit: null }
Using app path -> /home/pi/.stremio-server
Enabling casting...
Discovery of new external device "vlc" - VLC
Discovery of new external device "omx" - OMX
EngineFS server started at http://127.0.0.1:11470
EngineFS HTTPS endpoint at https://local.strem.io:12470

open the web browser and go to app.strem.io , login (to get your saved addons and library) , or go straight to addons and install the addons you use

select a video from the library , once it starts playing (with no GPU acceleration , WHY CANT WE SET AN EXTERNAL PLAYER FOR THE BROWSER ????????????????? ) , right click , choose play in OMX , and that's it , the browser will stop playing , OMXplayer will start playing the stream (while stremio engine continues to download)

I will keep looking if I can make an RPI version ... let me know what you think

trigu75
Posts: 3
Joined: Fri Dec 07, 2018 2:22 am

Re: Stremio on RPI (Finally , kind of .. )

Fri Dec 07, 2018 11:41 pm

OK

I managed to find all the packages needed to compile it , and succesfully created their Client

and it works , but still needs some tweaking to be perfect (add omxplayer to the main binary)

maybe someone here can step in and help?

I will keep you updated

screenshot attached
Attachments
screen1.jpg
stremio on RPI3
screen1.jpg (112.94 KiB) Viewed 5077 times

rmistri
Posts: 1
Joined: Mon Jan 28, 2019 9:23 pm

Re: Stremio on RPI (Finally , kind of .. )

Mon Jan 28, 2019 9:31 pm

Hi, is it possible for you to upload an install file for your stremio project? I'd really love to use stremio on my pi.

lio
Posts: 2
Joined: Wed Jan 30, 2019 10:52 am

Re: Stremio on RPI (Finally , kind of .. )

Wed Jan 30, 2019 11:07 am

Hi trigu75,

Thank you for the information you already provided. This is great !

Could you please explain how you managed to install the QtWebEngine for RPi. In which package/PPA did you find it ? Actually, it is possible to compile directly the Qt5 libraries on a RPi (https://wiki.qt.io/Native_Build_of_Qt_5 ... spberry_Pi) but it seems an overkill to me to compile such a huge library just to be able to compile stremio.

Once we have a clear install procedure, that would be nice to post it on the Stremio for Linux install procedure (https://github.com/Stremio/stremio-shel ... /DEBIAN.md).

Thanks in advance, keep us in touch !

lio
Posts: 2
Joined: Wed Jan 30, 2019 10:52 am

Re: Stremio on RPI (Finally , kind of .. )

Wed Jan 30, 2019 1:59 pm

I managed to install the QtWebEngine via unstable Debian repositories (without having to compile it). At the end I'm able to compile stremio on the RPi but not able to play any movie.

Note that I had to update the Node executable in order to be able to run the server.js. Thanks to this article (https://thisdavej.com/beginners-guide-t ... pberry-pi/) I ran the following command :

Code: Select all

curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
which update Node to the latest version (only works with RPi 3)

I compiled Stremio using the usual : qmake ; make commands.

At the end, I run the server with

Code: Select all

node server.js
and stremio with

Code: Select all

./stremio
.

Everything runs smooth until I want to play a video. I get the follwing error : "playback error, please try again".

I guess that installing some packages from an unstable repository might not help in having a smooth and stable stremio install.

Would you see some other ways to go through ?

dragonfly_ff7
Posts: 2
Joined: Sat Feb 02, 2019 12:02 pm

Re: Stremio on RPI (Finally , kind of .. )

Sat Feb 02, 2019 12:06 pm

hi lio,

i have the same problem with QtWebEngine

how do you install it on your rpi without compiling?

trigun75
Posts: 5
Joined: Thu Jan 31, 2019 10:22 am

Re: Stremio on RPI (Finally , kind of .. )

Tue Feb 12, 2019 11:25 am

sorry for the late reply

I actually executed stremio without updating node what so ever

to have it working you need to do A few things , 1st , you need to install libmpv1 (the problem with the libmpv provided , it doesn't have hardware acceleration , therefore video playing on stremio will work slow )

so after installing libmpv1 , you also need VLC , or to make the little change inside server.js , and add the code to support OMXPLAYER

then once you have that , the moment you play a video , you can right click the non accelerated video and choose play in VLC or OMXPLAYER

and you get the Full accelerated Video running smooth , while Node keeps downloading the stream you watch

I did some tests using different OS under RPI , even compiled my own MPV and libmpv with hardware acceleration included

Stremio (QT5) is using openGL , and their WEB UI sets MPV to use openGL , and so far I'm having issues with full acceleraion video and openGL , so at this moment the best way is using the external players , and legacy driver instead of openGL driver
or change their code to force vo=rpi , but using force vo=rpi you loose control of the video , you can't pause or stop unless you kill stremio

if you don't want to compile , or find missing packages not provided on stretch repo , you can switch to Fedora (FedBerry , or from fedora releases)

I built an RPM for fedora , which installs and work great (again under fedora) without any missing packages , no compilation needed

I will post it later if anyone is interested

Again , the main problem is , QT5 and Stremio uses OPENGL to add an OPENGL framebuffer , and this is NOT working on RPI due to buggy drivers , and the service already in use error when switching to openGL drivers and trying to play it on vlc or omx or mpv or whatever using RPI acceleration

mariolo86
Posts: 2
Joined: Thu Feb 21, 2019 5:53 pm

Re: Stremio on RPI (Finally , kind of .. )

Thu Feb 21, 2019 5:56 pm

Amazing! thank you! I'm trying to install everything in Fedora in my RPI3 but I don't know what I'm doing wrong... could you please upload your built RPM to try it? Thank you!

trigun75
Posts: 5
Joined: Thu Jan 31, 2019 10:22 am

Re: Stremio on RPI (Finally , kind of .. )

Thu Feb 21, 2019 11:46 pm

let me know if it works
first download this rpm

https://www.dropbox.com/s/l2lk1imqxf867 ... l.rpm?dl=0

rpm -qpR {.rpm-file} will provide you the dependencies needed for it , install them using yum

and then sudo rpm -ivh the downloaded rpm

if it fails to render (due to openGL rendering stuck errors) download this modified stremio , which will force use the vo=rpi option instead of the open_gl (kind of a workaround hack)

https://www.dropbox.com/s/ek3s73oocgu0e ... iorpi?dl=0

the file should be copied to /opt/stremio/bin instead of the original stremio

Fedora is the OS i found to be updated with all qt5 , latest ffmpeg and mpv for RPI

Enjoy , Let me know if you have any issues

mariolo86
Posts: 2
Joined: Thu Feb 21, 2019 5:53 pm

Re: Stremio on RPI (Finally , kind of .. )

Thu Feb 28, 2019 11:51 am

Thank you so much! I tried and it's working OK, a bit laggy with VLC. I haven't had time to check everything. Impossible to watch from the native player in the app. Thank you :)

trigun75
Posts: 5
Joined: Thu Jan 31, 2019 10:22 am

Re: Stremio on RPI (Finally , kind of .. )

Fri Mar 01, 2019 3:38 pm

check my 1st post , will avoid the VLC lag

1st edit the server.js file (should be inside stremio /opt directory , search for MPV , and add an OMX option to your list



mpv: {
title: "MPV",
args: ['--no-terminal'],
subArg: '--sub-file=', // DOESN'T WORK ON MAC
timeArg: '--start ',
playArg: '',
darwin: {
path: ["/usr/local/bin/mpv", "/opt/local/bin/mpv", "/sw/bin/mpv"] // Homebrew, MacPort, Fink
},
linux: {
path: ["/usr/bin/mpv"]
},
win32: {
path: []
}
},

add this after that and save

omx: {
title: "OMX",
args: [''],
subArg: '', // DOESN'T WORK ON MAC
timeArg: '',
playArg: '',
darwin: {
path: ["/usr/local/bin/mpv", "/opt/local/bin/mpv", "/sw/bin/mpv"] // Homebrew, MacPort, Fink
},
linux: {
path: ["/usr/bin/omxplayer"]
},
win32: {
path: []
}
},


I even went one step forward , and instead of omx , installed tboplayer https://github.com/KenT2/tboplayer and configured the path for tboplayer instead of omxplayer , and it works fine with GUI , much better than VLC in some cases

or , you can use the stremiorpi bin I linked , which forces the "internal player" (libmpv) to use vo=rpi

benv666
Posts: 1
Joined: Sun Mar 03, 2019 1:34 pm

Re: Stremio on RPI (Finally , kind of .. )

Sun Mar 03, 2019 1:37 pm

I'm following this with great interest, would be awesome to have this up and running on a rpi3 :)

Can one of you summarize how to get this up and running on the latest raspbian?
I'm not sure what the deal with QtWebEngine is, but it's not available, that's for sure.
Messing around with debian unstable repo quickly offered me to upgrade >1000 packages, which sounds like a good way to get a broken system, so I didn't continue with that, but that makes me wonder what you guys did instead.

.deb welcome :p

Return to “Off topic discussion”