Kodi Community Forum

Full Version: LibreELEC Testbuilds for RaspberryPi (Kodi 17.0)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm having an issue with one of the satellite HDTV channels - it does not work in Kodi, however I can stream and record it just fine. The recorded .ts is also unplayable in Kodi.

Sample: https://docs.google.com/uc?authuser=0&id...t=download
(2016-08-05, 02:18)smp1 Wrote: [ -> ]I'm having an issue with one of the satellite HDTV channels - it does not work in Kodi, however I can stream and record it just fine. The recorded .ts is also unplayable in Kodi.

Sample: https://docs.google.com/uc?authuser=0&id...t=download

VLC on Windows can't play this file either.
I can play it just fine with VLC on Windows.
(2016-08-05, 02:41)smp1 Wrote: [ -> ]I can play it just fine with VLC on Windows.

Yep sorry, wget must have cocked up the download. Tried downloading a second time and it's playing in VLC now.

Edit: With the sample it's probably easier for popcornmix to download and see the issues for himself, but with MMAL enabled the debug log is full of:
Code:
01:45:52 10035.981445 T:1961377792   DEBUG: CMMALRenderer::RenderUpdate - MMAL: No buffer to update clear:0 flags:0 alpha:255 source:0 omvb:(nil) mmal:(nil)
01:45:52 10036.016602 T:1353560992   DEBUG: Previous line repeats 2 times.
01:45:52 10036.016602 T:1353560992   DEBUG: OutputPicture - dropped in output
01:45:52 10036.033203 T:1961377792   DEBUG: CMMALRenderer::RenderUpdate - MMAL: No buffer to update clear:0 flags:0 alpha:255 source:0 omvb:(nil) mmal:(nil)
01:45:52 10036.057617 T:1353560992   DEBUG: Previous line repeats 1 times.
01:45:52 10036.057617 T:1353560992   DEBUG: OutputPicture - dropped in output
01:45:52 10036.064453 T:1961377792   DEBUG: CMMALRenderer::RenderUpdate - MMAL: No buffer to update clear:0 flags:0 alpha:255 source:0 omvb:(nil) mmal:(nil)
01:45:52 10036.097656 T:1353560992   DEBUG: Previous line repeats 1 times.
01:45:52 10036.097656 T:1353560992   DEBUG: OutputPicture - dropped in output
01:45:52 10036.097656 T:1961377792   DEBUG: CMMALRenderer::RenderUpdate - MMAL: No buffer to update clear:0 flags:0 alpha:255 source:0 omvb:(nil) mmal:(nil)
and there is no video or sound.

The video also doesn't play when OMX is enabled (no log messages with OMX).
(2016-08-05, 02:18)smp1 Wrote: [ -> ]The recorded .ts is also unplayable in Kodi.
Just tested that ts in Win32 build of Kodi and it worked. This looks like an RPi specific issue.
Not sure if this is possible or even if this is the right place. I'm using #0804 but what I'm seeing is not limited to this build - has affected all previous builds that I can recall trying.

Setup: RPi2 --> Marantz NR-1403 --> Sony TV

When playing media from the library audio and video are in sync. When streaming from either YouTube or Amazon then audio and video are also in sync. However, when using PVR (pvr.hts) there is approximately a 200ms delay between them. I can either resolve this by setting the audio delay on the Marantz or by setting the offset in Kodi (has to be changed depending on what I am watching).

If I tell the TV to play via its speakers, rather then those connected to the Marantz, the delay is still there so this coupled with the fact that library items are OK seems to rule out the Marantz as causing a problem.

Is there any setting that I can use in Kodi that will apply the audio offset only to the PVR streams?
(2016-08-05, 12:00)cojms1 Wrote: [ -> ]When playing media from the library audio and video are in sync. When streaming from either YouTube or Amazon then audio and video are also in sync. However, when using PVR (pvr.hts) there is approximately a 200ms delay between them. I can either resolve this by setting the audio delay on the Marantz or by setting the offset in Kodi (has to be changed depending on what I am watching).

If you record a channel that has the audio offset, is the audio in sync in the recording?
Any different with omxplayer enabled/disabled?
(2016-08-05, 12:31)popcornmix Wrote: [ -> ]If you record a channel that has the audio offset, is the audio in sync in the recording?
Any different with omxplayer enabled/disabled?

So, recordings seem fine - in sync (without the 200ms delay that I needed to put in when watching live).
I disabled MMAL and enabled OMX - Live TV is fine.

Is it probably about now that you need a debug log?
(2016-08-05, 13:06)cojms1 Wrote: [ -> ]Is it probably about now that you need a debug log?

It's worth a try.

I'd also try playing with:
adjust display refresh rate to match video
sync playback to display
Adjust PLL
Resample method (gpu/other)
Audio passthrough

And report if changing any of those settings avoids the problem.
(2016-08-05, 02:18)smp1 Wrote: [ -> ]I'm having an issue with one of the satellite HDTV channels - it does not work in Kodi, however I can stream and record it just fine. The recorded .ts is also unplayable in Kodi.

Not sure exactly what we don't like about the stream, but try adding this to ~/.kodi/userdata/advancedsettings.xml:
Code:
<advancedsettings>
    <omx>
        <omxdecodestartwithvalidframe>0</omxdecodestartwithvalidframe>
    </omx>
</advancedsettings>
(2016-08-05, 13:21)popcornmix Wrote: [ -> ]adjust display refresh rate to match video
Was already set to On Start/Stop in order to address an issue I saw previously around jerky video (which was user error).

(2016-08-05, 13:21)popcornmix Wrote: [ -> ]sync playback to display
Disabled - was on this originally
Enabled - caused a jerky ticker on the BBC News HD site.

(2016-08-05, 13:21)popcornmix Wrote: [ -> ]Adjust PLL
Off - was on this originally
Low - no change
Medium - no change
High - no change
Max - no change

(2016-08-05, 13:21)popcornmix Wrote: [ -> ]Resample method (gpu/other)
GPU Accelerated - was on this originally
High - no change
Medium - no change
Low (fast) - no change

(2016-08-05, 13:21)popcornmix Wrote: [ -> ]Audio passthrough
Disabled - was on this originally
Enabled - no change

(2016-08-05, 13:21)popcornmix Wrote: [ -> ]It's worth a try.
Debug log (with Audio and Video component logging): http://sprunge.us/AJUj
Not sure if this is a general Kodi Krypton issue or RPi specific but running #731 I cannot disable the gamepad/joystick. Disabling the addon does nothing (addon says it is disabled), but gamepad is still detected.

Also failing to display many jpeg pictures, kodi.log errors:
20:31:23 8069.547363 T:1874850720 NOTICE: LoadJpeg: unable to load nfs://192.168.1.94/Volumes/USBHD/Pictures/Camera/Local 2016/20160501_121908.jpg
20:31:24 8070.101562 T:1777628064 ERROR: COMXCoreComponent::AllocInputBuffers component(OMX.broadcom.image_decode) - OMX_UseBuffer failed with omx_err(0x80001000)
20:31:24 8070.101562 T:1777628064 ERROR: COMXReEnc::ReEncode nfs://192.168.1.94/Volumes/USBHD/Pictures/Camera/Local 2016/20160605_130106.jpg m_omx_decoder.AllocInputBuf
20:31:24 8070.102051 T:1777628064 ERROR: COMXCoreComponent::SetStateForComponent - OMX.broadcom.image_decode failed with omx_err(0x80001000)
20:31:24 8070.125488 T:1636823968 NOTICE: LoadJpeg: unable to load nfs://192.168.1.94/Volumes/USBHD/Pictures/Camera/Local 2016/20160522_145000.jpg
20:31:25 8071.103027 T:1777628064 ERROR: COMXCoreComponent::WaitForInputDone OMX.broadcom.image_decode wait event timeout


kodi.log http://sprunge.us/hBfZ
(2016-08-05, 13:21)popcornmix Wrote: [ -> ]It's worth a try.

I'd also try playing with:
adjust display refresh rate to match video
sync playback to display
Adjust PLL
Resample method (gpu/other)
Audio passthrough

And report if changing any of those settings avoids the problem.

I think I've identified what is happening. I've tested this on another TV and didn't seen issue there. So it looks like it was particular to the setup I mentioned previously - Pi --> Marantz --> Sony TV.

It appears that the TV causes lag when going through "Bravia Sync" at 50Hz. Since I switched Kodi to adjust the display refresh rate to match video (stopped my jerky video I was seeing) the audio sync seemed to be more pronounced (hence me seeing it now - no idea why it seemed to be more pronounced on PVR, I actually don't think that was the case now). I've added the following into my advancedsettings.xml and now everything seems to be playing nicely - from all sources.

Code:
<advancedsettings>
  <video>
    <latency>
      <default>0</default>
      <refresh>
        <rate>50</rate>
        <delay>200</delay>
      </refresh>
    </latency>
  </video>
</advancedsettings>

Sorry to have bothered you with something that seems to have been very localised to my TV.
(2016-08-05, 13:22)popcornmix Wrote: [ -> ]
(2016-08-05, 02:18)smp1 Wrote: [ -> ]I'm having an issue with one of the satellite HDTV channels - it does not work in Kodi, however I can stream and record it just fine. The recorded .ts is also unplayable in Kodi.

try adding this to ~/.kodi/userdata/advancedsettings.xml:
Code:
<advancedsettings>
    <omx>
        <omxdecodestartwithvalidframe>0</omxdecodestartwithvalidframe>
    </omx>
</advancedsettings>
Yep, this fixed it. It works now.
Quote:Not sure exactly what we don't like about the stream
I get tons of those errors in Tvh log:

2016-08-05 16:38:58.057 parser: transport stream H264, DTS discontinuity. DTS = 12137846, last = 12137847
2016-08-05 16:38:58.225 parser: transport stream H264, DTS discontinuity. DTS = 12155846, last = 12155847
2016-08-05 16:39:05.447 parser: transport stream H264, DTS discontinuity. DTS = 12803845, last = 12803846
2016-08-05 16:39:05.616 parser: transport stream H264, DTS discontinuity. DTS = 12814645, last = 12814646
2016-08-05 16:39:05.808 parser: transport stream H264, DTS discontinuity. DTS = 12836245, last = 12836246
2016-08-05 16:39:05.902 parser: transport stream H264, DTS discontinuity. DTS = 12847045, last = 12847046
2016-08-05 16:39:13.013 parser: transport stream H264, DTS discontinuity. DTS = 13484244, last = 13484245
2016-08-05 16:39:20.333 parser: transport stream H264, DTS discontinuity. DTS = 14146643, last = 14146644
(2016-08-05, 14:41)plinkyplonky Wrote: [ -> ]Not sure if this is a general Kodi Krypton issue or RPi specific but running #731 I cannot disable the gamepad/joystick. Disabling the addon does nothing (addon says it is disabled), but gamepad is still detected.

You mean you're trying to disable the "Joystick Support" (aka peripheral.joystick) addon? "peripheral.joystick" is always enabled in these builds - even though you disable it, the add-on will be re-enabled next time Kodi is started (it's a quirk of these builds).

@plinkplonky can you describe your hardware in a little more detail, what devices do you have connected to your RPi?

I see the joystick errors in your log, it's probably one for @garbear to explain.