Posts by popcornmix
-
-
Hmm. Not too illuminating. Feels like something is busy spinning in VideoPlayer.
But not much(*) appears in debug log.
If you enable component specific debug and enable all categories, do you get anything additional appearing when cpu usage is high?
(*) You've got some jsonrpc messages appearing - are you controlling with a phone app?
-
When running with high cpu can you:
Check with "top" to see which processes are using cpu (probably just kodi.bin, but check if anything else is significant).
In top press H to see which threads are using cpu. That may narrow it down (e.g. LanguageInvoker is python)
"perf top" may give more fine-grained information about functions where cpu is spending time.
Can you post the significant entries for each of these (e.g. anything about 5%). "perf top" averages so wants to be left for at least 10 seconds to get a more accurate value.
-
In previous versions of LE it was possible
Previous kodi used a firmware side driver for audio. The firmware has the ability to split the audio and drive two sinks.
Now, we've moved to an open source arm side driver for hmdi audio (which is better in many respects, including supporting HBR passthrough on Pi4), but the firmware code for splitting audio is not involved.
It could be possible to implement this through other means external to kodi (like pulseaudio), but I don't know how to do that.
-
A debug log may have some clues as to what is happening when you get the lag.
Most likely an addon.
A clean install (either use a spare sdcard or rename /storage/.kodi so kodi doesn't see your current addons and settings) can be used to determine if the issue wasn't present initially. If so the issue can probably be resolved by removing the questionable add-on (or possibly setting).
-
So looking at these docs, how would you go about converting them over if at all?
They should work as described there. Add "video=..." line to cmdline.txt
-
Try swapping the sdcards now. Do the jerks remain with the Samsung?
-
Yes, each of the Pis is hooked up to its own TV.
So can you confirm if the 8GB Pi is the problem or the setup (i.e. swap the two Pi's over and leave sdcard/power supply/cables/TV where they are).
Does the 8GB Pi still have the problem, or is it now with the 4GB Pi?
-
I have two Rpi 4 with Libreelec.10.0.One has 4 Gig and the other 8 Gig Ram.
Do the two Pi's have their own sdcard/cables/power supply/TV connected?
Or are you purely swapping the Pi and using the same sdcard/cables/power supply/TV etc?
-
Working log has:
Code
Display MoreDEBUG <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=vc4hdmi0,DEV=0 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=vc4hdmi0,DEV=0" INFO <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=vc4hdmi0,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x09" DEBUG <general>: CAESinkALSA::InitializeHW - Request: periodSize 9600, bufferSize 38400 DEBUG <general>: CAESinkALSA::InitializeHW - Got: periodSize 9600, bufferSize 38400 DEBUG <general>: CAESinkALSA::InitializeHW - Setting timeout to 200 ms DEBUG <general>: CAESinkALSA::GetChannelLayout - Input Channel Count: 8 Output Channel Count: 8 DEBUG <general>: CAESinkALSA::GetChannelLayout - Requested Layout: RAW, RAW, RAW, RAW, RAW, RAW, RAW, RAW DEBUG <general>: CAESinkALSA::GetChannelLayout - Got Layout: RAW, RAW, RAW, RAW, RAW, RAW, RAW, RAW (ALSA: none) DEBUG <general>: CActiveAESink::OpenSink - ALSA Initialized: DEBUG <general>: Output Device : vc4-hdmi-0 (vc4hdmi0) DEBUG <general>: Sample Rate : 192000 DEBUG <general>: Sample Format : AE_FMT_S16NE DEBUG <general>: Channel Count : 8 DEBUG <general>: Channel Layout: RAW, RAW, RAW, RAW, RAW, RAW, RAW, RAW DEBUG <general>: Frames : 9600 DEBUG <general>: Frame Size : 16
and non-working has:
CodeDEBUG <general>: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=vc4hdmi0,DEV=0 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=vc4hdmi0,DEV=0" INFO <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=vc4hdmi0,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x09" DEBUG <general>: CAESinkALSA::InitializeHW - Request: periodSize 9600, bufferSize 38400 ARNING <general>: CAESinkAlsa::InitializeHW - Using default alsa values - set failed DEBUG <general>: CAESinkALSA::InitializeHW - Could not init a valid sink DEBUG <general>: CActiveAESink::OpenSink - trying to open device ALSA:default
and log file continues with this "could not init a valid sink".
I've just tried and it worked fine for me on latest 10.0.0. My log:
Can I suggest you go to settings/system/audio and "Reset above settings to default", and then just enable "Allow passthrough" and "TrueHD capable receiver". Don't change any other settings in that page. That was enough for TrueHD passthrough to work for me.
-
This issue should be fixed with latest firmware.
-
Can you post on here: RPi4 - kodi 19.0 b1 - Dvd menu highlighting not working with some dvd's · Issue #18898 · xbmc/xbmc · GitHub
I think it's the same issue, but it would be useful if others could confirm the issue is scaling when display resolution differs from gui resolution.
-
I have a theory: My case and my micro-hdmi cable don't seem to be fully compatible (it seems like the connector cannot get fully seated) so the connection sometimes fails.
It's not an Argon One case is it? We see a lot of issues reported with those.
-
If you aren't seeing button presses in debug log then the TV isn't sending them and there is nothing you can do from Kodi's end.
Now it's possible you can do something from the TV's end. Read the manual closely and check all menus carefully.
For example on my Panasonic I can enable extra buttons with a secret remote control code (see here).
That was described in the user manual (but pretty hard to find). If your specific TV doesn't offer that option, then there's nothing that can be done.
-
I have a Panasonic TV and CEC is fine on a Pi4.
Usually when there is a problem with CEC, you should disconnect all HDMI devices from the TV.
Unplug from mains for a few minutes. Power on TV and connect just the Pi4 through hdmi and power it on.
See if that simple setup works. If it does gradually connect other HDMI cables and check if any cause an issue.
If the simple case doesn't work, I'd be suspicious of the hdmi cable. Some cheaper cables don't actually wire up the CEC lines (or they could be faulty).
Also not all HDMI sockets on TV are the same. There may be some (perhaps labelled PC) that don't support CEC. Test with same socket that you've seen working on a Pi0.
-
-
popcornmix The user has video at HDMI-1, but not at HDMI-0.
Ah, in that case I agree. If no picture from HDMI-0 (but HDMI-1 works) on RPiOS, then there's likey a physical problem with HDMI-0 connector.
You should return Pi for a replacement.
The audio issue with Kodi using HDMI-1 is software (only hdmi-0 is supported, and that may be resolved with the LE 10 beta).
But still best to get the faulty Pi replaced.
-
HDMI-0 (closest to the USB-C port) is the primary output for A/V. You shouldn't have deal with config.txt for this. Defective device.
I don't think I've *ever* heard of a defective pi that has working hdmi video and non-working hdmi audio (the physical pins used are the same for audio and video).
The issue if either going to be a configuration issue, or some incompatibility with the specific display.
If you have another hdmi display, please try that.
If you have no hdmi audio on a clean install of RPiOS, then try creating an issue here.