Jump to content


Photo

Emby Theater for Linux


  • Please log in to reply
638 replies to this topic

#1 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 09:14 AM
  • LocationAustin, TX

Posted 22 December 2016 - 03:04 PM

Raspberry Pi Image

 

https://github.com/M...r-rpi_3.0.9.zip

 

This is an image that will launch straight into Emby Theater. If there is no network connection then raspi-config is launched allowing users to connect to a network.

 

Or, you can also use the armhf image below with any debian based distro. After installing the Emby Theater .deb, please run the following:

rpi-update
dist-upgrade

Armhf (Debian based distros)

 

Download: https://github.com/M...3.0.9_armhf.deb

 

Then install:

sudo apt install -f ./emby-theater_3.0.9_armhf.deb

Then, if you're on Raspberry Pi:

sudo rpi-update
reboot  

Run:

emby-theater

X64 (Debian based distros)

Download: https://github.com/M...3.0.9_amd64.deb

 

Then install:

sudo apt install -f ./emby-theater_3.0.9_amd64.deb

Then, if you're on Raspberry Pi:

sudo rpi-update
reboot   

Run:

emby-theater

Auto-Start

 

Locate the autostart file:

~/.config/lxsession/LXDE-pi/autostart
If LXDE-pi is missing then copy it from:
/etc/xdg/lxsession/
Add this line to the end of the autostart file:
@emby-theater

Edited by Luke, 09 August 2019 - 10:15 PM.

  • MrWebsmith, TrainAss, hoppel118 and 9 others like this

#2 im85288 OFFLINE  

im85288

    Kodi Kruncher

  • Developers
  • 2698 posts
  • Local time: 03:14 PM
  • LocationGeordie Land

Posted 22 December 2016 - 07:21 PM

Great stuff, well done for taking this on.
  • xnappo likes this

#3 catskinsox OFFLINE  

catskinsox

    Member

  • Members
  • 24 posts
  • Local time: 10:14 AM

Posted 01 January 2017 - 05:31 AM

Excellent.  I'll definitely be keeping an eye on this.  Thank you so much!



#4 tocks OFFLINE  

tocks

    Advanced Member

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

Posted 01 January 2017 - 07:15 PM

Good.news

#5 TrainAss OFFLINE  

TrainAss

    Advanced Member

  • Members
  • 148 posts
  • Local time: 08:14 AM
  • LocationEdmonton, AB

Posted 01 January 2017 - 08:37 PM

I've installed this on my Zotac Zbox running Linux Mint 18.1 Serena. It's an AMD based box and can help test using AMD hardware (obviously).

 

When launching the client via terminal, I have this output

Initializing cec-client...

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

Connected to socket /tmp/emby.sock
UDP Client listening on 0.0.0.0:52515
starting udp receive timer with timeout ms: 1000
timer expired 0 servers received
[]

 

 

Is that currently to be expected giving the state that this client is in?

 

I also noticed that when playing video, even if ET is resized and windowed, the video playback is full screen. Another thing I noticed is that the ET client prevents any other window from drawing overtop of it. If I move another window overtop of ET, ET snaps back in to focus.

 

I'm excited for this to work better and better, so that I can drop Windows 10. I have an IR receiver I can also use to test with and a Windows MCE remote, or a Logitech Harmony remote (which can become any remote).


Edited by TrainAss, 01 January 2017 - 08:40 PM.


#6 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 09:14 AM
  • LocationAustin, TX

Posted 01 January 2017 - 11:37 PM

When launching the client via terminal, I have this output

[...]

Yeah, the code for CEC is there and it *might* just work if you do:

sudo apt-get install cec-utils

Please let me know if you can test CEC.  @null_pointer said he had to make a small change to cec.js to get it to work with the Pi version.

 

 

I also noticed that when playing video, even if ET is resized and windowed, the video playback is full screen. 

Yeah, we could have it detect that Emby is not full screen and play in it's own window, but right now it isn't going to play inside the Emby window itself.  I tried that but it seemed to badly screw up the HW acceleration.  So, practically this will be a full-screen app - which honestly I think it okay since it is a couch interface?  We can revisit this after more is working in general if there is a lot of demand for it.

 

 

 

Another thing I noticed is that the ET client prevents any other window from drawing overtop of it. If I move another window overtop of ET, ET snaps back in to focus.

Yes - known issue (this is the first in my 'issues list in the first post).  I think I know how to fix this, but I have been spending time 1. resurrecting my Okuru theme for ET and 2. I got an Oculus Touch setup two days ago :D

 

Please test with your MCE remote?  Does it do anything at all?

 

If not - we may be forced to just use a side program to map the remote to keyboard inputs for now.

 

Thanks a lot for testing/trying it - knowing someone else besides me wants it is a motivator.

 

xnappo


Edited by xnappo, 01 January 2017 - 11:39 PM.


#7 TrainAss OFFLINE  

TrainAss

    Advanced Member

  • Members
  • 148 posts
  • Local time: 08:14 AM
  • LocationEdmonton, AB

Posted 02 January 2017 - 12:12 AM

Ok, I installed cec-utils and it was successful.

 

When I launch ET now, here is the terminal output

 

 

I grabbed my IR receiver and MCE remote. it's a Rosewill remote, but works the same. Within ET, the volume, mute and d-pad works, but OK, Play/Pause/FF/RW/Skip buttons don't. I'm configuring LIRC right now and will get back to you on that.

 

Edit: I tossed the terminal output in to Pastebin because it was rather long and I didn't want to take up all the space here.


Edited by TrainAss, 02 January 2017 - 02:21 PM.

  • xnappo likes this

#8 TrainAss OFFLINE  

TrainAss

    Advanced Member

  • Members
  • 148 posts
  • Local time: 08:14 AM
  • LocationEdmonton, AB

Posted 02 January 2017 - 02:17 PM

Ok, so LIRC doesn't work properly, at least with my kit. Once I removed it, the remote started working again. Plugging the IR receiver in All the buttons on the remote register as the correct key. I pasted the output here as it's pretty long. Play/Pause/FF/RW all work in xPlayer. I'm ripping a DVD and will mount the ISO and try the D-pad and OK in something like VLC.

 

If you have an IR receiver and want to test it, first make sure that ir-keytable is installed

 

sudo apt-get install ir-keytable -y

 

Then you need to determine which device event# your IR receiver is

 

sudo ir-keytable

 

You'll get an output something like 

 

Found /sys/class/rc/rc0/ (/dev/input/event10) with:

Driver mceusb, table rc-rc6-mce
Supported protocols: unknown other lirc rc-5 jvc sony nec sanyo mce-kbd rc-6 sharp xmp
Enabled protocols: unknown other lirc rc-5 jvc sony nec sanyo mce-kbd rc-6 sharp xmp
Name: Media Center Ed. eHome Infrared
bus: 3, vendor/product: 147a:e042, version: 0x1201
Repeat delay = 500 ms, repeat period = 125 ms

 

To then test all your buttons enter

 

sudo ir-keytable -t -d /dev/input/event#

* Where event# is, use the one you found in the step above.

 

From here, press each key on your remote to test. If it detects the keypress correctly you'll get something similar to this

 

1483378852.761126: event type EV_MSC(0x04): scancode = 0x800f0417

1483378852.761126: event type EV_KEY(0x01) key_down: KEY_RECORD(0x00a7)
1483378852.761126: event type EV_SYN(0x00).
1483378853.010221: event type EV_KEY(0x01) key_up: KEY_RECORD(0x00a7)
1483378853.010221: event type EV_SYN(0x00).

 

I've noticed that MPV player does not handle the FF/RW/Skip/stop buttons whereas the D-Pad Up/Down will do a large jump forward/back and the left/right will do a small jump forward/back. Play and pause buttons operate the same way as well.

 

I wonder if we need to modify the input.conf so it knows what to do with the different key presses.


Edited by TrainAss, 02 January 2017 - 02:17 PM.

  • denz likes this

#9 TrainAss OFFLINE  

TrainAss

    Advanced Member

  • Members
  • 148 posts
  • Local time: 08:14 AM
  • LocationEdmonton, AB

Posted 02 January 2017 - 02:40 PM

Ok, found some more discoveries. The OK key does not translate in to a valid command in Emby, yet using Enter does. L/R on the D pad also FF/RW by a short jump as well.

 

I'll see if I can figure out how to get those mapped properly.


  • xnappo likes this

#10 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 09:14 AM
  • LocationAustin, TX

Posted 02 January 2017 - 03:07 PM

Ok, found some more discoveries. The OK key does not translate in to a valid command in Emby, yet using Enter does. L/R on the D pad also FF/RW by a short jump as well.

 

I'll see if I can figure out how to get those mapped properly.

Excellent - so with a Harmony it could be easily mapped, and maybe with some config file changes it could be modified to work as expected.

 

Do you have an HDMI-CEC capable video chipset?


  • Southernbeastz71 likes this

#11 TrainAss OFFLINE  

TrainAss

    Advanced Member

  • Members
  • 148 posts
  • Local time: 08:14 AM
  • LocationEdmonton, AB

Posted 02 January 2017 - 08:46 PM

I don't know if it is. It's an ATi Radeon HD 8330. When I was running this as my Win10 HTPC with ET, I never tried CEC as I always had an IR blaster connected. I found CEC was slower than straight IR, but my only experiences with it were with my Nexus Player.

 

I think if we can get controls working with a standard MCE remote, then a Harmony remote will be no problems.



#12 haraldov OFFLINE  

haraldov

    Advanced Member

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

Posted 04 January 2017 - 09:29 AM

I do not know if you have read my posting in the tread "Emby Theater on Raspberry" about running your ET for Linux on Raspberry?

Look here at post 80: https://emby.media/c...ry-pi/?p=401603

Is the issues related to running on raspberry pi?

 

I has been nice if you can fix the OSD is displaying on top of the video window and the other issues. See post 89: https://emby.media/c...ry-pi/?p=402016

 

Developer null_pointer replies this:  

I have seen that also.
Interesting that it looks like your OSD is actually displaying on top of the video window, I can not get that to work for me.

Maybe developer "null_pointer" and you can help each other?

 

Thanks 



#13 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 09:14 AM
  • LocationAustin, TX

Posted 04 January 2017 - 10:09 AM

I do not know if you have read my posting in the tread "Emby Theater on Raspberry" about running your ET for Linux on Raspberry?

Look here at post 80: https://emby.media/c...ry-pi/?p=401603

Is the issues related to running on raspberry pi?

Maybe developer "null_pointer" and you can help each other?

 

Yes, and not to worry, we are in constant contact with each other.

 

The Pi video system is substantially different from a PC, so this issue is unique to the Pi.  Right now @null_pointer is concentrating on OMXPlayer - the issue with MPV is we can't figure out how to overlay an OSD on the Pi.

 

On a PC - we can put the OSD on top of the video by forcing the video on top.  On the Pi this doesn't work - and the only way we have been able to get an OSD is by making the video transparent.  OMXPlayer has a switch to do this, but as far as we can tell MPV does not.

 

xnappo



#14 haraldov OFFLINE  

haraldov

    Advanced Member

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

Posted 04 January 2017 - 05:14 PM

Thanks for sharing the information. Keep up the good work with ET on linux and on raspberry.


  • xnappo likes this

#15 redaktorn OFFLINE  

redaktorn

    Advanced Member

  • Members
  • 68 posts
  • Local time: 04:14 PM
  • LocationSweden

Posted 07 January 2017 - 09:03 AM

I am very happy for the work on bringing Emby Theater to Linux :-)

It will be a great alternative to running Kodi.

 

I am not so professional with Linux but I have installed the testversion and got it up and running.

Although I cannot get my remote to work. I have tried suggestions above and a few more but no result.

I think the final version must support LIRC to make it easy enough for us "dummies".

 

Anyhow I can test the Emby Theater with my keyboard and it looks great.

 

Since this version (I presume) is intended mainly for HTPC (Home Theaters) I have a few considerations.

First I miss the "Home Page" that you get in the web-browser with an overview of everything. 

I would like to see that also in Emby Theater.

As it is now "Home" takes you to whatever folder you have first in your setup (in my case collections).

 

Secondly I am not so sure that Emby Theater when used with a remote shall be so much orientated in navigating horizontally?

I would prefer navigating more up and down (as it is in the web-browser version)

 

I can notice that there are a few things which still needs mouse operation.

Like finding and changing to window mode/fullscreen.

When choosing profile/setting icon I cannot see in next screen what is marked/highlighted.

I have to count the numbers I move to know what selection I make (or use a mouse to point at it).

 

Thanks for a great job. I look forward to coming updates.

 

P.S: I run the test version on Ubuntu 16.04.



#16 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 4752 posts
  • Local time: 09:14 AM
  • LocationAustin, TX

Posted 07 January 2017 - 11:24 AM

I am very happy for the work on bringing Emby Theater to Linux :-)

It will be a great alternative to running Kodi.

Thanks for the interest!

 

 

 

I think the final version must support LIRC to make it easy enough for us "dummies".

Well there is software for Linux to allow mapping from any remote to and keyboard action, so someone without an MCE remote will have to write up how.  MCE remotes will be directly supported though.  What remote do you have?

 

 

Most of your other comments are really Emby Theater related and not Linux per-se.  Actually a lot of them could be addressed with different 'skins' and we are hopeful we will get a skinning community going to give people more UI options.

 

I will warn that I am quite busy with other stuff right now, so going may be slow on this project.

 

xnappo 


Edited by xnappo, 07 January 2017 - 11:24 AM.


#17 redaktorn OFFLINE  

redaktorn

    Advanced Member

  • Members
  • 68 posts
  • Local time: 04:14 PM
  • LocationSweden

Posted 07 January 2017 - 11:59 AM

Thanks for the interest!

 

 

 

Well there is software for Linux to allow mapping from any remote to and keyboard action, so someone without an MCE remote will have to write up how.  MCE remotes will be directly supported though.  What remote do you have?

 

 

Most of your other comments are really Emby Theater related and not Linux per-se.  Actually a lot of them could be addressed with different 'skins' and we are hopeful we will get a skinning community going to give people more UI options.

 

I will warn that I am quite busy with other stuff right now, so going may be slow on this project.

 

xnappo 

 

Thank you for kind reply.

I use a MCE remote in a Harmony remote control (so hopefully that will work later -couldn't get it to work now).

I keep my eyes open for developments (as well the skins)



#18 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 2165 posts
  • Local time: 10:14 PM
  • LocationPerth, Australia

Posted 07 January 2017 - 11:49 PM

I had issues with mce remote in pi and in the above posts someone mentioned ir-keytable i installed that and in few minutes i was up and running i spent couple of hours with lirc and no luck. I can provide you with the commands all i know i installed run a command it saved all commands to a text file changed the text of ok and exit button and loaded that file and finally created a autostart script. There are lot of help materials on it.
  • xnappo likes this

#19 redaktorn OFFLINE  

redaktorn

    Advanced Member

  • Members
  • 68 posts
  • Local time: 04:14 PM
  • LocationSweden

Posted 08 January 2017 - 07:45 AM

I had issues with mce remote in pi and in the above posts someone mentioned ir-keytable i installed that and in few minutes i was up and running i spent couple of hours with lirc and no luck. I can provide you with the commands all i know i installed run a command it saved all commands to a text file changed the text of ok and exit button and loaded that file and finally created a autostart script. There are lot of help materials on it.

 

Hi denz,

I have installed the ir-keytable.

I have started it and tried to make the tests as suggested above by TrainAss.

No luck so far I am sorry to say.

 

If you have any additional info I am happy to receive it.



#20 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 2165 posts
  • Local time: 10:14 PM
  • LocationPerth, Australia

Posted 08 January 2017 - 10:29 AM


Have you uninstalled lirc

When you type ir-keytable do you get any output I get driver mceusb table rc-rc6-mce you should get the same

Then try ir-keytable -t and press buttons on your remote and it should display which button you pressed if it does your remote is compatible and it will work.
  • xnappo and redaktorn like this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users