Jump to content


Photo

Emby Theater for Linux


  • Please log in to reply
588 replies to this topic

#21 redaktorn OFFLINE  

redaktorn

    Advanced Member

  • Members
  • 66 posts
  • Local time: 09:01 PM
  • LocationSweden

Posted 08 January 2017 - 08:58 PM

Hi denz,

 

I have for testing purpose uninstalled LIRC.

And then it works - BUT I get the problem that some remote buttons do not work.

One of the not working buttons is the OK button, so the remote becomes pretty useless.

 

When I type ir-keytable i get the following output:

Found /sys/class/rc/rc0/ (/dev/input/event3) with:
 Driver nuvoton-cir, 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: Nuvoton w836x7hg Infrared Remote
 bus: 25, vendor/product: 1050:00c3, version: 0x0033
 Repeat delay = 500 ms, repeat period = 125 ms

 

When testing ir-keytable -t, I do get response on all kind of buttons - also OK button.

But it does not map correct so I have no OK button in Emby Theater.

 

Same problem in Kodi but if I install LIRC again I get all buttons to work in Kodi (none in ET)

 



#22 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 2010 posts
  • Local time: 03:01 AM
  • LocationPerth, Australia

Posted 08 January 2017 - 11:08 PM

The remote will work then few more steps

 

This command will produce the file that you need to edit

 

ir-keytable -r  > ~/mcekeytable

 

 

now open it and change OK to ENTER and EXIT to ESC then reload it with following commands

 

ir-keytable -c
ir-keytable -w ~/mcekeytable  searching on google some put other options but this worked for me

 

then test it

 

ir_keytable -t

 

now load theater and see do the buttons work they should then few more things

 

I copied the text file to /etc/rc_keymaps folder

 

and put this line  nuvoton-cir rc-rc6-mce mcekeytable in /etc/rc_maps.cfg  

 

try this if it doesn stick on reboot then you need to create autostart script 

 

I have also had a small issue is that not everything worked unless I reboot.

 

you will also need to change KEY_NUMERIC_5 to KEY_5 and do this for the rest of the numbers I just took 5 for example.


Edited by denz, 09 January 2017 - 08:33 AM.

  • redaktorn likes this

#23 redaktorn OFFLINE  

redaktorn

    Advanced Member

  • Members
  • 66 posts
  • Local time: 09:01 PM
  • LocationSweden

Posted 09 January 2017 - 04:28 PM

Hi,

 

Now I have tried Emby Theater with a working remote and must say that I like it a lot :)

With some more development and a skinning community it will be a success.

 

Thank you denz for helping me out.

I have solved most issues using your information and some other info like here:

http://pdxpastimes.b...working-in.html

 

It took a huge amount of testing (for me who is a dummy) and as I understand it using ir-keytable (instead of lirc) will never be 100% compatible with Kodi. There is also a language problem when using ir-keytable since several keystrokes in Kodi actually differs when using non English keyboard.

 

My table "rc-rc6-mce" is located in /etc/rc_keymaps/

My "rc_maps.cfg" points to that file so it works and stays after editing and reboot. 

 

An important issue that comes up when configuring ir-keytable is that Kodi and Emby Theater does not use same buttons. Example Kodi wants "X" for stop but that is not what Emby Theater use.

(I never found out what button equals to stop in ET but it is not "X")

In total this gives problems with play, stop, forward, reverse and some other functions.

(They don't work in Emby Theater when mapping is done to fit Kodi)

Maybe somebody more clever than me can find out how to map the ir-keytable to fit both Kodi and Emby Theater?

But it is over my knowledge for sure (Sorry).

My personal opinion is still that Emby Theater needs to support the LIRC to avoid problems and to make a compatible setup in Linux that can be used as well for Emby as for Kodi.

 

For getting all buttons working in Kodi with ir-keytable it takes several more buttons to edit than discussed above..

Some of them I had to try out by "trial and error" on my keybord to get right.

(Example EPG is not "G" in Swedish keyboard - it is "C")

When done with all buttons there are still things that cannot be solved.

Kodi use "pause" "play" and "playpause" with not only the "P". It uses also the "SPACE".

I could not find out of how to combine that in my table to get it right on the remote (but it is not important).

The important thing is that it seems to differ between Kodi and Emby + it differs depending what language you use.

 

As it is for the moment I am ready testing and have no more plans to test the current version.

If anybody is interested in my configuration of the ir-keytable i attach the file here.

(I am not asking for help with it - maybe it can help somebody else who wants to try Emby Theater for Linux)

 

 

Attached Files


  • xnappo likes this

#24 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5691 posts
  • Local time: 02:01 PM
  • LocationAustin, TX

Posted 09 January 2017 - 05:23 PM

Nice work.  

 

What would the priority be for y'all in:

 

1. Fixing the always-on-top issue

2. Making playback launch smoother (don't show the desktop while launching)

3. Get Okuru working again (https://emby.media/c...kuru-theme-wip/)

4. Other (though keep in mind we are talking about the Okuru skin and Linux port - anything that is general to ET is not me)


  • redaktorn likes this

#25 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 127030 posts
  • Local time: 03:01 PM

Posted 09 January 2017 - 05:25 PM

1 & 2 and then at this point the linux specific work will more or less be done.


  • xnappo likes this

#26 redaktorn OFFLINE  

redaktorn

    Advanced Member

  • Members
  • 66 posts
  • Local time: 09:01 PM
  • LocationSweden

Posted 09 January 2017 - 05:33 PM

I would also suggest 1 and 2

Thank you for keeping up the work


  • xnappo likes this

#27 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5691 posts
  • Local time: 02:01 PM
  • LocationAustin, TX

Posted 09 January 2017 - 05:39 PM

Alright.

 

Thanks guys.  I think I can fix both in a not-so-beautiful way pretty quick.  Will take a look tonight.



#28 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5691 posts
  • Local time: 02:01 PM
  • LocationAustin, TX

Posted 09 January 2017 - 10:27 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.  Let me know.  Thanks to @null_pointer for pointing me in the right direction (and then dragging my nose to the water).


Edited by xnappo, 09 January 2017 - 10:32 PM.


#29 clarkss12 OFFLINE  

clarkss12

    Advanced Member

  • Members
  • 975 posts
  • Local time: 03:01 PM
  • LocationMichigan, USA

Posted 12 January 2017 - 04:08 PM

I tried to install this to my Amlogic S905X arm device running Ubuntu 16.04.  My $40 Linux box runs OK, but thought I could get the ET running on it.  I am now running my Emby server running on it.

 

Attached Files



#30 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5691 posts
  • Local time: 02:01 PM
  • LocationAustin, TX

Posted 12 January 2017 - 04:43 PM

Possibly no Electron for ARM64..


Error: Failed to find Electron v1.4.14 for linux-arm64 at https://github.com/e...linux-arm64.zip

Supporting ARM isn't in my goals for this right now. But feel free to play with it.

#31 clarkss12 OFFLINE  

clarkss12

    Advanced Member

  • Members
  • 975 posts
  • Local time: 03:01 PM
  • LocationMichigan, USA

Posted 12 January 2017 - 04:51 PM

Thanks, Xnappo, but the link does not work.  404.  Anyway I am a newbie at Linux, but not afraid of trying or learning...



#32 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5691 posts
  • Local time: 02:01 PM
  • LocationAustin, TX

Posted 12 January 2017 - 05:03 PM

Thanks, Xnappo, but the link does not work.  404.  Anyway I am a newbie at Linux, but not afraid of trying or learning...

Yes - that is the point :) That was an error from your logfile.  If that doesn't install it isn't going to work.  Since it is ARM, you might trying the Raspberry Pi install instructions.

 

https://emby.media/c...n-raspberry-pi/

 

xnappo


Edited by xnappo, 12 January 2017 - 05:03 PM.


#33 clarkss12 OFFLINE  

clarkss12

    Advanced Member

  • Members
  • 975 posts
  • Local time: 03:01 PM
  • LocationMichigan, USA

Posted 12 January 2017 - 05:14 PM

Thanks, Xnappo.
Tried the one you  referred to, but same issue.  Will continue to look for  a solution.



#34 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5691 posts
  • Local time: 02:01 PM
  • LocationAustin, TX

Posted 15 January 2017 - 12:01 PM

Can someone try LiveTV with this?  



#35 TrainAss OFFLINE  

TrainAss

    Advanced Member

  • Members
  • 147 posts
  • Local time: 01:01 PM
  • LocationEdmonton, AB

Posted 25 January 2017 - 01:03 AM

Can someone try LiveTV with this?  

Just tried LiveTV, and it worked.

588831a5a0b48_Screenshotfrom201701242202


  • hoppel118 and zigzagtshirt like this

#36 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 127030 posts
  • Local time: 03:01 PM

Posted 25 January 2017 - 01:46 AM

@TrainAss bravo !


  • hoppel118 likes this

#37 xnappo OFFLINE  

xnappo

    Advanced Member

  • Developers
  • 5691 posts
  • Local time: 02:01 PM
  • LocationAustin, TX

Posted 25 January 2017 - 10:55 AM

@TrainAss - how fast is the channel changing?


  • hoppel118 likes this

#38 TrainAss OFFLINE  

TrainAss

    Advanced Member

  • Members
  • 147 posts
  • Local time: 01:01 PM
  • LocationEdmonton, AB

Posted 26 January 2017 - 11:57 PM

@TrainAss - how fast is the channel changing?

Sorry for the long delay in replying. Still have to use the mouse to back out to the guide from a channel. When I selected a new channel (went from Ch.2 to Ch.23) it took about 11s from when I hit enter on Play until the video was displayed. I tried up/down and ch up/down on the remote and neither changed channels (wasn't sure if that was working, as I didn't see anything indicating as such).



#39 denz OFFLINE  

denz

    Advanced Member

  • Members
  • 2010 posts
  • Local time: 03:01 AM
  • LocationPerth, Australia

Posted 27 January 2017 - 12:06 AM

That looks like the same time as we get in raspberry pi using omxplayer it is just too slow.



#40 haraldov OFFLINE  

haraldov

    Advanced Member

  • Members
  • 122 posts
  • Local time: 09:01 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






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users