Page 2 of 20

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Tue Apr 12, 2016 4:39 pm
by noggin
OverSun wrote:should work also on my code. the only thing required is to turn off frame rate automation in kernel, it is buggy. the kodi switching works fine.


Ah - so there are two ways of implementing refresh rate switching then? Are they along the lines of :

1. Frame Rate Automation in kernel (which AIUI is a great solution for Android apps like Netflix causing the OS or kernel to switch to 24p, 25p/50p etc. as they play media with different frame rates, without the app needing to know or the user needing to intervene) Effectively this is automatic refresh rate changing at the sub-OS level?

2. OS controlled refresh rate - where the OS changes the output refresh rate. This is how most other platforms work, and how the C1/C1+ does? i.e. Kodi detects the frame rate of video on playback (using ffmpeg I think), then sets the output refresh rate (if configured to do so) to the best frame rate for the content?

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Tue Apr 12, 2016 4:44 pm
by OverSun
Second.
The first one enabled didn't make a difference on C1, on C2 it causes black screen. Without it in the kernel everything works just fine in Kodi.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Tue Apr 12, 2016 4:51 pm
by morpheouss
Is second approach already working? Does it need to be enabled somehow or is enabled by default?

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Tue Apr 12, 2016 5:19 pm
by OverSun
It is working for me flawlessly for C1 for a year or more, and working flawlessly for C2 since commit https://github.com/Owersun/xbmc/commit/ ... 071b75db2f which is 17 days ago as github suggests. It was working even before that, but with some edge cases that could slip into dark screens. Right now I didn't experience any problems and I watched almost everything, 23.9, 24, 25, 29.9 and 30 fps these two weeks.
The process itself is there since C1, the only addition that made a difference for C2 was more precise 4k handling and figuring out the thing that "Frame rate automation" in kernel actually makes it black.

Oh common guys, do I really have to make my own package to show it to the world? We have so good packagers, I thought they figure out what works and what not in days... But for some reason patches that make it out to ELEC builds are becoming more and more looking like dirty workarounds (as it is with passthrough right now and the way Hz change go also).

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Tue Apr 12, 2016 9:39 pm
by toyanucci
OverSun wrote:It is working for me flawlessly for C1 for a year or more, and working flawlessly for C2 since commit https://github.com/Owersun/xbmc/commit/ ... 071b75db2f which is 17 days ago as github suggests. It was working even before that, but with some edge cases that could slip into dark screens. Right now I didn't experience any problems and I watched almost everything, 23.9, 24, 25, 29.9 and 30 fps these two weeks.
The process itself is there since C1, the only addition that made a difference for C2 was more precise 4k handling and figuring out the thing that "Frame rate automation" in kernel actually makes it black.

Oh common guys, do I really have to make my own package to show it to the world? We have so good packagers, I thought they figure out what works and what not in days... But for some reason patches that make it out to ELEC builds are becoming more and more looking like dirty workarounds (as it is with passthrough right now and the way Hz change go also).



Collaborating to fix all the problems would mean solutions could be found sooner with everyone getting their proper credit for their contribution and it sound as though you have a lot you can contribute. I wouldn't call myself non technical, but with respect to this I am not much better than a noob (lol) so I don't have much to contribute but my thanks and words of encouragement.

All that being said, if you have a solution to a problem facing the community, your input is highly appreciated as the frame rate switching is the main issue facing most of us! And thank you to all contributors who have helped to make the C2 realise even part of its full potential because I know it takes a lot of time which could have easily been spent doing something else.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 1:14 am
by noggin
Me similarly. Happy to help - and quite good at breaking things (and can feed back analytically when I do) - and have a good eye for stuff (particularly video decode and deinterlace artefacts)

Looks to me as if there are a few issues with the C2 at the moment in Libre Elec terms:

1. Refresh rate switching (Sounds like oversun may have a solution by not using the Kernel Frame Rate Automation?) (This is also the case in Android)
2. 2160p output (currently the Libre Elec builds seem to be stuck at 1080p - a legacy of C1-basis?) (Android supports 2160p if you manually select it with Android)
3. Interlaced DVDs not deinterlacing (MPEG2 DVD ISOs, VIDEO_TS, VOBs etc.) with native interlaced content are not deinterlaced properly. (Native progressive content can have deinterlacing disabled for 25p stuff) Can software deinterlacing (YADIF 2x) be enabled (apparently there is now some NEON support in ffmpeg to assist ?) if AMLogic don't fix the hardware deinterlace (which is apparently the current problem?)
4. Bitstreaming S/PDIF quality : DD/DTS not available in LibreElec (drop outs in Android)
5. Bitstreaming HD audio : Dolby True HD / DTS-HD MA (currently this isn't available on any ODRoid but it is on the S812 Wetek Core - but only in Android)
6. PCM Multichannel (as above - and useful for AAC 5.1 audio used on terrestrial TV in some regions and for FLAC multichannel rips)
7. IR remote (The built in IR remote currently not enabled - Meson-IR + device tree issue but there are posts that help?)

Not sure what the state of CEC is (Wetek Core now has improved CEC which allows AVR remote audio control AIUI)

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 3:37 am
by wrxtasy
A wee update before hitting the Hay and counting sheep...

Warning, please do a LibreELEC backup before updating as I have had a LOT of issues with Samsung microSDHC cards and this updated v3.14.29 HK Kernel. I'm using the eMMC flash card without any issues.

First please modify the boot.ini to enable HDMI CEC control if you have not done so already:
Code: Select all
mount /flash -o remount,rw
nano boot.ini

Enable HDMI CEC: (remove comment - #)
setenv hdmi_cec "1"

I've hunted down and finally fixed Kodi Dynamic Refresh Rate Switching on the S905 :D
Also thanks to gda and Raybuntu we now have a libCEC compatible patched C2 S905 AML Kernel for HDMI CEC configuring and AVR control within Kodi :D

Still working on true 4K video output and Audio for mainline Kodi, I've tested Oversun's Kodi Jarvis repo, but it breaks PVR Addon's at the moment. Time to cherry pick, as 4K was looking good during my last lot of testing (excluding dynamic refresh switching) after some minor patching for the Kodi GUI and for the 2160p50hz420 and 2160p60hz420 GUI display modes.

WARNING, this version is having Ethernet connectivity issues for those using SD cards only, eMMC no Problems. I'm suspecting a HK Kernel update to be the root cause of the issue.

LibreELEC-Odroid_C2_aarch64-7.0.RSv2-devel.tar
Enjoy!

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 3:54 am
by toyanucci
wrxtasy wrote:A wee update before hitting the Hay and counting sheep...

Warning, please do a LibreELEC backup before updating as I have had a LOT of issues with Samsung microSDHC cards and this updated v3.14.29 HK Kernel. I'm using the eMMC flash card without any issues.

First please modify the boot.ini to enable HDMI CEC control if you have not done so already:
Code: Select all
mount /flash -o remount,rw
nano boot.ini

Enable HDMI CEC: (remove comment - #)
setenv hdmi_cec "1"

I've hunted down and finally fixed Kodi Dynamic Refresh Rate Switching on the S905 :D
Also thanks to gda and Raybuntu we now have a libCEC compatible patched C2 S905 AML Kernel for HDMI CEC configuring and AVR control within Kodi :D

Still working on true 4K video output and Audio for mainline Kodi, I've tested Oversun's Kodi Jarvis repo, but it breaks PVR Addon's at the moment. Time to cherry pick, as 4K was looking good during my last lot of testing (excluding dynamic refresh switching) after some minor patching for the Kodi GUI and for the 2160p50hz420 and 2160p60hz420 GUI display modes.

LibreELEC-Odroid_C2_aarch64-7.0.RS-devel.tar
Enjoy!


Tested this update and frame rate change works! There is one small caviet though...skipping through a video results in the frame rate being reset then set again so even a 10 second skip forward results in a black screen for about half a second then the video resumes. In the grand scheme of things this is indeed minor.

Thanks again for taking the time to get this working!

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 4:16 am
by wrxtasy
If anyone is using microSDHC cards, can you please tell me what brand is working properly, with good stability.
Two Samsung SD cards I have do not work properly and cause all sorts of MMC Kernel log errors. Yet to test Sandisk ones.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 4:54 am
by toyanucci
wrxtasy wrote:If anyone is using microSDHC cards, can you please tell me what brand is working properly, with good stability.
Two Samsung SD cards I have do not work properly and cause all sorts of MMC Kernel log errors. Yet to test Sandisk ones.


I'm using a Samsung 16gb card.

Unfortunately I have developed an issue since the latest update. I had moved the C2 to my living room before the update. I did the update out there and moved it back to my bedroom after testing it and since then the ethernet port has stopped working. The same ethernet cable works fine in my laptop but in the C2 it doesn't even light up anymore. Could the update have caused this?

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 5:08 am
by wrxtasy
Yes I'm finding that occasionally. Just let the C2 power down for about a minute to fully drain power. And then plug in and watch for the Orange Ethernet activity light. Ethernet seems to randomly not power up occasionally when the Kernel starts up.

I've fixed the black screens when skipping thru video as well, download the RSv2 from the link again and update.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 5:09 am
by hanza
tested on 32gb SAMSUNG EVO, no problems
i think Dynamic Refresh Rate if forced on now, even if in settings its disabled.
on channel switching for live tv screen goes blank for 2-3 seconds.
screen wont goes black if hardware acc is disabled, but then videos are in slow motion with h264

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 5:10 am
by toyanucci
I connected a wifi adapter and was able to get that connected. I ssh'd into the C2. See photo attached, ethernet port is not listed as being present :(

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 5:30 am
by chaoskind
Hey, downloaded the Image from 1st Post and the flashed it to my sd, added the https://mega.nz/#!a8NkHBjQ!4P73Vh81Ge6e ... 2ARKkTbIT0 Version to it.

Runs good, but my 4k TV displays everything in a small 1080p window (1/4 of the display) even 4k Movies, is there a version which allows 4k on full display ?

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 6:03 am
by toyanucci
Flashing the original img file fixes the no ethernet problem. I've since updated to the latest build and everything works fine as well. Not sure what caused the ethernet port to stop working...

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 6:25 am
by albanibr


I updated and HDMI-CEC features slow delay.

LAN works fine!

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 7:07 am
by OverSun
wrxtasy wrote:I've tested Oversun's Kodi Jarvis repo, but it breaks PVR Addon's at the moment.


I think this guy viewtopic.php?f=138&t=18771&p=135296&hilit=i483#p135296 found the problem, just not sure how that should be fixed, since I have no idea what PVR is and how it works. but I assume there is a blob lib of some kind.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 11:43 am
by toyanucci
Sadly I moved my C2 back to the living room and the issue has presented itself again. eth0 is not being detected. Gonna set it up again and just leave it in the living room once and for all now that frame rate switching is working.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 5:30 pm
by noggin
OverSun wrote:
wrxtasy wrote:I've tested Oversun's Kodi Jarvis repo, but it breaks PVR Addon's at the moment.


I think this guy viewtopic.php?f=138&t=18771&p=135296&hilit=i483#p135296 found the problem, just not sure how that should be fixed, since I have no idea what PVR is and how it works. but I assume there is a blob lib of some kind.


The PVR add ons are what let us use PVR backends with Kodi. PVR backends are the Live TV servers we use to receive (and in most cases record) digital TV (DVB-T/T2/C/S/S2, ATSC 8VSB/QAM or ISDB-T) The original post is about the VNSI PVR add-on which is one of the PVR add-ons used for the popular VDR TV system (an open source PVR that some people use just as a back-end).

Other popular PVRs are TV Headend, MythTV etc. Judging by the number of posts at Kodi Forums, lots of people use PVR add-ons. Personally I use TV Headend a lot for DVB-T/T2 and Sat>IP DVB-S/S2 duties.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 6:08 pm
by phoenix73
wrxtasy wrote:If anyone is using microSDHC cards, can you please tell me what brand is working properly, with good stability.
Two Samsung SD cards I have do not work properly and cause all sorts of MMC Kernel log errors. Yet to test Sandisk ones.


I don't use Samsung SD cards anymore, especially EVO's, too many issues with Odroid and switched to SanDisk Class 10.

C1 and C2 works fine with :

* SanDisk Extreme 32GB microSDHC UHS-1 http://www.amazon.com/SanDisk-Extreme-microSDHC-Adapter-SDSQXNE-032G-GN6MA/dp/B013CP5HCK

* SanDisk Ultra MicroSDHC 16 Go Classe 10 UHS-I (http://www.amazon.com/SanDisk-Ultra-microSDHC-memory-SDSDQL-016G-G35/dp/B00R7CSHWC)

* SanDisk Ultra MicroSDHC 8 Go Classe 10 UHS-I (http://www.amazon.com/SanDisk-MicroSDHC-Standard-Packaging-SDSDQUAN-008G-G4A/dp/B00M55C0VU)

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 6:56 pm
by noggin
Sure people have seen this - but posting here in case they hadn't : viewtopic.php?f=135&t=20504 Patches to enable the built-in IR receiver to work with LIRC.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 7:22 pm
by wrxtasy
noggin wrote:1. Frame Rate Automation in kernel ...

OverSun wrote: ...on C2 it causes black screen. Without it in the kernel everything works just fine in Kodi.

Yes I agree, looks like a Bug if Frame Rate Automation (Level 1) is left on when Refresh Mode switching and trying to play back Fractional Frame Rate Video (23.976,29.97,59,94fps), then you will end up with a black screen.

https://github.com/hardkernel/linux/blo ... ut.c#L1206

Turn it off and I'm observing a Frame Skip every 41 seconds when playing 23.976fps video at 24Hz.
What is needed is something like Codesnake did for the S812 AML Kernel on the Core:
https://github.com/codesnake/linux-amlo ... 8f9afe765d

I'm no skilled Kernel coder, so will handball this one over to those with detailed knowledge of the AML Kernel.

If Frame rate automation level 2 is used, Automatic Refresh Switching occurs and playback is then in Sync. However Skip around in the video and the Frame Rate Automation process is slow to catch up and causes a short black screen. This is what I will use as a temporary workaround until AML fixes their code along with letting users disable refresh switching completely and just use 60Hz all the time if the tiny black screen issue gets annoying.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 7:24 pm
by wrxtasy
noggin wrote:Sure people have seen this - but posting here in case they hadn't : viewtopic.php?f=135&t=20504 Patches to enable the built-in IR receiver to work with LIRC.

Thanks Noggin, I was hunting around for this just an hour ago... :D

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 7:28 pm
by Veube
noggin wrote:4. Bitstreaming S/PDIF quality : DD/DTS not available in LibreElec (drop outs in Android)


I have DD/DTS passthrough working on LibreELEC with precisely the same issue as the Android build. There are regular dropouts which are more noticeable with DTS than DD. Whilst by no means perfect it is a step forward from mute. Unfortunately the workaround that can be used on Android doesn't work with LibreELEC, if the digital_codec is changed to 2 or 3 there is no sound output.

The changes to get to this stage are quite straight forward. Firstly, 'rate 44100' has to be removed from asound.conf otherwise 48kHz DD/DTS gets routed through ffmpeg by Kodi and it doesn't work.

Next, changes to xbmc/cores/AudioEngine/Sinks/AESinkALSA.cpp to replace the code dealing with setting the buffer and period size. Credit goes to Oversun for these changes. I'm a patch file noob, so I'll just post the code block here and hope someone can patch it into a build properly.

Hopefully this will help make some progress to getting passthrough sorted.

BTW, my build is based on lrusak's fork.

Code: Select all
// backup periodSize and bufferSize first. Restore them after every failed try
  snd_pcm_uframes_t periodSizeTemp, bufferSizeTemp;
  periodSizeTemp = periodSize;
  bufferSizeTemp = bufferSize;

  int dir = 0;

  if (snd_pcm_hw_params_set_period_size_near(m_pcm, hw_params_copy, &periodSize, &dir) != 0
    || snd_pcm_hw_params_set_buffer_size_near(m_pcm, hw_params_copy, &bufferSize) != 0
    || snd_pcm_hw_params(m_pcm, hw_params_copy) != 0)
  {
    bufferSize = bufferSizeTemp;
    periodSize = periodSizeTemp;
    // retry with PeriodSize, bufferSize
    snd_pcm_hw_params_copy(hw_params_copy, hw_params); // restore working copy
    if (snd_pcm_hw_params_set_period_size_near(m_pcm, hw_params_copy, &periodSize, &dir) != 0
      || snd_pcm_hw_params_set_buffer_size_near(m_pcm, hw_params_copy, &bufferSize) != 0
      || snd_pcm_hw_params(m_pcm, hw_params_copy) != 0)
    {
      // try only periodSize
      periodSize = periodSizeTemp;
      snd_pcm_hw_params_copy(hw_params_copy, hw_params); // restore working copy
      if(snd_pcm_hw_params_set_period_size_near(m_pcm, hw_params_copy, &periodSize, &dir) != 0
        || snd_pcm_hw_params(m_pcm, hw_params_copy) != 0)
      {
        // try only BufferSize
        bufferSize = bufferSizeTemp;
        snd_pcm_hw_params_copy(hw_params_copy, hw_params); // restory working copy
        if (snd_pcm_hw_params_set_buffer_size_near(m_pcm, hw_params_copy, &bufferSize) != 0
          || snd_pcm_hw_params(m_pcm, hw_params_copy) != 0)
        {
          // set default that Alsa would choose
          CLog::Log(LOGWARNING, "CAESinkAlsa::IntializeHW - Using default alsa values - set failed");
          if (snd_pcm_hw_params(m_pcm, hw_params) != 0)
          {
            CLog::Log(LOGDEBUG, "CAESinkALSA::InitializeHW - Could not init a valid sink");
            return false;
          }
        }
      }
      // reread values when alsa default was kept
      snd_pcm_get_params(m_pcm, &bufferSize, &periodSize);
    }
  }

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 7:29 pm
by Stephan296
What about the drops of sound i have it also at kodi 16.1 at my intel nuc with Windows 10. After a restart of my nuc it's over.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 7:31 pm
by noggin
Yes I agree, looks like a Bug if Frame Rate Automation (Level 1) is left on when Refresh Mode switching and trying to play back Fractional Frame Rate Video (23.976,29.97,59,94fps), then you will end up with a black screen.
https://github.com/hardkernel/linux/blo ... ut.c#L1206

Looking at that code - do these lines :

Code: Select all
       || (mode == VMODE_4K2K_50HZ)
       || (mode == VMODE_4K2K_50HZ_Y420)
       || (mode == VMODE_4K2K_60HZ)
       || (mode == VMODE_4K2K_60HZ_Y420)

Suggest that non-4:2:0 2160/50p and 60p are also likely to be supported?
(Lines 606-609)

Looks as if there is handling for 4:2:0 and non 4:2:0 (I'd expect 4:2:2 or 4:4:4?) variants of 2160p at 50 and 60Hz

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 7:37 pm
by noggin
Veube wrote:
noggin wrote:4. Bitstreaming S/PDIF quality : DD/DTS not available in LibreElec (drop outs in Android)

I have DD/DTS passthrough working on LibreELEC with precisely the same issue as the Android build. There are regular dropouts which are more noticeable with DTS than DD. Whilst by no means perfect it is a step forward from mute. Unfortunately the workaround that can be used on Android doesn't work with LibreELEC, if the digital_codec is changed to 2 or 3 there is no sound output.


Wonder if the frequency of drop outs is bitrate related? DTS tracks are often at a higher bitrate than DD? That may be why we get more dropouts with DTS than DD? (Or it could be error concealment / correction is better in DD - not sure/don't know)

ISTR when there were HDMI clock issues with the original C1 - which caused audio drop outs (on PCM as well as DD/DTS - so different situation) on AVRs, it was much more of a problem on HDMI modes like 1080/50p and 1080/60p rather than 720/50p, 720/60p or 1080/24p because the 1080/50p&60p modes used twice the HDMI clock rate (so were probably quicker to get 'out of tolerance')

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 8:26 pm
by Veube
noggin wrote:Wonder if the frequency of drop outs is bitrate related? DTS tracks are often at a higher bitrate than DD? That may be why we get more dropouts with DTS than DD? (Or it could be error concealment / correction is better in DD - not sure/don't know)

ISTR when there were HDMI clock issues with the original C1 - which caused audio drop outs (on PCM as well as DD/DTS - so different situation) on AVRs, it was much more of a problem on HDMI modes like 1080/50p and 1080/60p rather than 720/50p, 720/60p or 1080/24p because the 1080/50p&60p modes used twice the HDMI clock rate (so were probably quicker to get 'out of tolerance')


It doesn't look like it's bitrate related. I tried different DTS sources with bitrates at 1536kbps and 768kbps and I tried them with 720/60p resolution and the dropouts are just as bad and at the same frequency. DD dropouts seem less frequent but they're much harder to hear so it could just be that they're there but not noticable. There's nothing in the Kodi debug log which correlates to the dropouts and the fact that this issue can be elimiated on Android with a digital_codec change suggests to me that whatever changes are made to Kodi won't be enough.

What would be useful would be a log of how the audio is handled after it's passed on by Kodi. Does this exist anywhere? Are we simply in the dark here due to lack of docs from Amlogic regarding the S905?

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Wed Apr 13, 2016 9:51 pm
by noggin
Yep - the whole digital HDMI audio bit of the AMLogic kernel seems a bit opaque. Wetek have got somewhere in Android with PCM Multichannel and HD Audio bit streaming on the S812 - but AIUI they had to make changes within Android (not just Kodi) to do this. This is one area that demonstrates the advantage the Pi people have - some of their developers also know the hardware inside out (and wrote the firmware that handles the GPU stuff)

I'm throwing the odd idea out there in case it helps - sadly I'm not clever enough to fix them. (But I do have a broadcast engineering background so can spot things that aren't right quite effectively). Think this helped a bit in diagnosing the original C1 HDMI drop-outs (when Hardkernel were stumped and thought it was related to mains frequency) - but only in a roundabout way...

No ethernet after using WiFi as a test.

Unread postPosted: Fri Apr 15, 2016 7:42 am
by spades
So I flashed the latest tar file and everything was working fine until I tested a wifi dongle on the system.
The wifi worked fine but I didn't need to use it at that location since I was nearby my ethernet connection.
I shut down and unplugged and then replugged the ethernet and now it is not working. No lights on the port at all?
I am a novice at this so I wonder if anyone has any suggestions? I thought about reapplying the update again but am not sure I should do that.
Thanks in advance for any help.

Re: No ethernet after using WiFi as a test.

Unread postPosted: Fri Apr 15, 2016 11:25 am
by toyanucci
spades wrote:So I flashed the latest tar file and everything was working fine until I tested a wifi dongle on the system.
The wifi worked fine but I didn't need to use it at that location since I was nearby my ethernet connection.
I shut down and unplugged and then replugged the ethernet and now it is not working. No lights on the port at all?
I am a novice at this so I wonder if anyone has any suggestions? I thought about reapplying the update again but am not sure I should do that.
Thanks in advance for any help.


Same issue I described earlier. I don't know what it is but when you plug out the ethernet cable it doesn't seem to work after that. Initially like you I was switching between ethernet and wifi when I noticed, but it happened when moving from one wired router to another, and now you're reporting it happens when plugging out ethernet and plugging it back into the exact same cable and port.

The only solution I found was redoing the whole thing. Writing the img file all over again. Updating using the tar after that keeps it working.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 11:57 am
by wrxtasy
Yes I have seen this numerous times now when using SD cards, looks like a Kernel issue with some MMC change HardKernel have plugged into the Kernel itself recently. I going to revert a few things and keep testing.

I'm wondering if I should withdraw the previous .tar update until I get a stable Ethernet connection on SD card setups ?
If using a eMMC Flash card I have no such problems.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 12:20 pm
by fatalsaint
wrxtasy wrote:If using a eMMC Flash card I have no such problems.

I received this problem using eMMC flash.

It was after couple days of using the new image, and I never disconnected the ethernet. It just decided to die.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 2:05 pm
by wrxtasy
Good news is I've traced the Kernel commit culprit and reverted that. All my SD cards are stable again and Ethernet is working properly.

A new Image and .tar to go up shortly on Page #1 :)

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 5:00 pm
by gdachs
wrxtasy wrote:- Full Pulse8 libCEC HDMI CEC compatibility with Kodi thanks to gdach's and Raybuntu great work.

It is gdachs, not gdach ;).

Gerald

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 5:37 pm
by Dez
wrxtasy wrote:A new Image and .tar to go up shortly on Page #1 :)


Thanks!
Great to see more progress. :)

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 9:29 pm
by noggin
Good work wrxtasy!

I'm running LibreELEC 6.95.6 - Kodi Jarvis 16.1rc3 NEW: 15.Apr.16 on my C2 from eMMC.

2160/50p and 2160/59.94p content is playing well in 2160p on my Sony UHD. 3 CPUs around 10%, 1 CPU occasionally hitting 40 or up to 65/70% at times when the Codec OSD is on.

What I did notice is that when I had the C2 routed through my Onkyo AVR (which is limited to 1080p input resolutions via HDMI 1.4b) the 2160/59.94p was downscaled to 1080p and jerky.

The Hardkernel IR remote is working though pretty sluggish.

As others have stated - no DD/DTS passthrough.

Amazing that we can do this on such a low cost box. Still definitely a WIP - but a good WIP.

*** EDIT : Update. When watching 576/50i MPEG2 or 1080/50i H264 Live TV output at 2160p I don't get deinterlacing to 50p (it looks like it is being deinterlaced to 25p rather than not being deinterlaced as there is no combing on native 50i content - just 25p rather than 50p motion. You probably won't notice this on 25p native content like drama and most documentary, but you certainly see it on Sport, News, Entertainment etc. content, and it failed my usual BBC News Channel ticker test :-) ). This is the case after a reboot - not just after watching 2160p native content. If I switch the System Video Setting to 1080/50p output I get proper deinterlacing of both 50i formats.

720/50p H264 recorded content plays fine output at 2160/50p (though the upscaling is quite basic - what algorithm is the S905/LibreElec using?) so it looks to be a deinterlacing issue?

AVR remote control of my Onkyo volume level is working well. CEC implementation a huge improvement.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 9:32 pm
by ecab21
Thanks for your hard work.
The passthrough still doesn't work.
HDMI CEC is crazy, my tv remote doesn't work now, in the firt image worked without problem.
The remote control that I bought along with de OC2 works now, just apears to be a little slow.
Any idea what is my problem?

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 10:22 pm
by Pienoet
Thanks wrxtasy for your hardwork!

What are the right settings for pulse8 cec adapter cause it connect in kodi but my tv remote isn't working at all..
After disconnecting p8 cec adapter and reboot there is no cec at all!

So if there is full supprt for p8 cec adapter pls can you tell me how to use this?

Thanks!

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 11:02 pm
by gdachs
ecab21 wrote:HDMI CEC is crazy, my tv remote doesn't work now, in the firt image worked without problem.
Any idea what is my problem?

Provide a log:
Code: Select all
journalctl | pastebinit

Disconnect all devices from power and try again to rescan the cec devices.

Gerald

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 11:08 pm
by gdachs
Pienoet wrote:After disconnecting p8 cec adapter and reboot there is no cec at all!

See my previous post.
Pienoet wrote:So if there is full supprt for p8 cec adapter pls can you tell me how to use this?

There is no support for this adapter at all, as it will conflict with the driver I wrote.
When wrxtasy wrote p8 cec adapter he has meant my kernel driver, not this little external box.

Gerald

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 11:33 pm
by morpheouss
Downloaded image from 1st post and .... my mouse is no longer working ;(
Cannot do anything, so stopped testing at this point.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Fri Apr 15, 2016 11:56 pm
by gdachs
morpheouss wrote:Downloaded image from 1st post and .... my mouse is no longer working ;(
Cannot do anything, so stopped testing at this point.

Look at this Post.

Gerald

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Sat Apr 16, 2016 12:03 am
by morpheouss
How to enable it w/o mouse? :)
I will alrady say, that I dont have a keyboard - I work on notebook, so I dont need an external keyboard :P

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Sat Apr 16, 2016 12:35 am
by Veube
Pulled the latest from lrusak's C2 branch this morning and recompiled with the changes I made in my previous post and DD passthrough is working without any issues. DTS still has dropouts, however.

Something changed in the kernel?

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Sat Apr 16, 2016 12:43 am
by Alien0
Update for me was successful - C2 with emmc card, no attached devices, on samsung tv
Hdmi-cec working great now, way better than before, the context menu button on tv remote works now.
Navigating the GUI is smooth, just like RPi 3
Can't comment on any 4k or 2160 playback...

Thanks wrxtasy....now to sort out the high temperature when kodi is idle :)

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Sat Apr 16, 2016 1:51 am
by noggin
Few more observations - particularly wrt to SD TV content (streamed by TV Headend)

1. When I change to a 16:9 SD MPEG2 channel, there is a strange aspect ratio artefact. When I switch to BBC News Channel SD (704x576 16:9 SD MPEG2) it displays video - but initially it is pillarboxed (i.e. black bars left and right and squashed video each side), and then jumps to full-screen. (Never seen other platforms do this) If I switch to BBC Parliament SD (544x576 16:9 SD MPEG2) it does the same, but the video is even more squashed and the black bars either side are wider. It looks like the video is initially being scaled as square (i.e. 1:1 aspect ratio) pixels - and then the pixel aspect ratio from the signal is used to correctly 'stretch' the video horizontally.

2. When I change to a 16:9 SD H264 channel (544x576/50i 166:9 SD H264 Al Jazeera Arabic for example), it sticks in the initial pillarboxed mode and never stretches to 16:9 full-width. (It's like it's ignoring the pixel aspect ratio information from the incoming signal?) It does the same on Film4+1 SD (also 544x576/50i 16:9 SD H264). I have what appears to be a 544x576 squashed into the centre 544 samples of a 1024x576 image scaled to 1920x1080 (i.e. a half-width image with quarter width black bars each side)

My gut feeling is that at some point the source video is treated as square pixels for some reason - so 576i video is rendered initially as if it is 1024x576 (i.e. 1:1 square pixels for 702x576) or (1050x576 which is the slightly wider aspect ratio used for square pixel 720x576) So when you switch to a 704x576 channel it is displayed as if it is the central 704 pixels in a 1024 pixel 16:9 image, and if you switch to a 544x576 channel it's the middle 544x576 pixels in the 1024x576 frame. With MPEG2 content the pixel aspect ratio is then followed and the image stretched. For H264 it isn't and it sticks in pillarbox 1:1 aspect ratio..

I am in View Mode Normal in Kodi's video settings. I can force the video to 16:9 mode by changing this setting, but I shouldn't have to.

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Sat Apr 16, 2016 2:08 am
by mentin
Got same CEC Problems after upgrade like the other guy.

My LG dont see any CEC Connection. With the first image it works. But slowly ;)

And got Access denied when i try to connect via SSH

Password is the same like first Version???

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Sat Apr 16, 2016 2:21 am
by Alien0
mentin wrote:Got same CEC Problems after upgrade like the other guy.

My LG dont see any CEC Connection. With the first image it works. But slowly ;)

And got Access denied when i try to connect via SSH

Password is the same like first Version???


password is le now [read first page]
To get cec to work press tools on tv remote and choose from device list

Re: LibreELEC 7.0.0 - Kodi Jarvis 16.1

Unread postPosted: Sat Apr 16, 2016 3:00 am
by ConteZero
I've some troubles with Samsung U24E850 (model "LU24E85KRS/EN" http://downloadcenter.samsung.com/conte ... 2B-Eng.pdf ).
3840x2160 is shown but C2 refuses to switch to everything above 1080p, it shows 3840x2160 alright but real resolution (as seen from "info" submenu) is 1920x1080.

Nevermind, I'll try again again with the latest beta.

Done: Now's working as intended.