New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for OpenELEC 4.0 #101

Closed
timhansinger opened this Issue May 8, 2014 · 18 comments

Comments

Projects
None yet
6 participants
@timhansinger

timhansinger commented May 8, 2014

I wanted to ask if support for OpenELEC 4.0 is planned? Currently it's not working. Hyperion-Service starts, but stops running after a few seconds while playing a movie.

@tvdzwan

This comment has been minimized.

Show comment
Hide comment
@tvdzwan

tvdzwan May 9, 2014

Collaborator

Although we do not use OE ourself, we try and maintain compatibility. Could you run Hyperion from the commandline? Hopefully the output will give a clue about the cause of the crash or shutdown of Hyperion.
You can run hyperion from the commandline with the shell script 'hyperion.sh':

/storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json
Collaborator

tvdzwan commented May 9, 2014

Although we do not use OE ourself, we try and maintain compatibility. Could you run Hyperion from the commandline? Hopefully the output will give a clue about the cause of the crash or shutdown of Hyperion.
You can run hyperion from the commandline with the shell script 'hyperion.sh':

/storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config.json
@timhansinger

This comment has been minimized.

Show comment
Hide comment
@timhansinger

timhansinger May 9, 2014

Hello,

I reinstalled everything new. So please let me change the problem. Hyperion is working with OpenELEC just fine.

One thing though:
Since XBMC Gotham it's possible to play videos with OMXPlayer or DVDPlayer inside OpenELEC for Raspberry Pi.
In my config "hyperion.config.json" I activate Hyperion only for Video:

    "xbmcVideoChecker" : 
    {
        "xbmcAddress" : "127.0.0.1",
        "xbmcTcpPort" : 9090,
        "grabVideo" : true,
        "grabPictures" : false,
        "grabAudio" : false,
        "grabMenu" : false,
        "grabScreensaver" : false,
        "enable3DDetection" : true
    },

When I'm playing a video file using OMXPlayer Hyperion is working fine.

Problem:
When I'm playing a video file using DVDPlayer Hyperion isn't working. Here's the output of hyperiond (which looks fine to me):

XBMC:~/.config # /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.co
nfig.json
Application build time: May  6 2014 22:04:52
QCoreApplication initialised
Selected configuration file: /storage/.config/hyperion.config.json
ColorTransform 'default' => [0; 49]
Device configuration: 
{
    "colorOrder" : "rgb",
    "name" : "MyPi",
    "output" : "/dev/spidev0.0",
    "rate" : 250000,
    "type" : "ws2801"
}

Black border threshold set to 0.01 (3)
Creating linear smoothing
Effect loaded: Knight rider
Effect loaded: Blue mood blobs
Effect loaded: Green mood blobs
Effect loaded: Red mood blobs
Effect loaded: Rainbow mood
Effect loaded: Rainbow swirl fast
Effect loaded: Rainbow swirl
Effect loaded: Snake
Effect loaded: Strobe blue
Effect loaded: Strobe Raspbmc
Effect loaded: Strobe white
Initializing Python interpreter
Hyperion created and initialised
XBMC video checker created and started
Display opened with resolution: 1920x1080
Frame grabber created and started
Json server created and started on port 19444
Proto server created and started on port 19445
XBMC Connected
Message from XBMC: {"id":666,"jsonrpc":"2.0","result":[]}
XBMC checker: switching to OFF mode
Message from XBMC: {"id":668,"jsonrpc":"2.0","result":{"System.ScreenSaverActive":true}}
Message from XBMC: {"id":670,"jsonrpc":"2.0","result":{"version":{"major":13,"minor":0,"revision":"0d1d803","tag":"stable"}}}
Message from XBMC: {"jsonrpc":"2.0","method":"GUI.OnScreensaverDeactivated","params":{"data":false,"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Playlist.OnClear","params":{"data":{"playlistid":1},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Playlist.OnAdd","params":{"data":{"item":{"title":"Star Trek Into Darkness (2013).m4v","type":"movie"},"playlistid":1,"position":0},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"title":"Star Trek Into Darkness (2013).m4v","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
Message from XBMC: {"id":666,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
XBMC checker: switching to VIDEO mode
Message from XBMC: {"id":667,"jsonrpc":"2.0","result":{"item":{"file":"nfs://nas4free/mnt/tank/media/MOVIES/Star Trek Into Darkness (2013)/Star Trek Into Darkness (2013).m4v","label":"Star Trek Into Darkness (2013).m4v","type":"unknown"}}}
Message from XBMC: {"id":669,"jsonrpc":"2.0","result":{"stereoscopicmode":{"label":"Keiner","mode":"off"}}}

timhansinger commented May 9, 2014

Hello,

I reinstalled everything new. So please let me change the problem. Hyperion is working with OpenELEC just fine.

One thing though:
Since XBMC Gotham it's possible to play videos with OMXPlayer or DVDPlayer inside OpenELEC for Raspberry Pi.
In my config "hyperion.config.json" I activate Hyperion only for Video:

    "xbmcVideoChecker" : 
    {
        "xbmcAddress" : "127.0.0.1",
        "xbmcTcpPort" : 9090,
        "grabVideo" : true,
        "grabPictures" : false,
        "grabAudio" : false,
        "grabMenu" : false,
        "grabScreensaver" : false,
        "enable3DDetection" : true
    },

When I'm playing a video file using OMXPlayer Hyperion is working fine.

Problem:
When I'm playing a video file using DVDPlayer Hyperion isn't working. Here's the output of hyperiond (which looks fine to me):

XBMC:~/.config # /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.co
nfig.json
Application build time: May  6 2014 22:04:52
QCoreApplication initialised
Selected configuration file: /storage/.config/hyperion.config.json
ColorTransform 'default' => [0; 49]
Device configuration: 
{
    "colorOrder" : "rgb",
    "name" : "MyPi",
    "output" : "/dev/spidev0.0",
    "rate" : 250000,
    "type" : "ws2801"
}

Black border threshold set to 0.01 (3)
Creating linear smoothing
Effect loaded: Knight rider
Effect loaded: Blue mood blobs
Effect loaded: Green mood blobs
Effect loaded: Red mood blobs
Effect loaded: Rainbow mood
Effect loaded: Rainbow swirl fast
Effect loaded: Rainbow swirl
Effect loaded: Snake
Effect loaded: Strobe blue
Effect loaded: Strobe Raspbmc
Effect loaded: Strobe white
Initializing Python interpreter
Hyperion created and initialised
XBMC video checker created and started
Display opened with resolution: 1920x1080
Frame grabber created and started
Json server created and started on port 19444
Proto server created and started on port 19445
XBMC Connected
Message from XBMC: {"id":666,"jsonrpc":"2.0","result":[]}
XBMC checker: switching to OFF mode
Message from XBMC: {"id":668,"jsonrpc":"2.0","result":{"System.ScreenSaverActive":true}}
Message from XBMC: {"id":670,"jsonrpc":"2.0","result":{"version":{"major":13,"minor":0,"revision":"0d1d803","tag":"stable"}}}
Message from XBMC: {"jsonrpc":"2.0","method":"GUI.OnScreensaverDeactivated","params":{"data":false,"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Playlist.OnClear","params":{"data":{"playlistid":1},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Playlist.OnAdd","params":{"data":{"item":{"title":"Star Trek Into Darkness (2013).m4v","type":"movie"},"playlistid":1,"position":0},"sender":"xbmc"}}
Message from XBMC: {"jsonrpc":"2.0","method":"Player.OnPlay","params":{"data":{"item":{"title":"Star Trek Into Darkness (2013).m4v","type":"movie"},"player":{"playerid":1,"speed":1}},"sender":"xbmc"}}
Message from XBMC: {"id":666,"jsonrpc":"2.0","result":[{"playerid":1,"type":"video"}]}
XBMC checker: switching to VIDEO mode
Message from XBMC: {"id":667,"jsonrpc":"2.0","result":{"item":{"file":"nfs://nas4free/mnt/tank/media/MOVIES/Star Trek Into Darkness (2013)/Star Trek Into Darkness (2013).m4v","label":"Star Trek Into Darkness (2013).m4v","type":"unknown"}}}
Message from XBMC: {"id":669,"jsonrpc":"2.0","result":{"stereoscopicmode":{"label":"Keiner","mode":"off"}}}
@tvdzwan

This comment has been minimized.

Show comment
Hide comment
@tvdzwan

tvdzwan May 9, 2014

Collaborator

The issue could be related to the dispmanx grabber. The grabber will only grab specific buffers of the video core with the XbmcChecker enabled. This allows the grabbing without subtitles or on screen display items. If the XbmcChecker is disabled, this is disabled and the whole screen should be captured (if the display actually goes through the video-core).
Could you test with the XbmcChecker disabled (comment the entire XbmcChecker section in the config file)?

Collaborator

tvdzwan commented May 9, 2014

The issue could be related to the dispmanx grabber. The grabber will only grab specific buffers of the video core with the XbmcChecker enabled. This allows the grabbing without subtitles or on screen display items. If the XbmcChecker is disabled, this is disabled and the whole screen should be captured (if the display actually goes through the video-core).
Could you test with the XbmcChecker disabled (comment the entire XbmcChecker section in the config file)?

@timhansinger

This comment has been minimized.

Show comment
Hide comment
@timhansinger

timhansinger May 9, 2014

Thank you. Deactivating the whole xbmcVideoChecker-section helped to get the LEDs working with "DVDPlayer".

timhansinger commented May 9, 2014

Thank you. Deactivating the whole xbmcVideoChecker-section helped to get the LEDs working with "DVDPlayer".

@NicoHood

This comment has been minimized.

Show comment
Hide comment
@NicoHood

NicoHood Jul 9, 2014

Contributor

I dont get any signal from the xbmc video checker with OE 4.0.6
The Frame grabber still works but it would be nice to turn off Leds in the menu.

Contributor

NicoHood commented Jul 9, 2014

I dont get any signal from the xbmc video checker with OE 4.0.6
The Frame grabber still works but it would be nice to turn off Leds in the menu.

@tvdzwan

This comment has been minimized.

Show comment
Hide comment
@tvdzwan

tvdzwan Jul 9, 2014

Collaborator

In some cases re-enabling the json interface within XBMC helped. Did you
try that?

On Wed, Jul 9, 2014 at 3:54 PM, NicoHood notifications@github.com wrote:

I dont get any signal from the xbmc video checker with OE 4.0.6
The Frame grabber still works but it would be nice to turn off Leds in the
menu.


Reply to this email directly or view it on GitHub
#101 (comment).

Collaborator

tvdzwan commented Jul 9, 2014

In some cases re-enabling the json interface within XBMC helped. Did you
try that?

On Wed, Jul 9, 2014 at 3:54 PM, NicoHood notifications@github.com wrote:

I dont get any signal from the xbmc video checker with OE 4.0.6
The Frame grabber still works but it would be nice to turn off Leds in the
menu.


Reply to this email directly or view it on GitHub
#101 (comment).

@NicoHood

This comment has been minimized.

Show comment
Hide comment
@NicoHood

NicoHood Jul 9, 2014

Contributor

how do i do that?

Contributor

NicoHood commented Jul 9, 2014

how do i do that?

@tvdzwan

This comment has been minimized.

Show comment
Hide comment
@tvdzwan

tvdzwan Jul 10, 2014

Collaborator

There are some options somewhere in the XBMC menu for allowing local and remote access. You should disable them both and enable them again.

Collaborator

tvdzwan commented Jul 10, 2014

There are some options somewhere in the XBMC menu for allowing local and remote access. You should disable them both and enable them again.

@NicoHood

This comment has been minimized.

Show comment
Hide comment
@NicoHood

NicoHood Jul 10, 2014

Contributor

I found:
Settings->Services->Remote Control->"Allow programs on this system to control xbmc"

I deactivated it, rebooted, activated, booted again. Doesnt work :(
I tried it several times.
And by the way now its v4.0.7

edit: accessing from another windows pc with xbmc + the addon works. dont know if this helps or is related to this issue

Contributor

NicoHood commented Jul 10, 2014

I found:
Settings->Services->Remote Control->"Allow programs on this system to control xbmc"

I deactivated it, rebooted, activated, booted again. Doesnt work :(
I tried it several times.
And by the way now its v4.0.7

edit: accessing from another windows pc with xbmc + the addon works. dont know if this helps or is related to this issue

@tvdzwan

This comment has been minimized.

Show comment
Hide comment
@tvdzwan

tvdzwan Jul 10, 2014

Collaborator

There should be two options, "this system" and "other systems". You should
disable and enable both. Reboot should not be required actually. This
solution helped a lot of people with getting the xbmc-checker connected.

On Thu, Jul 10, 2014 at 9:53 PM, NicoHood notifications@github.com wrote:

I found:
Settings->Services->Remote Control->"Allow programs on this system to
control xbmc"

I deactivated it, rebooted, activated, booted again. Doesnt work :(
I tried it several times.
And by the way now its v4.0.7


Reply to this email directly or view it on GitHub
#101 (comment).

Collaborator

tvdzwan commented Jul 10, 2014

There should be two options, "this system" and "other systems". You should
disable and enable both. Reboot should not be required actually. This
solution helped a lot of people with getting the xbmc-checker connected.

On Thu, Jul 10, 2014 at 9:53 PM, NicoHood notifications@github.com wrote:

I found:
Settings->Services->Remote Control->"Allow programs on this system to
control xbmc"

I deactivated it, rebooted, activated, booted again. Doesnt work :(
I tried it several times.
And by the way now its v4.0.7


Reply to this email directly or view it on GitHub
#101 (comment).

@NicoHood

This comment has been minimized.

Show comment
Hide comment
@NicoHood

NicoHood Jul 10, 2014

Contributor

Yes i did. but the problem is still there :(

edit:
~ # /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config
.json
Application build time: Jun 19 2014 22:14:22
QCoreApplication initialised
Selected configuration file: /storage/.config/hyperion.config.json
ColorTransform 'default' => [0; 49]
Device configuration:
{
"colorOrder" : "rgb",
"name" : "MyPi",
"output" : "/dev/ttyACM0",
"rate" : 115200,
"type" : "adalight"
}

Opening UART: /dev/ttyACM0
Black border threshold set to 0.01 (3)
Creating linear smoothing
Effect loaded: Knight rider
Effect loaded: Blue mood blobs
Effect loaded: Cold mood blobs
Effect loaded: Full color mood blobs
Effect loaded: Green mood blobs
Effect loaded: Red mood blobs
Effect loaded: Warm mood blobs
Effect loaded: Rainbow mood
Effect loaded: Rainbow swirl fast
Effect loaded: Rainbow swirl
Effect loaded: Snake
Effect loaded: Strobe blue
Effect loaded: Strobe Raspbmc
Effect loaded: Strobe white
Initializing Python interpreter
Hyperion created and initialised
run effect Rainbow swirl fast on channel 0
Boot sequence(Rainbow swirl fast) created and started
XBMC video checker created and started
Display opened with resolution: 1920x1080
Frame grabber created and started
Json server created and started on port 19444
Proto server created and started on port 19445
XBMC Connection error (0)
BORDER SWITCH REQUIRED!!
CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
effect finished
XBMC Connection error (0)
XBMC Connection error (0)

Contributor

NicoHood commented Jul 10, 2014

Yes i did. but the problem is still there :(

edit:
~ # /storage/hyperion/bin/hyperiond.sh /storage/.config/hyperion.config
.json
Application build time: Jun 19 2014 22:14:22
QCoreApplication initialised
Selected configuration file: /storage/.config/hyperion.config.json
ColorTransform 'default' => [0; 49]
Device configuration:
{
"colorOrder" : "rgb",
"name" : "MyPi",
"output" : "/dev/ttyACM0",
"rate" : 115200,
"type" : "adalight"
}

Opening UART: /dev/ttyACM0
Black border threshold set to 0.01 (3)
Creating linear smoothing
Effect loaded: Knight rider
Effect loaded: Blue mood blobs
Effect loaded: Cold mood blobs
Effect loaded: Full color mood blobs
Effect loaded: Green mood blobs
Effect loaded: Red mood blobs
Effect loaded: Warm mood blobs
Effect loaded: Rainbow mood
Effect loaded: Rainbow swirl fast
Effect loaded: Rainbow swirl
Effect loaded: Snake
Effect loaded: Strobe blue
Effect loaded: Strobe Raspbmc
Effect loaded: Strobe white
Initializing Python interpreter
Hyperion created and initialised
run effect Rainbow swirl fast on channel 0
Boot sequence(Rainbow swirl fast) created and started
XBMC video checker created and started
Display opened with resolution: 1920x1080
Frame grabber created and started
Json server created and started on port 19444
Proto server created and started on port 19445
XBMC Connection error (0)
BORDER SWITCH REQUIRED!!
CURRENT BORDER TYPE: unknown=0 hor.size=0 vert.size=0
effect finished
XBMC Connection error (0)
XBMC Connection error (0)

@NicoHood

This comment has been minimized.

Show comment
Hide comment
@NicoHood

NicoHood Oct 3, 2015

Contributor

Ahm just a question regarding this:
For what is the XBMC checker used? I am currently running Kodi + Hyperion on my linux laptop and I alwats get XBMC connection errors. It seems that I dont need this interface. The protoserver + Kodi addin just works fine. So where do I need this XBMC checker? Just on the raspi?

Edit: I got it running if I enable the "Allow remote control by programs on other system" option. But I am on the same PC, why is this required? And what advantages does this xbmc checker gives me?

Contributor

NicoHood commented Oct 3, 2015

Ahm just a question regarding this:
For what is the XBMC checker used? I am currently running Kodi + Hyperion on my linux laptop and I alwats get XBMC connection errors. It seems that I dont need this interface. The protoserver + Kodi addin just works fine. So where do I need this XBMC checker? Just on the raspi?

Edit: I got it running if I enable the "Allow remote control by programs on other system" option. But I am on the same PC, why is this required? And what advantages does this xbmc checker gives me?

@Gamadril

This comment has been minimized.

Show comment
Hide comment
@Gamadril

Gamadril Oct 13, 2015

Contributor

xbmc checker uses Kodi's RPC API to get the current state of Kodi, like screensaver, menu, movie playing etc. Since there is also a build for x86 with native framegrabber, you need the xmbc checker to get Kodi's state. Not sure about protoserver - never used it...

Contributor

Gamadril commented Oct 13, 2015

xbmc checker uses Kodi's RPC API to get the current state of Kodi, like screensaver, menu, movie playing etc. Since there is also a build for x86 with native framegrabber, you need the xmbc checker to get Kodi's state. Not sure about protoserver - never used it...

@NicoHood

This comment has been minimized.

Show comment
Hide comment
@NicoHood

NicoHood Oct 13, 2015

Contributor

Oh I think I did not compile the framegrabber or it just doesnt work. So With the proto server I dont need this? Which one is the better solution? I only need ambilight inside the video, thats totally okay. I just need a fast and stable version running with the best picture (led) quality.

Contributor

NicoHood commented Oct 13, 2015

Oh I think I did not compile the framegrabber or it just doesnt work. So With the proto server I dont need this? Which one is the better solution? I only need ambilight inside the video, thats totally okay. I just need a fast and stable version running with the best picture (led) quality.

@Gamadril

This comment has been minimized.

Show comment
Hide comment
@Gamadril

Gamadril Oct 13, 2015

Contributor

native grabber will be always faster and (probably less cpu consuming - not tested however). test the x86 build here: #62 (comment)

Contributor

Gamadril commented Oct 13, 2015

native grabber will be always faster and (probably less cpu consuming - not tested however). test the x86 build here: #62 (comment)

@NicoHood

This comment has been minimized.

Show comment
Hide comment
@NicoHood

NicoHood Oct 13, 2015

Contributor

Why dont you open a PR for this? Nativ linux build would be very nice. I have no problem with self recompiling, however this would be a good enhancement.

Edit: I do not use OE, I use Elementary OS.

Contributor

NicoHood commented Oct 13, 2015

Why dont you open a PR for this? Nativ linux build would be very nice. I have no problem with self recompiling, however this would be a good enhancement.

Edit: I do not use OE, I use Elementary OS.

@Gamadril

This comment has been minimized.

Show comment
Hide comment
@Gamadril

Gamadril Oct 13, 2015

Contributor

I did some modifications of the install script and haven't tested if it breaks any other platforms... the native grabber works only with the framebuffer (/dev/fb), so it will not work with an X server. There is an X grabber avaialable running as a separate process, but it also uses protobuffer for communication with hyperion, so probably not a real improvement to your current solution. I worked on a separate hyperion branch which does not depend on QT and integrates the X grabber natively, however I have no time to test it propperly before making it public.

Contributor

Gamadril commented Oct 13, 2015

I did some modifications of the install script and haven't tested if it breaks any other platforms... the native grabber works only with the framebuffer (/dev/fb), so it will not work with an X server. There is an X grabber avaialable running as a separate process, but it also uses protobuffer for communication with hyperion, so probably not a real improvement to your current solution. I worked on a separate hyperion branch which does not depend on QT and integrates the X grabber natively, however I have no time to test it propperly before making it public.

@tpmodding

This comment has been minimized.

Show comment
Hide comment
@tpmodding

tpmodding Mar 2, 2016

Collaborator

@timhansinger think we can close this... :)

Collaborator

tpmodding commented Mar 2, 2016

@timhansinger think we can close this... :)

@brindosch brindosch closed this Mar 7, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment