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.
Hi,
since I don´t have time to read all the posts and I stuck at goggeling my problem:

I have a new RaspPi3 which I want to run with the newest Libreelec. Now I installed it, but I wanted my USB-Stick to handle the STORAGE section. On Openelec this was a easy thing, just one line in cmdline.txt and the STORAGE was mounted correctly... Now I am struggeling with it for hours.. Can anyone help me?
(2016-10-12, 15:43)zaphod24 Wrote: [ -> ]
(2016-10-12, 14:53)pyrodex Wrote: [ -> ]Something isn't right with the latest release (#1011) when playing recorded shows or live TV via pvr.mythtv. The video starts and you will hear sound but the video is stuck on one frame and when I look at kodi.log I see the following loop over and over. Eventually the audio will restart but the video is still on the same frame and then the audio will cut out and the same error below loops. As always a debug log is below as well.

UPDATE: Just tried it on #1010 and it works as expected.

Code:
08:49:32  99.159462 T:1405092768   ERROR: CMMALPool::GetBuffer - failed pool:0x73c25ea0 omvb:(nil) mmal:(nil) timeout:500
08:49:32  99.159576 T:1405092768   ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time
08:49:32  99.160690 T:1405092768   ERROR: ffmpeg[53C003A0]: [mpeg2video] get_buffer() failed
08:49:32  99.160751 T:1405092768   ERROR: ffmpeg[53C003A0]: [mpeg2video] thread_get_buffer() failed
08:49:32  99.160797 T:1405092768   ERROR: ffmpeg[53C003A0]: [mpeg2video] get_buffer() failed (-1 (nil))
08:49:32  99.160858 T:1405092768   ERROR: Decode - avcodec_decode_video returned failure
08:49:32  99.160912 T:1405092768   DEBUG: CVideoPlayerVideo - video decoder returned error

http://sprunge.us/TAYe

I'm not seeing that with my setup. I have 2 RPi3 devices, one hooked to an lcd tv by hdmi and the other to an old crt tv using composite. From the logs, it looks like your recorded content is MPEG2. Mine is as well. I'm actually using an HDHomeRun Prime device with MythTV to tune and record my cable provider's content. I don't know that I looked at 720p recordings last night but I definitely watched some 1080i after updating.

I would blame my setup but works fine in 1010 but not 1011 and with an OLD recording I already watch nonetheless.
(2016-10-12, 21:20)pyrodex Wrote: [ -> ]I would blame my setup but works fine in 1010 but not 1011 and with an OLD recording I already watch nonetheless.

Hrm... I wonder if we have a difference in content or in items in config.txt. Can you post a mediainfo on the recording that is failing and also your config.txt? It might also be helpful to upload a small sample somewhere for others to test.
(2016-10-12, 19:35)maskedrider Wrote: [ -> ]Hi,
since I don´t have time to read all the posts and I stuck at goggeling my problem:

I have a new RaspPi3 which I want to run with the newest Libreelec. Now I installed it, but I wanted my USB-Stick to handle the STORAGE section. On Openelec this was a easy thing, just one line in cmdline.txt and the STORAGE was mounted correctly... Now I am struggeling with it for hours.. Can anyone help me?

Suspect this isn't going to be specific to these test builds, please start a separate thread.
New LibreELEC.tv Krypton build #1012: RPi / RPi2
(Supercedes previous build)

Code:
# uname -a
Linux rpi512 4.8.1 #1 Wed Oct 12 23:07:10 BST 2016 armv6l GNU/Linux

# vcgencmd version
Oct 11 2016 15:51:55
Copyright (c) 2012 Broadcom
version f911c71d4af710b1eb459ff1b4c13b471889025e (clean) (release)

# lsb_release
LibreELEC (Milhouse) - Version: devel-20161012230609-#1012-g6e1e08e [Build #1012]

Based on tip of LibreELEC.tv master (6e1e08ef, changelog) and tip of XBMC master (1be6e992, changelog) with the following modifications: Build Highlights:
  1. peripheral.joystick fixes
  2. VideoPlayer CDVDMessageQueue and first frame of new stream fixes
Build Details:
  1. LibreELEC.tv:
    • xf86-video-intel: enable dri3 and make it default (PR:800, 1 commit, 1 file changed)
    • Network: smb & ntfs config mods (PR:807, 2 commits, 2 files changed)
    • Indentation fix for options file in i.MX6 project. (PR:827, 1 commit, 1 file changed)
    • xf86-video-nvidia: update to 367.57 (PR:828, 1 commit, 2 files changed)
    • libnfs: update to 1.11.0 (PR:826, 1 commit, 1 file changed)
    • libdrm: update to libdrm-2.4.71 (PR:812, 1 commit, 1 file changed)
    • path: remove regex dependency when processing packages (PR:810, 1 commit, 1 file changed)
    • scripts/build: no need to setup toolchain twice and before really building (PR:813, 1 commit, 1 file changed)
  2. XBMC:
    • Album is compilation and last played rules and fix missing sort orders in smart playlists (PR:10618, 3 commits, 7 files changed)
    • [MediaSettings] - fixed loading interlacemode_none from defaultsettings (PR:10677, 1 commit, 1 file changed)
    • [PVR] Fix: activate/deactivate read-only timer (PR:10686, 1 commit, 1 file changed)
    • VideoPlayer: fix relative seeks (PR:10674, 2 commits, 2 files changed)
    • [AE/OsxSink] fix 16bit ne passthrough when there is no dedicated encoded stream (PR:10680, 3 commits, 3 files changed)
    • [gui] cleanup: remove checkmark control leftovers (PR:10692, 1 commit, 2 files changed)
    • [android] update readme for compiling with NDK 12b and SDK21 (PR:10685, 1 commit, 1 file changed)
  3. peripheral.joystick:
    • Remove SDL driver (PR:56, 1 commit, 6 files changed)
    • Remove unused strings.po file (8f0bf96c)
    • [buttonmaps/linux] Fixups (1c7a48a2)
    • [buttonmaps] Fix default genesis controller mapping (4faefa0b)
    • Demote log level to debug (cbcf1572)
    • [cosmetic] Improve documentation in Settings.h (29e7e3c7)
    • Fix return type in AnomalousTrigger.h (8a88254f)
    • [cosmetic] Add whitespace (180f28cc)
  4. newclock5:
    • New commits in this build:
      • Define RPI=1 so we can use VPU/QPU acceleration patches when building ffmpeg via autobuild.sh (920f2965)
      • VideoPlayer: fix CDVDMessageQueue::WaitUntilEmpty (d4d42fad)
      • VideoPlayer: make sure first frame of a new stream is displayed without delay, signal started when frame is picked for render (8dd11f53)
      • squash: VideoPlayer: fix CDVDMessageQueue::WaitUntilEmpty (d1c1e64f)
    • Commits no longer in build:
      • VideoPlayer: pass parameters for seek mode in a structure (1fed6b70)
      • VideoPlayer: do not block caller on relative seeks (e3407e95)
      • squash: VideoPlayer: pass parameters for seek mode in a structure (459aebfc)
  5. kernel 4.8.y:
    • New commits in this build:
      • mmc: info (not err) msg on clock probe deferral (5b7970b1)
  6. Additional commits/pull requests/changes not yet merged upstream:
    • Added: [pkg] PR:10688: added: include watched status for movies in actor search dialog
(2016-10-12, 21:20)pyrodex Wrote: [ -> ]
(2016-10-12, 15:43)zaphod24 Wrote: [ -> ]
(2016-10-12, 14:53)pyrodex Wrote: [ -> ]Something isn't right with the latest release (#1011) when playing recorded shows or live TV via pvr.mythtv. The video starts and you will hear sound but the video is stuck on one frame and when I look at kodi.log I see the following loop over and over. Eventually the audio will restart but the video is still on the same frame and then the audio will cut out and the same error below loops. As always a debug log is below as well.

UPDATE: Just tried it on #1010 and it works as expected.

Code:
08:49:32  99.159462 T:1405092768   ERROR: CMMALPool::GetBuffer - failed pool:0x73c25ea0 omvb:(nil) mmal:(nil) timeout:500
08:49:32  99.159576 T:1405092768   ERROR: CDecoder::FFGetBuffer Failed to allocated buffer in time
08:49:32  99.160690 T:1405092768   ERROR: ffmpeg[53C003A0]: [mpeg2video] get_buffer() failed
08:49:32  99.160751 T:1405092768   ERROR: ffmpeg[53C003A0]: [mpeg2video] thread_get_buffer() failed
08:49:32  99.160797 T:1405092768   ERROR: ffmpeg[53C003A0]: [mpeg2video] get_buffer() failed (-1 (nil))
08:49:32  99.160858 T:1405092768   ERROR: Decode - avcodec_decode_video returned failure
08:49:32  99.160912 T:1405092768   DEBUG: CVideoPlayerVideo - video decoder returned error

http://sprunge.us/TAYe

I'm not seeing that with my setup. I have 2 RPi3 devices, one hooked to an lcd tv by hdmi and the other to an old crt tv using composite. From the logs, it looks like your recorded content is MPEG2. Mine is as well. I'm actually using an HDHomeRun Prime device with MythTV to tune and record my cable provider's content. I don't know that I looked at 720p recordings last night but I definitely watched some 1080i after updating.

I would blame my setup but works fine in 1010 but not 1011 and with an OLD recording I already watch nonetheless.

I can confirm that i also have the same issue with 1011.
(2016-10-12, 21:20)pyrodex Wrote: [ -> ]I would blame my setup but works fine in 1010 but not 1011 and with an OLD recording I already watch nonetheless.

(2016-10-13, 12:09)deaddox Wrote: [ -> ]I can confirm that i also have the same issue with 1011.

I assume you are both playing MPEG-2 without an MPEG-2 codec licence? (Should work, but may explain why some users aren't seeing an issue)
Does this fail when playing a recording from the files menu? If so a sample would be useful.
Can you try copying firmware (start.elf/fixup.dat from build #1010 onto build #1011) to see if that works?
(2016-10-13, 12:09)deaddox Wrote: [ -> ]I can confirm that i also have the same issue with 1011.

And 1012.
Kodi freezing TV,
http://sprunge.us/dATF

Even `systemctl restart kodi` doesn't work, Kodi is not restarting.
http://sprunge.us/ijAV
(2016-10-13, 13:30)ElectricPim Wrote: [ -> ]
(2016-10-13, 12:09)deaddox Wrote: [ -> ]I can confirm that i also have the same issue with 1011.

And 1012.
Kodi freezing TV,
http://sprunge.us/dATF

Even `systemctl restart kodi` doesn't work, Kodi is not restarting.
http://sprunge.us/ijAV
Yes, this is reproducible with mpeg2 material when the mpeg2 codec licence is not installed.

I originally had both OMX and MMAL enabled, but disabling OMX (leaving MMAL enabled) made no difference - Kodi still hangs.

@popcornmix I copied the firmware (bootcode.bin, fixup.dat, start.elf bcm2710-rpi-3-b.dtb) from #1010 and Kodi from #1012 no longer hangs, the mpeg2 video plays perfectly.

(I needed to copy bcm2710-rpi-3-b.dtb from #1010 because of https://github.com/raspberrypi/linux/com...6fdbc10fbe - Kodi would crash without it).
(2016-10-13, 13:14)popcornmix Wrote: [ -> ]
(2016-10-12, 21:20)pyrodex Wrote: [ -> ]I would blame my setup but works fine in 1010 but not 1011 and with an OLD recording I already watch nonetheless.

(2016-10-13, 12:09)deaddox Wrote: [ -> ]I can confirm that i also have the same issue with 1011.

I assume you are both playing MPEG-2 without an MPEG-2 codec licence? (Should work, but may explain why some users aren't seeing an issue)
Does this fail when playing a recording from the files menu? If so a sample would be useful.
Can you try copying firmware (start.elf/fixup.dat from build #1010 onto build #1011) to see if that works?

On my RPI3's you are correct with that assumption and yes I have the same experience when watching LiveTV and recordings. I am in the process of uploading the recording to a site for downloading and will try the fixup.dat tonight when I get home on 1012. For the time being here is the mediainfo of any of the numerous recordings, which is all, having the problem.

UPDATE: You can grab the file at http://richie.thecrewsfamily.com/1808_20161008210000.ts

Code:
General
ID                                       : 23502 (0x5BCE)
Complete name                            : 1808_20161008210000.ts
Format                                   : MPEG-TS
File size                                : 1.69 GiB
Duration                                 : 29mn 59s
Overall bit rate mode                    : Variable
Overall bit rate                         : 8 083 Kbps
Law rating                               : TV-G

Video
ID                                       : 1745 (0x6D1)
Menu ID                                  : 1 (0x1)
Format                                   : MPEG Video
Format version                           : Version 2
Format profile                           : [email protected]
Format settings, BVOP                    : Yes
Format settings, Matrix                  : Default
Format settings, GOP                     : Variable
Format settings, picture structure       : Frame
Codec ID                                 : 2
Duration                                 : 29mn 59s
Bit rate mode                            : Variable
Bit rate                                 : 7 296 Kbps
Maximum bit rate                         : 20.0 Mbps
Width                                    : 1 920 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 16:9
Active Format Description                : Full frame 16:9 image
Frame rate                               : 29.970 (30000/1001) fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Interlaced
Scan order                               : Top Field First
Compression mode                         : Lossy
Bits/(Pixel*Frame)                       : 0.117
Stream size                              : 1.53 GiB (90%)
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 1746 (0x6D2)
Menu ID                                  : 1 (0x1)
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : 129
Duration                                 : 29mn 59s
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Frame rate                               : 31.250 fps (1536 spf)
Compression mode                         : Lossy
Delay relative to video                  : -644ms
Stream size                              : 82.4 MiB (5%)
Language                                 : English

Text #1
ID                                       : 1745 (0x6D1)-CC1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 29mn 59s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #2
ID                                       : 1745 (0x6D1)-1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-708
Muxing mode                              : A/53 / DTVCC Transport
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 29mn 59s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)

Text #3
ID                                       : 1745 (0x6D1)-CC1
Menu ID                                  : 1 (0x1)
Format                                   : EIA-608
Muxing mode                              : SCTE 20
Muxing mode, more info                   : Muxed in Video #1
Duration                                 : 29mn 59s
Bit rate mode                            : Constant
Stream size                              : 0.00 Byte (0%)
(2016-10-13, 14:37)Milhouse Wrote: [ -> ]Yes, this is reproducible with mpeg2 material when the mpeg2 codec licence is not installed.

Yes can reproduce. Will investigate.
BTW. IMHO MAC addresses should not be be written into logfiles.
Or is it needed?
(2016-10-13, 17:16)ElectricPim Wrote: [ -> ]BTW. IMHO MAC addresses should not be be written into logfiles.
Or is it needed?

MAC addresses are of little use to anyone not on your network, just as non-routable IP addresses (ie. 192.168.x.x, 10.x.x.x etc.) are not important and can generally be disclosed without any fear. My RPi3 has IP address 192.168.0.18 - nobody can do anything with that.
(2016-10-13, 17:26)Milhouse Wrote: [ -> ]
(2016-10-13, 17:16)ElectricPim Wrote: [ -> ]BTW. IMHO MAC addresses should not be be written into logfiles.
Or is it needed?

MAC addresses are of little use to anyone not on your network, just as non-routable IP addresses (ie. 192.168.x.x, 10.x.x.x etc.) are not important and can generally be disclosed without any fear. My RPi3 has IP address 192.168.0.18 - nobody can do anything with that.

A MAC address is hard coded in hardware and unique and could be used to identify devices (and persons, think of phones). (Yes they the can be spoofed)
Completely different then local ip-addresses.
Put on your tin foil hat and stop worrying about it... Smile