Jump to content


Photo

Emby Theater for Linux


  • Please log in to reply
551 replies to this topic

#41 haraldov OFFLINE  

haraldov

    Advanced Member

  • Members
  • 122 posts
  • Local time: 08:14 PM

Posted 28 January 2017 - 01:44 PM

@xnappo and @null_pointer

 

I have tried LiveTV with ET for Linux (player mpv) and ET for rpi (player omxplayer).

mpv "http://192.168.9.1:9981/stream/channelid/1332783438&profile=htsp" 
or with
omxplayer "http://192.168.9.1:9981/stream/channelid/1332783438&profile=htsp"

When I play the direct htsp stream from the tvheadend server with mpv I get the tvpicture after 4-5 seconds.

With omxplayer it takes 9-10 seconds.

 

When I use ET for Linux to play the same channel from Emby Server Versjon 3.1.5.0 (Ubuntu) it takes 8-9 seconds to get the tvpicture.

With ET for rpi it takes 14-15 seconds.

 

Resources used with ET for rpi (omxplayer) on raspberry pi 3 when playing the channel:

top - 18:13:29 up  2:03,  2 users,  load average: 0.56, 0.59, 0.45
Tasks: 137 total,   1 running, 135 sleeping,   0 stopped,   1 zombie
%Cpu(s):  6.0 us,  2.3 sy,  0.0 ni, 91.0 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
KiB Mem:    752852 total,   542216 used,   210636 free,    24756 buffers
KiB Swap:   102396 total,        0 used,   102396 free.   318088 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 4670 pi        20   0  144124  25740  15476 S  19.5  3.4   0:06.54 omxplayer.bin
 4493 pi        20   0  389868 151208  74296 S  11.9 20.1   1:04.07 electron
 4469 pi        20   0  456640  77696  55444 S   8.9 10.3   0:35.70 electron

Resources used with ET for linux (mpv) on raspberry pi 3 when playing the channel:

top - 18:18:20 up  2:07,  2 users,  load average: 0.86, 0.52, 0.44
Tasks: 138 total,   4 running, 133 sleeping,   0 stopped,   1 zombie
%Cpu(s): 16.6 us,  6.5 sy,  0.0 ni, 76.3 id,  0.0 wa,  0.0 hi,  0.7 si,  0.0 st
KiB Mem:    752852 total,   577924 used,   174928 free,    24924 buffers
KiB Swap:   102396 total,        0 used,   102396 free.   318020 cached Mem

  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND
 4778 pi        20   0  358172  41376  20776 R  31.8  5.5   0:04.52 mpv
 4789 pi        20   0  444960  82168  55864 R  22.9 10.9   0:20.99 electron
 4827 pi        20   0  398828 149924  73716 R  17.7 19.9   0:37.53 electron

From the Emby server logs it looks like Emby server have problem to find out if it should transcode the stream or use Directplay. 

Info App: Cannot direct play due to unknown content bitrate 
.....isEligibleForDirectPlay: False

Then it calls ffprobe which tells Emby that it should not transcode the stream and use DirectPlay

.....isEligibleForDirectPlay: True

I think this prosess increases the time it takes to get the tvpicture

Attached Files



#42 haraldov OFFLINE  

haraldov

    Advanced Member

  • Members
  • 122 posts
  • Local time: 08:14 PM

Posted 28 January 2017 - 02:09 PM

 

  • No HDMI CEC work has been done (I don't have a device to debug with)

 

With ET for Linux I can not use the Samsung TV remote because cec has been disabled. ET for linux says that it can not find the cec-client. 

Initializing cec-client...

{ cecExePath: undefined,
  cecEmitter: 
   EventEmitter {
     domain: null,
     _events: {},
     _eventsCount: 0,
     _maxListeners: undefined } }
ERROR: cec-client not installed, running without cec functionality.

It works without problem with ET for rpi. I have installed the cec-utils package. 

pi@raspberrypi:~/emby-theater-linux $ whereis cec-client
cec-client: /usr/bin/cec-client /usr/share/man/man1/cec-client.1.gz

Attached Files


Edited by haraldov, 28 January 2017 - 02:11 PM.


#43 haraldov OFFLINE  

haraldov

    Advanced Member

  • Members
  • 122 posts
  • Local time: 08:14 PM

Posted 15 February 2017 - 08:11 PM

I believe #1 is now fixed in the Git - please pull it down and try it.  You should be able to put ET in the background now without it always coming to the top, and the OSD should still work correctly when video is playing.

 

Tried to play Livetv and recorded movies and ET goes into the background, and the OSD shows when the movie starts but then disappears. When I want to seek into the video with the keyboard or the mouse the OSD do not come on the top of the movie. 

 

Extra info: All my testing with ET for linux has been done with a Raspberry pi 3 (arm processor) because I wanted to compare ET for linux using mpv and ET for pi using omxplayer. ET for linux should function much better on Intel processor with Linux.


Edited by haraldov, 16 February 2017 - 10:36 AM.


#44 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 121600 posts
  • Local time: 03:14 PM

Posted 05 March 2017 - 05:14 PM

Updates are rolling out and you'll soon be able to use MB2-style alpha-numeric shortcuts. Enjoy.

 

58bc7a2266d4f_Untitled.png



#45 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 121600 posts
  • Local time: 03:14 PM

Posted 12 March 2017 - 04:56 PM

I've pushed an update to the electron app. It's mostly an update to internal changes, so you'll want to grab the latest. Thanks !



#46 thatoneguy99 OFFLINE  

thatoneguy99

    Advanced Member

  • Members
  • 334 posts
  • Local time: 03:14 PM
  • LocationVirginia

Posted 15 March 2017 - 07:57 PM

Using the exact instructions to install to Ubuntu 16.10 I can load Emby, login, and select and play video. However the MPV player is in the background and I have to hit an ALT-TAB to switch to the player. The OSD of Emby does not show on top of the MPV video. Also is there a way to use a Harmony remote with IR receiver? Thank you!

 

Again awesome work so far!



#47 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 1758 posts
  • Local time: 03:14 AM
  • LocationPerth, Australia

Posted 15 March 2017 - 09:05 PM

I have tried it on the pi but nothing plays I just get ghost osd and that is it but MPV works outside theater.

#48 thatoneguy99 OFFLINE  

thatoneguy99

    Advanced Member

  • Members
  • 334 posts
  • Local time: 03:14 PM
  • LocationVirginia

Posted 16 March 2017 - 05:24 PM

So it hasn't been figured out how to use MPV inside of Emby just yet?


Sent from my phone!

#49 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 121600 posts
  • Local time: 03:14 PM

Posted 16 March 2017 - 08:52 PM

The general linux version is using MPV. The Pi version is using OMX.



#50 sansoo22 OFFLINE  

sansoo22

    Member

  • Members
  • 29 posts
  • Local time: 01:14 PM

Posted 08 April 2017 - 01:21 PM

Just loaded this on a Lubuntu vm running in unRAID 6.  Here are my initial findings:

 

1. First time loading emby and playing a movie the playback and emby overlay were in 2 separate windows.  After killing the task and reloading it seems to have fixed itself

2. Transitions are a bit choppy but my vm only has 1core and 1GB of memory allocated to it.  Surprisingly it still plays movies at all.

3. LiveTV works but playback is a bit choppy.

4. Channel changing is quite responsive but it can take up to 10 seconds to play anything.  I have an older HDHomerun which is kind of a turd so that may be the reason for the delayed playback.

5. On lubuntu i had to install libgconf-2-4 myself

 

I'm actually quite impressed with this build so far.  I have no hardware acceleration enabled.  In fact my VM doesn't even have a GPU assigned to it at all and with a single core CPU and 1GB of RAM playback was just the tiniest bit choppy.  Hopefully later this evening I can increase the resources to this VM and allocate the nvidia GT210 i have sitting in the unRIAD box to it and do some more testing.

 

If anyone would like me to test additional linux distros with this I can.  The unRAID vm environment makes it quite simple to spin up additional VMs.



#51 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 121600 posts
  • Local time: 03:14 PM

Posted 08 April 2017 - 02:13 PM

Thanks for the feedback !



#52 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 121600 posts
  • Local time: 03:14 PM

Posted 08 April 2017 - 07:44 PM

I've added the same header slide effect from the web app so that when you scroll vertically, the header slides away so that you can see posters on the full height of the screen. Enjoy.



#53 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 121600 posts
  • Local time: 03:14 PM

Posted 13 April 2017 - 04:23 PM

I've updated the download instructions in the first post. Specifically, the git repo has changed so you'll need to install from scratch. There is a lot of new development here because we are looking at using MPV player for Windows as well. Please try it out. Thanks !



#54 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 1758 posts
  • Local time: 03:14 AM
  • LocationPerth, Australia

Posted 15 April 2017 - 02:08 AM

I have followed the instructions but it doesn't work there is no folder emby-theater-linux created but there is emby-theater-electron but when you go into it doesn't start with ./et.sh



#55 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 121600 posts
  • Local time: 03:14 PM

Posted 15 April 2017 - 02:14 AM

What happens when you try to start it?



#56 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 121600 posts
  • Local time: 03:14 PM

Posted 15 April 2017 - 02:15 AM

My mistake. File was missing. please do a git pull again. thanks.



#57 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 1758 posts
  • Local time: 03:14 AM
  • LocationPerth, Australia

Posted 15 April 2017 - 02:43 AM

Files are there but when I start it I get this error the pi and the prior linux theater work but not this version.
 
pi@raspberrypihome:~/emby-theater-electron $ ./et.sh 
App threw an error during load
Error: Path must be absolute
    at Error (native)
    at /home/pi/emby-theater-electron/main.js:638:13
    at Object.<anonymous> (/home/pi/emby-theater-electron/main.js:809:3)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at loadApplicationPackage (/usr/local/lib/node_modules/electron/dist/resources/default_app.asar/main.js:280:12)
    at Object.<anonymous> (/usr/local/lib/node_modules/electron/dist/resources/default_app.asar/main.js:322:5)
A JavaScript error occurred in the main process
Uncaught Exception:
Error: Path must be absolute
    at Error (native)
    at /home/pi/emby-theater-electron/main.js:638:13
    at Object.<anonymous> (/home/pi/emby-theater-electron/main.js:809:3)
    at Module._compile (module.js:556:32)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at loadApplicationPackage (/usr/local/lib/node_modules/electron/dist/resources/default_app.asar/main.js:280:12)
    at Object.<anonymous> (/usr/local/lib/node_modules/electron/dist/resources/default_app.asar/main.js:322:5)

Edited by denz, 15 April 2017 - 02:44 AM.


#58 aptalca OFFLINE  

aptalca

    Advanced Member

  • Members
  • 199 posts
  • Local time: 03:14 PM

Posted 15 April 2017 - 04:33 PM

Have you guys considered an embedded linux build using LibreELEC as the base?

 

LibreELEC (forked from OpenELEC) is a Just enough OS (JeOS) which was originally for Kodi, but now plex is using it to base their new Plex Media Player on. Lakka, (retroarch emulation) is also using it as their base.

 

LibreELEC is available for x86_64, arm and aarch64. 

 

I know this sounds like an ad for LibreELEC, but I'm not actually a part of their team. I do collaborate with them on certain things (docker support) and they are all great people.


  • denz, hoppel118 and ellnic like this

#59 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 121600 posts
  • Local time: 03:14 PM

Posted 15 April 2017 - 04:42 PM

Have you guys considered an embedded linux build using LibreELEC as the base?

 

LibreELEC (forked from OpenELEC) is a Just enough OS (JeOS) which was originally for Kodi, but now plex is using it to base their new Plex Media Player on. Lakka, (retroarch emulation) is also using it as their base.

 

LibreELEC is available for x86_64, arm and aarch64. 

 

I know this sounds like an ad for LibreELEC, but I'm not actually a part of their team. I do collaborate with them on certain things (docker support) and they are all great people.

 

Yes I think that would be great, and it's something we could look at next after our development with the mpv player is complete.


  • xnappo, hoppel118 and ellnic like this

#60 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 1758 posts
  • Local time: 03:14 AM
  • LocationPerth, Australia

Posted 15 April 2017 - 11:22 PM

I did another git pull and when i try et.sh the error is still the same as post #57






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users