LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Moderators: mdrjr, odroid, Raybuntu, wrxtasy

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Pienoet » Sat Oct 28, 2017 7:56 pm

@raybuntu i can't find hyperion NG in your addon repo.....

Did you removed it?
Pienoet
 
Posts: 375
Joined: Sun May 10, 2015 10:04 pm
languages_spoken: english Dutch

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Sat Oct 28, 2017 8:00 pm

Yes cause people kept asking for Hyperion back. I can't support both.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby alex240188 » Mon Oct 30, 2017 6:28 pm

one thing I have noticed is that H265 playback has improved drastically over recent builds.
I think I was on Leia8 before and was having issues many issues with H265 Anime content where it was freezing for a seconds then racing to catch up.
I think it had something to do with subtitles as it seemed to freeze when a subtitle was supposed to appear.
But after updating to 12 I cant say Ive seen this issue since.
alex240188
 
Posts: 133
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Mon Oct 30, 2017 6:36 pm

I've noticed that too on my productive C2. I will have to update to rb-leia12 then :D
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Mon Oct 30, 2017 8:41 pm

​https://github.com/Raybuntu/LibreELEC.tv/releases/tag/rb-leia13​

Halloween Edition ;)
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Pienoet » Mon Oct 30, 2017 8:52 pm

Raybuntu wrote:​https://github.com/Raybuntu/LibreELEC.tv/releases/tag/rb-leia13​

Halloween Edition ;)


Thanks man!

What’s include PR12968?
Pienoet
 
Posts: 375
Joined: Sun May 10, 2015 10:04 pm
languages_spoken: english Dutch

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Mon Oct 30, 2017 8:55 pm

BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby startv » Wed Nov 01, 2017 11:06 am

Raybuntu wrote:​https://github.com/Raybuntu/LibreELEC.tv/releases/tag/rb-leia13​

Halloween Edition ;)


leia13 (1-13) can't playback this sample video https://mega.nz/#!WxhnzbBb!cQSvVcAcGOU6Zsu5eK51FCuK8G0VSkE0JXPgEJ-lNlI (10MB), but Krypton can.

Thanks for your work
startv
 
Posts: 17
Joined: Thu Jan 05, 2017 10:30 am
languages_spoken: english
ODROIDs: C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby legómina » Wed Nov 01, 2017 8:55 pm

leia13: I've got kodi freeze and restart whenever I switch off Netflix.
legómina
 
Posts: 13
Joined: Tue Mar 29, 2016 3:57 pm
languages_spoken: polish, english
ODROIDs: C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Wed Nov 01, 2017 9:00 pm

startv wrote:
Raybuntu wrote:​https://github.com/Raybuntu/LibreELEC.tv/releases/tag/rb-leia13​

Halloween Edition ;)


leia13 (1-13) can't playback this sample video https://mega.nz/#!WxhnzbBb!cQSvVcAcGOU6Zsu5eK51FCuK8G0VSkE0JXPgEJ-lNlI (10MB), but Krypton can.

Thanks for your work

Your file is completely broken. I can't even properly watch it on my Desktop.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby startv » Wed Nov 01, 2017 9:59 pm

@Raybuntu
Yes,but C2 installed your Krypton build can playback without problem.
startv
 
Posts: 17
Joined: Thu Jan 05, 2017 10:30 am
languages_spoken: english
ODROIDs: C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Wed Nov 01, 2017 10:13 pm

startv wrote:@Raybuntu
Yes,but C2 installed your Krypton build can playback without problem.


Sure but if I report a Bug in Kodi they will hang me for trying to play a totally damaged file.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Fri Nov 03, 2017 3:50 am

https://github.com/Raybuntu/LibreELEC.t ... -krypton19
This will probably be my last Krypton build.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Pienoet » Fri Nov 03, 2017 6:39 am

Raybuntu wrote:https://github.com/Raybuntu/LibreELEC.tv/releases/tag/rb-krypton19
This will probably be my last Krypton build.


Thank you very much raybuntu.
Pienoet
 
Posts: 375
Joined: Sun May 10, 2015 10:04 pm
languages_spoken: english Dutch

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby startv » Fri Nov 03, 2017 7:13 am

Raybuntu wrote:https://github.com/Raybuntu/LibreELEC.tv/releases/tag/rb-krypton19
This will probably be my last Krypton build.

Thank you
startv
 
Posts: 17
Joined: Thu Jan 05, 2017 10:30 am
languages_spoken: english
ODROIDs: C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Fri Nov 03, 2017 9:16 pm

https://github.com/Raybuntu/LibreELEC.t ... /rb-leia14
Hyperion Addon might not work with this version cause of recent changes in Kodi master
Make sure you update your addons too.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Sat Nov 04, 2017 8:14 pm

alex240188 wrote:No Change in behaviour for me

Code: Select all
OdroidC2:~ # moonlight stream -1080 -app "Rocket League"
Searching for server...
Connect to 10.150.53.70...
No mapping available for adc_keypad (10000000010000000100000000010000) on /dev/input/event0
No mapping available for meson-ir (19000000000000000000000000000000) on /dev/input/event3
No mapping available for gpio_keypad (10000000010000000100000000010000) on /dev/input/event1
No mapping available for cec_input (100000008e1b0000ec0c000001000000) on /dev/input/event2
Initializing platform...done
Resolving host name...done
Starting RTSP handshake...done
Initializing control stream...done
Initializing video stream...done
Initializing audio stream...done
Initializing input stream...done
Starting control stream...done
Starting video stream...OPEN es hevc
codec_init amstream version : 2.0
done
Starting audio stream...done
Starting input stream...done
EVIOCGRAB failed with error 16
EVIOCGRAB failed with error 16
EVIOCGRAB failed with error 16
EVIOCGRAB failed with error 16
EVIOCGRAB failed with error 16
EVIOCGRAB failed with error 16
Returning RTP packet queued for too long
Received OOS audio data (expected 20854, but got 20855)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 20921, but got 21003)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21023, but got 21025)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21087, but got 21089)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21172, but got 21173)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21236, but got 21237)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21296, but got 21299)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21382, but got 21383)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21446, but got 21447)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21550, but got 21551)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21634, but got 21635)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21718, but got 21719)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21782, but got 21783)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21886, but got 21887)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 21950, but got 21951)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 22054, but got 22055)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 22138, but got 22139)
Returning RTP packet after queue overgrowth
Received OOS audio data (expected 22222, but got 22223)

Black Screen on Odroid & No Audio
Though game is launched on the server & network light going crazy on the Odroid so it is clearly receiving the stream


Hi,

I switched to Hardkernel's Ubuntu image to try some other kernel optimisations and I also faced the moonlight black screen issues after running kodi.

As described HERE running the following commands after stopping kodi, and before starting moonlight did the trick.

Code: Select all
echo "0 0 0 0" > /sys/class/video/axis
echo 0 > /sys/class/video/screen_mode
echo 0 > /sys/class/video/disable_video


Let us know if doing the same in Libreelec fixes moonlight.

Best regards,
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Pienoet » Sat Nov 04, 2017 8:58 pm

Raybuntu wrote:https://github.com/Raybuntu/LibreELEC.tv/releases/tag/rb-leia14
Hyperion Addon might not work with this version cause of recent changes in Kodi master
Make sure you update your addons too.


Hello Raybuntu,

Leia14 inputstream adaptive have an update and now every stream is 480p with netflix did you noticed this?

Thank you for leia14 wich is running great.
Pienoet
 
Posts: 375
Joined: Sun May 10, 2015 10:04 pm
languages_spoken: english Dutch

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Sun Nov 05, 2017 12:14 am

I haven't tested it yet pienoet but it's probably something to report on the kodinerds forum pinging @peak3d.

@danielfmo Thanks. Does that mean it only works when Kodi is off? Moonlight is launched from within Kodi in LE.
Can somebody please test this cause I don't use moonlight.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Sun Nov 05, 2017 12:50 am

Raybuntu wrote:I haven't tested it yet pienoet but it's probably something to report on the kodinerds forum pinging @peak3d.

@danielfmo Thanks. Does that mean it only works when Kodi is off? Moonlight is launched from within Kodi in LE.
Can somebody please test this cause I don't use moonlight.


I've I got it right, the moonlight plug-in for Libreelec does already stop kodi when launching moonlight. I believable that is enough to edit the same file mentioned HERE and add the commands of my previous posts.

I don't have the setup to be able to test it at the moment.
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby alex240188 » Sun Nov 05, 2017 3:43 am

I'll try to have a play with it tomorrow
alex240188
 
Posts: 133
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby DeProf » Sun Nov 05, 2017 6:30 pm

I was wondering if the update has gone through. The name of the build is still leia12 even if I updated to leia14 right? Because my bootscreen and in Kodi itself it says leia12. I am not a stickler for namingschemes I was just wondering if my update went proper or if I should install a fresh copy of leia14.

BTW have encountered this numbering thing before in leia13 that was named leia12 on my odroid?
DeProf
 
Posts: 8
Joined: Sat Apr 02, 2016 11:27 pm
languages_spoken: english, german
ODROIDs: Odroid-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Sun Nov 05, 2017 7:02 pm

Please use the tar to update. Img.gz updates are broken.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby alex240188 » Sun Nov 05, 2017 7:19 pm

just had a quick test of moonlight this morning on Leia12. setting disable_Video to 0 does indeed get a stream to work. however there was no sound for me.
I dont have time to look at that yet as I have to go out but id say thats a good find danielfmo.
The Script itself closes Kodi, then launches moonlight. When Moonlight Dies it reloads kodi back up.
Should be simple enough to add something to the script that does an AMLOGIC Check then executes the disable_video flag before the script launches moonlight (after it has killed kodi)
alex240188
 
Posts: 133
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Sun Nov 05, 2017 8:03 pm

alex240188 wrote:just had a quick test of moonlight this morning on Leia12. setting disable_Video to 0 does indeed get a stream to work. however there was no sound for me.
I dont have time to look at that yet as I have to go out but id say thats a good find danielfmo.
The Script itself closes Kodi, then launches moonlight. When Moonlight Dies it reloads kodi back up.
Should be simple enough to add something to the script that does an AMLOGIC Check then executes the disable_video flag before the script launches moonlight (after it has killed kodi)


Nice to know!

About the audio not working you can try to update the said scrip as described in the thread that I mentioned, that worked for me before.
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby alex240188 » Sun Nov 05, 2017 11:43 pm

That sh script modification seems a bit weird.
Audio doesn't work with kodi set to the default audio option.
If I set it in kodi manually to HDMI then I get sound.
The initial steam big picture sound plays perfectly. Then all sound after that sounds distorted and jumpy.
Ok managed to get it to work at few times but it's really hit and miss.
Sometimes no audio. Others garbled audio.
Tried test wavs using aplay and it just behaves weird.
Stop kodi, test a wav and there is no audio over HDMI (hw:0,1).
Change input on TV to something else and then back to the black screen of the stopped kodi and then test the same file again and there is sound this time.
Do the same thing another time and don't ever get sound.
alex240188
 
Posts: 133
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Wed Nov 08, 2017 7:21 am

alex240188 wrote:That sh script modification seems a bit weird.
Audio doesn't work with kodi set to the default audio option.
If I set it in kodi manually to HDMI then I get sound.
The initial steam big picture sound plays perfectly. Then all sound after that sounds distorted and jumpy.
Ok managed to get it to work at few times but it's really hit and miss.
Sometimes no audio. Others garbled audio.
Tried test wavs using aplay and it just behaves weird.
Stop kodi, test a wav and there is no audio over HDMI (hw:0,1).
Change input on TV to something else and then back to the black screen of the stopped kodi and then test the same file again and there is sound this time.
Do the same thing another time and don't ever get sound.


Hi!

Well... my experience with ubuntu was not as I expected, I managed to get kody, hyperion and moonlight to work with needed kernel patched but the user experience was not that great... interfaces a bit "laggy" and "glitchy". So I am decided to get another go with LibreELEC.

Regarding moonlight I was able to get it to work by editing the moonlight.sh file as follows:
Code: Select all
...
      echo $MOONLIGHT_ARG >> $ADDON_LOG_FILE

      ### Fix for ODROID C2
      INDEX=$(pactl load-module module-alsa-sink device=hdmi:CARD=AMLM8AUDIO,DEV=0 channels=2)
      echo 0 > /sys/class/video/disable_video
      echo 16 > /sys/module/amvdec_h265/parameters/dynamic_buf_num_margin
      /bin/sh -c "${ADDON_DIR}/bin/moonlight ${MOONLIGHT_ARG} > ${ADDON_LOG_FILE} 2>&1"
      pactl unload-module $INDEX
      ### Fix for ODROID C2

      systemctl start kodi
...


@Raybuntu
I found that hyperion does spam a lot of dmesg logs due to a log of pr_info() in "drivers/amlogic/amports/amvideocap.c" in kernel, and I'm afraid that it can have an negative impact on overall performance.
Would you be willing to apply a kernel patch in order to fix that?
At the moment I can't get a git diff with the changes but basically is just need to comment all pr_info() in as done HERE

Cheers
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Wed Nov 08, 2017 7:44 am

@danielfmo: We use our own Kernel for LibreELEC. Can you please open a PR:
https://github.com/LibreELEC/linux-amlogic
It will be reviewed then.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Wed Nov 08, 2017 10:57 pm

Raybuntu wrote:@danielfmo: We use our own Kernel for LibreELEC. Can you please open a PR:
https://github.com/LibreELEC/linux-amlogic
It will be reviewed then.


It is DONE :)
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Wed Nov 08, 2017 11:00 pm

Yes I saw. Thank you for your contribution :+1:
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Wed Nov 08, 2017 11:12 pm

Hi @Raybuntu,

Once more I would like to thank you for this LibreELEC community build that works great! At least the experience is really improved comparing to the Hardkernel's Ubuntu image.
Also, by your support and dedication to teach and help us all!

In the coming days I'll setup a dedicated VM to be able cross-compile your LibreELEC, my goal is to be able to compile myself and test the moonlight and hyperion.ng, then (and is here that I would like to have your help) I would like to setup a repository where I would keep these kodi ad-dons available for myself and everyone else that would like to use them.

At the moment I have no idea how to create a kodi repository, do you have any pointers that can help?

Best regards,
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Thu Nov 09, 2017 6:39 am

Look in the LE sources. tools/repo-tool. You can use it to build all addons or you can use scripts/create_addon to build individual addons. LE will create those under target.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby alex240188 » Fri Nov 10, 2017 1:24 am

danielfmo wrote:Regarding moonlight I was able to get it to work by editing the moonlight.sh file as follows:
Code: Select all
...
      echo $MOONLIGHT_ARG >> $ADDON_LOG_FILE

      ### Fix for ODROID C2
      INDEX=$(pactl load-module module-alsa-sink device=hdmi:CARD=AMLM8AUDIO,DEV=0 channels=2)
      echo 0 > /sys/class/video/disable_video
      echo 16 > /sys/module/amvdec_h265/parameters/dynamic_buf_num_margin
      /bin/sh -c "${ADDON_DIR}/bin/moonlight ${MOONLIGHT_ARG} > ${ADDON_LOG_FILE} 2>&1"
      pactl unload-module $INDEX
      ### Fix for ODROID C2

      systemctl start kodi
...



I came to almost the exact same edit as you except for I had
Code: Select all
INDEX=$(pactl load-module module-alsa-sink device=hw:0,1 channels=2)

also tried with
Code: Select all
INDEX=$(pactl load-module module-alsa-sink device=plughw:0,1 channels=2)

Ill try your config tonight

Oh, I did just think of something. I was using hw:0,1 spdif
hw:0,0 i2s did give me playback but it was garbled with aplay
after reading up on pulse that is common that it will be garbled with alsa but not with pulse.
I might also try setting it up as hw:0,0 though I imagine your pactl selection will work fine.
alex240188
 
Posts: 133
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby alex240188 » Fri Nov 10, 2017 4:54 am

Upon further investigation we don't even use pulse audio so we don't need any of that as seen here.
Https://youtu.be/AsqNCBVGgk4

using plughw:0,0 as audio.

A few things to note.
1. Odroid does not recognise Xbox one controller
2. Big picture mode breaks audio
3. Moonlight.script does not use the settings.xml stored in addon.data which gets set from within the add-on.
Instead manually put your settings into settings-default.xml in the main add-on directory.
4. For some reason moonlight forwards CEC to the pc. After the stream is closed CEC no longer works until rebooted.
alex240188
 
Posts: 133
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Fri Nov 10, 2017 6:24 am

Hi,

@Raybunto, as our goal is to make moonlight work in this particular LibreELEC build is that ok for you to discuss it in this thread? Or should we open a new one?

alex240188 wrote:Upon further investigation we don't even use pulse audio so we don't need any of that as seen here.
Https://youtu.be/AsqNCBVGgk4

using plughw:0,0 as audio.


I'm not sure I understood what do mean by "we don't even use pulse audio", can you please share what do you have in your moonlight.sh file?

1. Odroid does not recognise Xbox one controller

Are you using USB or bluetooth to connect it? I only found reference to people having trouble making it work with Bluetooth. I use an wireless xbox 360 and it works flawlessly out of the box.

2. Big picture mode breaks audio

Don't use it personally, but as soon as I can I'll try it myself.

3. Moonlight.script does not use the settings.xml stored in addon.data which gets set from within the add-on.
Instead manually put your settings into settings-default.xml in the main add-on directory.

Did you check the addon source code or you found it by trial and error? I'll try to fork it and fix it for our ODROID :)

4. For some reason moonlight forwards CEC to the pc. After the stream is closed CEC no longer works until rebooted.

And you're able to use the the TV remote to input something into the PC like when on kodi?
I believe that the issue is on TV side, each major brand has it's own implementation of CEC and some works better that others. I own a Samsung and a Phillips TV and on one of them I have the same issue is describe and in the other I don't (don't remember which is which).

Cheers
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby alex240188 » Fri Nov 10, 2017 4:54 pm

Sorry I'm not at home so will have to give brief explanation and attach files later.
Kodi uses ALSA for HDMI audio.
Moonlight also uses ALSA for audio.
The commands related to pactl in the moonlight.sh are setting up the hardware as a pulse audio device which is not needed on LE.
1. I use USB to connect. I will try to investigate that further.

3. Trail and error. Launching from the add-on I noticed that settings was not being applied from what was changed in the add-on. Found the actual used settings at /storage/.kodi/add-ons/moonlight.script/settings-default.xml

4. It's an LG TV. CEC works fine until I launch moonlight.
The CEC device appears to get detected as an input method by moonlight and then forwarded to the PC.
Yes I can control the Game with my TV remote.
After exiting moonlight LE is not able to use the remote again.
Normally as you describe when it stops working I can just change input and the come back and it starts working but in this case I get nothing until reboot.

[EDIT]
See modified moonlight.sh & settings-default.xml below

moonlight.sh
Code: Select all
echo $MOONLIGHT_ARG >> $ADDON_LOG_FILE

### Fix for ODROID C2
echo 0 > /sys/class/video/disable_video
echo 16 > /sys/module/amvdec_h265/parameters/dynamic_buf_num_margin

/bin/sh -c "${ADDON_DIR}/bin/moonlight ${MOONLIGHT_ARG} > ${ADDON_LOG_FILE} 2>&1"
systemctl start kodi


settings-default.xml
Code: Select all
<settings>
    <setting id="MOON_BITRATE" value="20000" />
    <setting id="MOON_FORCEHW" value="true" />
    <setting id="MOON_FRAMERATE" value="60" />
    <setting id="MOON_LOCALAUDIO" value="false" />
    <setting id="MOON_MAPPING" value="dualshock4" />
    <setting id="MOON_NOSOPS" value="false" />
    <setting id="MOON_PACKETSIZE" value="1024" />
    <setting id="MOON_REMOTE" value="false" />
    <setting id="MOON_RESOLUTION" value="1080p" />
    <setting id="MOON_SERVER_IP" value="0.0.0.0" />
    <setting id="MOON_SURROUND" value="false" />
    <setting id="MOON_WIDTH_RESOLUTION" value="1366" />
    <setting id="MOON_HEIGHT_RESOLUTION" value="768" />
    <setting id="MOON_AUDIO" value="plughw:0,0" />
</settings>

value of MOON_AUDIO = plughw:0,0 from below
Code: Select all

OdroidC2:~ # aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: AMLM8AUDIO [AML-M8AUDIO], device 0: I2S.33 dummy-0 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLM8AUDIO [AML-M8AUDIO], device 1: SPDIF.34 dit-hifi-1 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: AMLM8AUDIO [AML-M8AUDIO], device 2: PCM.35 pcm2bt-pcm-2 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Last edited by alex240188 on Fri Nov 10, 2017 6:25 pm, edited 1 time in total.
alex240188
 
Posts: 133
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Fri Nov 10, 2017 5:06 pm

BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Sun Nov 12, 2017 2:38 am

Raybuntu wrote:https://github.com/Raybuntu/LibreELEC.tv/releases/tag/rb-leia15


I did build the hyperion.ng addon myself and I get the following message when starting it:
error while loading shared libraries: libpython3.6.so.1.0: cannot open shared object file: No such file or directory

Any idea how to get Python3? I thought it was already included.

Thank you,
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby HateB » Sun Nov 12, 2017 6:14 pm

I tried some things on my Odroid to make the moonlight finally work but it wasn't exactly a success. Firstly, I updated from Krypton-13 to 19 even if it doesn't matter in this case. Then I edited moonlight.sh as mentioned by danielfmo above. I was able to control the steam big picture with my TV's remote controller but the screen was black just like before. I wasn't sure about the sounds because I didn't actually test them because it wasn't the priority one. Am I forced to use Leia to make it work or is there something I could try? Thanks in advance.
HateB
 
Posts: 20
Joined: Tue Nov 29, 2016 12:51 am
Location: Finland
languages_spoken: English
ODROIDs: Odroid C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Sun Nov 12, 2017 8:47 pm

HateB wrote:I tried some things on my Odroid to make the moonlight finally work but it wasn't exactly a success. Firstly, I updated from Krypton-13 to 19 even if it doesn't matter in this case. Then I edited moonlight.sh as mentioned by danielfmo above. I was able to control the steam big picture with my TV's remote controller but the screen was black just like before. I wasn't sure about the sounds because I didn't actually test them because it wasn't the priority one. Am I forced to use Leia to make it work or is there something I could try? Thanks in advance.


Are you able to connect remotely to your Odroid while you're running moonlight and paste here the output of each of the following commands?

Code: Select all
cat /sys/class/video/axis
cat /sys/class/video/screen_mode
cat /sys/class/video/disable_video
cat /sys/module/amvdec_h265/parameters/dynamic_buf_num_margin


Also, please try with something other then Steam Big Picture.
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Mon Nov 13, 2017 4:26 am

@danielfmo I haven't put much more work in Hyperion.NG for a few weeks. It probably need some fixups.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Mon Nov 13, 2017 5:00 am

Raybuntu wrote:@danielfmo I haven't put much more work in Hyperion.NG for a few weeks. It probably need some fixups.


Thank you for the reply,

EDIT: I'll take another look before saying more nonsense

EDIT2: I took hyperion.ng addon from your depot HERE and it works flawlessly. Just weird that the one that I've built does not work.
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Mon Nov 13, 2017 11:49 pm

Hello,

I'm not myself a retro player but I'm curious, there are a lot of libretro libraries available in RB repository, but I can't figure out how to use then? Don't I need some kind of frontend or GUI to be able to lunch the emulated game from kodi?

Thank you for pointing me in the right direction
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Tue Nov 14, 2017 2:25 am

You need a Konami code for Kodi 18. Just Google it.
About Hyperion.NG. I've updated it some time ago but forgot about it. It used to build before but there were a lot of changes in LibreELEC and it probably needs a fixup.
That's why it is in an old repo.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Tue Nov 14, 2017 7:13 am

Raybuntu wrote:You need a Konami code for Kodi 18. Just Google it.
About Hyperion.NG. I've updated it some time ago but forgot about it. It used to build before but there were a lot of changes in LibreELEC and it probably needs a fixup.
That's why it is in an old repo.
Thank you,

Libreto is working.
The Hyperion.NG that I've build was the same PR version as yours.

With leia15 all add-ons settings menu is not working except on default skin. Any idea?
Image

Enviado do meu SM-G955F através de Tapatalk
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby m1kehunter » Tue Nov 14, 2017 9:48 am

Is anyone having issues syncing their music database when using the Emby add-on? While syncing I receive the following error:

OperationalError
(threading,774,801:librarysync,641,633,728,112,325,497:_CO Such Table: artist)(self.cursor.execute(query,(musicbrainz,))))
m1kehunter
 
Posts: 1
Joined: Tue Nov 14, 2017 9:23 am
languages_spoken: english
ODROIDs: C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby Raybuntu » Wed Nov 15, 2017 5:07 am

@danielfmo: Reboot? I don't understand. If you have an issue in a skin and it's not in Estuary then those skins are not yet compatible with Kodi 18. Ask the Skinner.
@m1kehunter:There is no official emby addon until Kodi 18 reaches RC status so ask the person who hacked a pre release version.
BTC: 13M7sUBpS9uVpo4mzukV9CH8HGg7vDUC7Y
Raybuntu
 
Posts: 1203
Joined: Mon Nov 30, 2015 4:23 pm
languages_spoken: english, german
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby alex240188 » Wed Nov 15, 2017 6:34 am

Sorry to bother again.
I'd like to see if others have this same weird bug.
Brother wanted me to test if his android TV was capable of 4k in kodi so was trying out a test video found here

https://www.google.co.uk/amp/s/www.cnx- ... ttern/amp/

I wondered if anyone could tell me how it plays on your Odroid.
On pc it works spot on.
On android TV it works spot on.
On my c2 it looks ok while paused or having osd up.
But during normal playback it goes mad with scribbles everywhere and what looks like could be metadata visible on screen.
The guy who made the video clearly states something about original.image being called ..blahblah..... 4k Test Image.png before converting that to the video he has attached in mkv format.
I can clearly make out "4k Test Image" amongst the garbage that is not supposed to be part of the video but is appearing on my screen.
Please see attached images

Edit. On 2nd thought the garbage at the lower parts appears to be parts of the main image
Attachments
IMG_20171114_211343.jpg
Mystery Text
IMG_20171114_211343.jpg (1.68 MiB) Viewed 570 times
IMG_20171114_211318.jpg
Looks like this without OSD
IMG_20171114_211318.jpg (1.43 MiB) Viewed 570 times
IMG_20171114_211258.jpg
Supposed to Look Like This
IMG_20171114_211258.jpg (529.11 KiB) Viewed 570 times
alex240188
 
Posts: 133
Joined: Thu Oct 01, 2015 12:46 am
languages_spoken: english
ODROIDs: C1+, C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby HateB » Thu Nov 16, 2017 3:44 pm

danielfmo wrote:Are you able to connect remotely to your Odroid while you're running moonlight and paste here the output of each of the following commands?

Code: Select all
cat /sys/class/video/axis
cat /sys/class/video/screen_mode
cat /sys/class/video/disable_video
cat /sys/module/amvdec_h265/parameters/dynamic_buf_num_margin


Also, please try with something other then Steam Big Picture.


Code: Select all
cat /sys/class/video/axis
0 0 1919 1079
cat /sys/class/video/screen_mode
1:full stretch
cat /sys/class/video/disable_video
1
cat /sys/module/amvdec_h265/parameters/dynamic_buf_num_margin
16
HateB
 
Posts: 20
Joined: Tue Nov 29, 2016 12:51 am
Location: Finland
languages_spoken: English
ODROIDs: Odroid C2

Re: LibreELEC Krypton/Leia/Agile 64bit kernel 32bit libs

Unread postby danielfmo » Thu Nov 16, 2017 10:21 pm

HateB wrote:
Code: Select all
cat /sys/class/video/axis
0 0 1919 1079
cat /sys/class/video/screen_mode
1:full stretch
cat /sys/class/video/disable_video
1
cat /sys/module/amvdec_h265/parameters/dynamic_buf_num_margin
16


Hi,

You didn't apply correctly the fix on moonlight.sh, as /sys/class/video/disable_video is still set to 1.

Please change the moonlight.sh as stated BEFORE and then run:
Code: Select all
systemctl restart script.moonlight

Then retry starting moonlight.
danielfmo
 
Posts: 54
Joined: Tue Mar 28, 2017 6:35 pm
languages_spoken: english
ODROIDs: ODROID-C2

PreviousNext

Return to LibreELEC - Kodi Project for C1/C2

Who is online

Users browsing this forum: No registered users and 1 guest