• 1
  • 156
  • 157
  • 158(current)
  • 159
  • 160
  • 168
OpenELEC Testbuilds for RaspberryPi (Kodi 16.0)
Okay, I renamed the .kodi to .kodi.bak and rebooted. I set up pvr.mythtv and the settings for audio and video as I described above, but switched to adjust pll for the audio sync. After less than 1 hour, the video got real jerky and this is what ps shows:
http://sprunge.us/DZZi
As you can see, the lowest kodi.bin pid (444) is being quite the hog, and another thread is not far behind.
And here is a copy of the log file
http://sprunge.us/DPdO

I'm using videoplayer with mmal enabled and the default interlacing

Here is what htop shows during the liveTV playback:

Code:
1  [||||||||||||||||                                         24.0%]     Tasks: 19, 49 thr; 2 running
  2  [|||||                                                     6.2%]     Load average: 1.41 1.36 1.33
  3  [||||||||||||||||||||||||||||||||||||||||||||||||||||||||100.0%]     Uptime: 00:59:08
  4  [||||||                                                    8.2%]
  Mem[||||||||||||||||||||||||||||||||                     181/737MB]
  Swp[                                                         0/0MB]

  PID USER      PRI  NI  VIRT   RES   SHR S CPU% MEM%   TIME+  Command
  444 root       20   0  607M  143M 30900 S 143. 19.4 59:36.63 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  593 root       20   0  607M  143M 30900 R 101. 19.4 33:00.01 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  587 root       20   0  607M  143M 30900 S 26.4 19.4 15:02.07 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  592 root       20   0  607M  143M 30900 S  2.9 19.4  1:48.14 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  449 root       19  -1  607M  143M 30900 S  1.9 19.4  1:01.67 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  450 root       19  -1  607M  143M 30900 S  1.4 19.4  1:03.07 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  884 root       20   0  2868  2020  1752 R  1.4  0.3  0:00.89 /storage/.kodi.bak/addons/debug.tools.htop/bin/htop
  448 root       20   0  607M  143M 30900 S  1.0 19.4  0:46.21 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  591 root       19  -1  607M  143M 30900 S  1.0 19.4  0:35.95 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  454 root       19  -1  607M  143M 30900 S  0.5 19.4  0:12.50 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  462 root       20   0  607M  143M 30900 S  0.5 19.4  0:18.78 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  523 root       21   1  607M  143M 30900 S  0.5 19.4  0:13.15 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  482 root       20   0  607M  143M 30900 S  0.5 19.4  0:08.95 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
  455 root       19  -1  607M  143M 30900 S  0.5 19.4  0:15.87 /usr/lib/kodi/kodi.bin --standalone -fs --lircdev /run/lirc/lircd
F1Help  F2Setup F3SearchF4FilterF5Tree  F6SortByF7Nice -F8Nice +F9Kill  F10Quit

Let me know if I can provide anything else.

EDIT: BTW, OMXPlayer seems to be working again. I don't know if it's because I renamed the directory or because I installed the 1201 build. If it matters, all my recording and live TV rely on MPEG2 decoding. Maybe that's the difference that I have. zaphod24 has a similar setup to me, but he may be using the HDHomerun tuners that stream H.264 whereas mine streams MPEG2 (cheaper model).
Experience: It's what you get when you were expecting something else.
(2015-12-02, 15:06)Milhouse Wrote:
(2015-12-02, 14:46)afremont Wrote: There seems to be some kind of memory leak after an hour or two of watching live TV and memory usage gets up there and so does CPU usage, then it starts dropping frames badly. htop seems to indicate that the main thread is the problem (the one with the lowest pid).

That's a little worrying. Since this is live TV I suppose there are no subtitles? Can you provide a debug log when you start the stream. Which PVR client are you using? Are you able to provide a reproducible (recorded) sample or is it only with live playback?

I can't really provide a sample since it seems to just be a time related thing. Stopping playback and restarting it usually fixes it for a while. I haven't noticed this exact symptom with playing back recordings, but most of the recordings are 30 minutes long or 1 hour at the most. I think everything is okay with my network and my video signal quality. I have gigabit equipment, of course the pi doesn't have a gigabit jack. I have decent network switches and everything else on my network seems to be working as it should.

Here is a debug log where I started the stream using videoplayer (not omxplayer) after having had the problem occur. In between I did try omxplayer, but switched back to videoplayer (mmal) when I enabled the debug logging. I hope this helps. Smile
http://sprunge.us/VjQh
Experience: It's what you get when you were expecting something else.
(2015-12-01, 03:15)doveman2 Wrote: Had an issue just now with #1128 when I tried to play a file an mkv. It got stuck on the busy spinner for about a minute before it eventually gave up and said it couldn't play the file. I then tested by playing a smaller mp4 version of the same episode and then the mkv again, both of which worked fine this time.

The log shows I pressed Select at 01:02:18 and the error message came up at 01:03:40
http://xbmclogs.com/p60uhwfjc

This seems to be a consistent issue with #1128. Almost every other time I try to play a file this happens, then when it eventually times out and I try again it plays fine. Also, when scanning for updates it got stuck on 'Preparing to scan' for ages. I'll try #1201 and see if it's fixed.
(2015-12-02, 17:03)afremont Wrote: I'm using videoplayer with mmal enabled and the default interlacing

Can you confirm if it is a memory leak? e.g. leave it running once it starts stuttering and see if it eventually crashes with out-of-memory reported in dmesg log.

Can you narrow down in what circumstances it occurs?
Does stopping and starting playback resolve the issue? If not does restarting kodi (without rebooting) resolve the issue ("systemctl restart kodi").
Does it occur with recordings?
Does it occur with omxplayer enabled?
Does it occur with deinterlace disabled?
Does it occur with sync playback to display enabled/disabled?
Does it occur with passthrough enabled/disabled?
Is it a new issue? Can you identify the build that first introduced it?
(2015-11-28, 21:36)popcornmix Wrote:
(2015-11-26, 21:28)motorherz Wrote: here it is:
http://workupload.com/file/jysovYCc

Surprisingly your scaler reports 1080i60 as it's preferred hdmi mode. That is surprising for a device that supports 1080p.

Because of that, the DESKTOP mode that kodi boots into will be 1080i60.
That is undesirable as kodi won't switch to progressive modes from an interlaced mode when playing a video.
As such, changing from DESKTOP to 1080p in system/video settings would be recommended.

But, I've tested with your EDID file and various options and I seem to get audio and 3D modes as expected.

I've added an extra logging line that will be in tonight's build. After updating to that, can you:
change from DESKTOP to 1080p in system/video setting
make sure "adjust display refresh rate to match video" is enabled in video/playback settings.
make sure omxplayer is disabled and MMAL is enabled, "support MVC" is enabled and "Use full HD HDMI modes for 3D" is enabled in video/acceleration settings.
Set "playback mode of stereoscopic 3D videos" to "preferred mode" in video/playback settings.

If you get no audio, then post a debug log, and report output of "tvservice -s" whilst video is playing.

Hi Popcornmix,
I updated to 1128-build and I've changed all settings as you adviced. My testvideo: "edge of tomorrow". When playing now, my projector tells me, that 1080p/24fp mode is activated. But no audio. Now I left all adviced settings and went back to DESKTOP, the projector shows: 1080i/60sbs and I have audio.
So, here are the messages from "tvservice -s":

when I play the video with the 1080p setting: (no audio)
state 0x12000a [HDMI CEA (32) 3D FP RGB lim 16:9], 1920x1080 @ 23.98Hz, progressive

when I play the video with the DESKTOP setting: (with audio)
state 0x12000a [HDMI CEA (5) 3D SbS RGB lim 16:9], 1920x1080 @ 60.00Hz, interlaced
equipment:
mediaplayer inputs: Pi2, Oppo BDP-103d (3d, HDMI1.4a)
scaler: Lumagen Radiance XD (3d, HDMI1.2) - scaler manages all inputs and output1 to 3d video and output 2 to preamp
audio: MarkLevinson502/535 (HDMI 1.1 - Multichannel PCM HD audio via HDMI)
3d video: JVC X3
2d video: Pioneer PDP608D (HDMI signal comes from preamp)
(2015-12-02, 22:26)motorherz Wrote: I've changed all settings as you adviced. My testvideo: "edge of tomorrow". When playing now, my projector tells me, that 1080p/24fp mode is activated. But no audio. Now I left all adviced settings and went back to DESKTOP, the projector shows: 1080i/60sbs and I have audio.
So, here are the messages from "tvservice -s":

when I play the video with the 1080p setting: (no audio)
state 0x12000a [HDMI CEA (32) 3D FP RGB lim 16:9], 1920x1080 @ 23.98Hz, progressive

when I play the video with the DESKTOP setting: (with audio)
state 0x12000a [HDMI CEA (5) 3D SbS RGB lim 16:9], 1920x1080 @ 60.00Hz, interlaced

Don't use DESKTOP. Your scaler is wrong in reporting 1080i as its preferred resolution, so you should override that. Set it to 1080p and framerate to 60.
How does it behave if you enable/disable passthrough? With passthrough disabled any different with number of channels set to 5.1 or 2.0?
Any different with omxplayer enabled/disabled?
How does it behave with "Use Full HD modes for 3D" disabled?
New OpenELEC Jarvis build #1202b: RPi / RPi2
(Supercedes previous build)

Code:
# uname -a
Linux rpi512 4.3.0 #1 Thu Dec 3 10:57:14 GMT 2015 armv6l GNU/Linux

# vcgencmd version
Nov 30 2015 20:58:50
Copyright (c) 2012 Broadcom
version 411fa8fd4bbe6a0a4b0c50f09330ce84c1d70b3d (clean) (release)

# lsb_release
OpenELEC (Milhouse) - Version: devel-20151203105624-#1202b-gc5875ae [Build #1202b]

# vcdbg log msg 2>&1 | grep DTOK
001711.860: Kernel trailer DTOK property says yes

# Kernel device tree status: Enabled

Based on tip of OpenELEC master (c5875ae6, changelog) and tip of XBMC master (beaa35dc, changelog) with the following modifications: Build Highlights:
  1. libcec update, switch to p8-platform
  2. #1202b Fix libcec RPi platform detection
Build Details:
  1. XBMC:
    • Fix Missing Art in GetItem when Played from Music Addon. Fixes ticket #15416 (PR:8465, 1 commit, 4 files changed)
    • [skin.confluence] Fix main menu player controls (PR:8462, 1 commit, 1 file changed)
    • [droid] Don't show option "sync playback to display" as it's not supp… (PR:8401, 1 commit, 1 file changed)
    • Fix missing disc number from music file view (PR:8469, 1 commit, 1 file changed)
    • [lang] automatic syntax corrections for the en_GB language file (c4535ff8)
    • [lang] updated language files from Transifex (60b16e48)
    • [lang] updated language files from Transifex for Skin Confluence (7dada8f1)
    • [lang] bump major version of the en_GB language-addon (f14dfa7d)
    • [strings] fix typo (6bcc4db1)
  2. dcadec:
    • Fix frame functions parameter validation. (a724bdec)
  3. libcec:
    • changed: use p8-platform instead of platform (0261e887)
    • switch from libplatform to p8-platform (141caf25)
    • fixed/changed: git-rev.sh script (6cf77a07)
    • changed: more stuff for renaming platform -> p8-platform (b81714fe)
    • clean/fix platform detection (01e1c1d5)
    • renamed PLATFORM namespace to P8PLATFORM (7d210e9b)
    • added: detect dirty trees (3de451fd)
    • added: support for vs2015 to build scripts (4e0fd596)
    • update build scripts for vs2015 and win10uni (a6fa0ed4)
    • bump libplatform (windows) (99e5aa82)
    • fixed: display a nice error message if LibCecSharp failed to load (9984e4b7)
    • fixed: limit the log in cectray to 100k (5bd99901)
    • fixed: open cec-tray minimised if configured. don't open and minimise. issue #158 (58d012ee)
    • cosmetics: persist -> save (dff0cc8f)
    • fixed: query commands in eventghost. fixes #160 (851d77b1)
    • fixed: eventghost demo config (cc167e60)
    • changed/fixed: don't call PowerOnDevices() if no devices to wake have been configured. issue #97 (2f625959)
  4. newclock5:
    • New commits in this build:
      • [shader] - fix compilation of glsl shaders for gles (97457cc6)
      • [input] Add some logging for input device (54c1f25c)
      • [mmalcodec] Remove preroll (01601105)
    • Commits no longer in build:
      • VideoPlayer: rework HandlePlayspeed (2da06c2a)
  5. Additional commits/pull requests/changes not yet merged upstream:
    • Updated: [env] compare: ffmpeg: Bump to 2.8.3; Disable Tearfree & Triple Buffering; Bump Intel video, include completion signal
    • Added: [env] patch: Add p8-platform package
    • #1202b Added: [pkg] patch: Fix libcec RPi platform detection (libcec)
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
(2015-12-02, 22:41)popcornmix Wrote:
(2015-12-02, 22:26)motorherz Wrote: I've changed all settings as you adviced. My testvideo: "edge of tomorrow". When playing now, my projector tells me, that 1080p/24fp mode is activated. But no audio. Now I left all adviced settings and went back to DESKTOP, the projector shows: 1080i/60sbs and I have audio.
So, here are the messages from "tvservice -s":

when I play the video with the 1080p setting: (no audio)
state 0x12000a [HDMI CEA (32) 3D FP RGB lim 16:9], 1920x1080 @ 23.98Hz, progressive

when I play the video with the DESKTOP setting: (with audio)
state 0x12000a [HDMI CEA (5) 3D SbS RGB lim 16:9], 1920x1080 @ 60.00Hz, interlaced

Don't use DESKTOP. Your scaler is wrong in reporting 1080i as its preferred resolution, so you should override that. Set it to 1080p and framerate to 60.
How does it behave if you enable/disable passthrough? With passthrough disabled any different with number of channels set to 5.1 or 2.0?
Any different with omxplayer enabled/disabled?
How does it behave with "Use Full HD modes for 3D" disabled?

I tested all your advices separateley. In all modes I have no audio. In all modes (except the mode below) the projector shows 1080p/24(FP).

when I enable OMXplayer and disable MMAL player and disable "use full HD modes for 3D", my projector tels me 1080p/50(sbs). This must be true, because the screen size is changed smaller. no audio.

Should I try some other combinations with the setting OMXplayer enabled? What do you need?
equipment:
mediaplayer inputs: Pi2, Oppo BDP-103d (3d, HDMI1.4a)
scaler: Lumagen Radiance XD (3d, HDMI1.2) - scaler manages all inputs and output1 to 3d video and output 2 to preamp
audio: MarkLevinson502/535 (HDMI 1.1 - Multichannel PCM HD audio via HDMI)
3d video: JVC X3
2d video: Pioneer PDP608D (HDMI signal comes from preamp)
With 1202 build CEC is not working anymore
(2015-12-03, 00:17)Pienoet Wrote: With 1202 build CEC is not working anymore

Yes. The system/input/peripherals menu is disabled so no cec config.
(2015-12-03, 00:55)popcornmix Wrote:
(2015-12-03, 00:17)Pienoet Wrote: With 1202 build CEC is not working anymore

Yes. The system/input/peripherals menu is disabled so no cec config.

That's to bad and hope it's comming back. it's so easy to navigate with the TV remote so for now went back to yesterday's build and I really don't hope that this will gone in the new final build
(2015-12-03, 08:46)misa Wrote:
(2015-12-03, 00:55)popcornmix Wrote:
(2015-12-03, 00:17)Pienoet Wrote: With 1202 build CEC is not working anymore

Yes. The system/input/peripherals menu is disabled so no cec config.

That's to bad and hope it's comming back. it's so easy to navigate with the TV remote

Grr, scp'ing yesterdays build to my pi2 now bc of this lol
Sorry, looks like RPi platform detection is broken in the libcec build - will have a fix for this evening, one way or the other.

Edit: I did run cursory tests and saw libcec loading in the debug log, but obviously that wasn't enough...
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
I've replaced the last build with #1202b, which has functioning libcec.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
(2015-12-03, 13:44)Milhouse Wrote: I've replaced the last build with #1202b, which has functioning libcec.

Thank for this Milhouse!
  • 1
  • 156
  • 157
  • 158(current)
  • 159
  • 160
  • 168

Logout Mark Read Team Forum Stats Members Help
OpenELEC Testbuilds for RaspberryPi (Kodi 16.0)10