Page 1 of 1
Bookworm & Kodi 20.0 problem. (SOLVED)
Posted: Sat Aug 13, 2022 6:40 pm
by soniabu
installed Kodi with Synaptic Bookworm
details: https://fastupload.io/en/GSX8gALzLBjhuDy/file
I have installed a RaiPlay addon to validate its functioning; in addition also a film mp4.
In both cases, as shown in the image, the video always appears green but the sound of the transmission is heard.
After this test I launched Kodi 19.0 AppImage and the behavior was the same: no video, yes sound.
Keep in mind that Kodi matrix 19 AppImage worked fine a few days ago.
So I believe there has been an update (upgrade / update) of the Bookworm which causes this.
Kodi screenshot:
sonia
Re: Bookworm & Kodi 20.0 problem.
Posted: Sun Aug 14, 2022 10:05 am
by fredx181
Hi Sonia, well, I can only say that I just tested playing some different video formats (mkv, mp4) in Kodi and display is OK for me, so I don't know.
If you play same video with other media player (e.g. mpv) and you've got a green screen too, it's probably not having to do with Kodi.
You may want to try starting fresh with Kodi by deleting /root/.kodi and see how it goes then.
EDIT: Did a bit searching on the web and found that disabling hardware acceleration could help:
How do I disable hardware acceleration on Kodi?
Open Player Settings. You will see a gear icon at the bottom left with the word Basic or Standard next to it. Toggle through the options and set it to Expert. Now under the Video settings, scroll down to “Allow hardware acceleration” and disable it (or both in the case of the Android app).
EDIT2: Mmmm.. Searched in kodi 20 for this setting but couldn't find it.
Re: Bookworm & Kodi 20.0 problem.
Posted: Sun Aug 14, 2022 6:44 pm
by soniabu
fredx181 wrote: Sun Aug 14, 2022 10:05 am
Hi Sonia, well, I can only say that I just tested playing some different video formats (mkv, mp4) in Kodi and display is OK for me, so I don't know.
If you play same video with other media player (e.g. mpv) and you've got a green screen too, it's probably not having to do with Kodi.
You may want to try starting fresh with Kodi by deleting /root/.kodi and see how it goes then.
EDIT: Did a bit searching on the web and found that disabling hardware acceleration could help:
How do I disable hardware acceleration on Kodi?
Open Player Settings. You will see a gear icon at the bottom left with the word Basic or Standard next to it. Toggle through the options and set it to Expert. Now under the Video settings, scroll down to “Allow hardware acceleration” and disable it (or both in the case of the Android app).
EDIT2: Mmmm.. Searched in kodi 20 for this setting but couldn't find it.
nothing to do Fred, always a beautiful emerald green.
mp4 is valid as I have seen it with mpv
Luckily for the moment we make up for it with the alsamixer amplifier; maybe at the next update / upgrade Kodi is okay.
What is strange is that Kodi 19.0 AppImage also has the same behavior and therefore I am led to think that the anomaly must be a component of Bookworm.
Thanks anyway Fred, for your verification.
Re: Bookworm & Kodi 20.0 problem.
Posted: Sun Aug 14, 2022 9:14 pm
by williams2
A green screen reminds me of mplayer from 10 or 15 years ago.
What video driver are you using?
If you are using Xorg, as opposed to Wayland, the most reliable way to see what video driver you are using is to type in a terminal:
tail /var/log/Xorg.0.log
What happens if you run mpv with the x11 codec and with the xv codec? Like this:
Code: Select all
mpv -vo x11 movie.mp4
mpv -vo xv movie.mp4
The x11 video codec should have no hardware acceleration, so there should not be a green background. The x11 codec is very slow and the cpu does most of the work that the video card should be doing.
The xv codec should work if the video card driver supports 2d acceleration. Vesa probably does not support 2d acceleration.
To see what video codecs are available, you can type:
mpv -vo help
Re reading your posts, I think you are saying mpv works but Kodi does not work.
I think you can disable hardware acceleration in the Playback menu.
It might help to clear the cache. I think there is an option in the addons menu to clear the cache.
Also, you could delete the file ~/.kodi/userdata/Database/Addons.db
which is just a cache file.
Re: Bookworm & Kodi 20.0 problem.
Posted: Mon Aug 15, 2022 8:10 am
by soniabu
thanks William2 for your help, I have done what you suggest as much as possible but ...
williams2 wrote: Sun Aug 14, 2022 9:14 pm
What video driver are you using?
If you are using Xorg, as opposed to Wayland, the most reliable way to see what video driver you are using is to type in a terminal:
tail /var/log/Xorg.0.log
To see what video codecs are available, you can type:
mpv -vo help
I think you can disable hardware acceleration in the Playback menu.
in Kodi 20.0 (nor im Kodi 19.0 Matrix) there is no function to inhibit hrdw acceleration
It might help to clear the cache. I think there is an option in the addons menu to clear the cache.
always emerald green screen
Also, you could delete the file ~/.kodi/userdata/Database/Addons.db
which is just a cache file.
I did it but it doesn't change anything always emerald green screen
Re: Bookworm & Kodi 20.0 problem.
Posted: Mon Aug 15, 2022 10:53 am
by fredx181
williams2 wrote:Also, you could delete the file ~/.kodi/userdata/Database/Addons.db which is just a cache file.
soniabu wrote:I did it but it doesn't change anything always emerald green screen
Also worth trying is to delete the whole ~/.kodi folder (make backup first so you're able to restore it) while kodi is not active.
Perhaps some files in ~/.kodi were earlier created by v19 and conflicting with v20, you'll never know until you try.
EDIT: If you do have a backup of ~/.kodi so you're able to restore then I'd say experiment in the settings for "Video', "Display" to try some setting that can fix this, in case you mess up something you can always restore with the backup (or set to default settings (option at bottom in any page of settings))
Re: Bookworm & Kodi 20.0 problem.
Posted: Mon Aug 15, 2022 3:10 pm
by soniabu
Fred wrote:
"Also worth trying is to delete the whole ~/.kodi folder (make backup first so you're able to restore it) while kodi is not active.
Perhaps some files in ~/.kodi were earlier created by v19 and conflicting with v20, you'll never know until you try."
Fred every time I try either the Kodi version 20 or the Matrix version 19.0 before running them
I delete all the specific references through the pFinf File Finder function - a little painstaking work but
unfortunately the " --purge remove command " never manages to find the .Kodi folder and the others.
So when i run a test I am sure that all the folders are relative to the version I am checking and in original;
but always emerald screen remains.
Re: Bookworm & Kodi 20.0 problem.
Posted: Mon Aug 15, 2022 3:16 pm
by fredx181
I delete all the specific references through the pFinf File Finder function - a little painstaking work but
unfortunately the --purge remove command never manages to find the .Kodi folder and the others.
You probably mean the --purge option of apt ?
It does not remove config files or folders in your home directory (/root), what I meant is just delete /root/.kodi with the file-manager (edit: or command rm -rf ~/.kodi
) (to start "fresh" sometimes it fixes things).
EDIT: There's an EDIT in my previous post, I wrote while you were posting I think.
EDIT2: A little advice, better don't go into the system to add or remove stuff (as you said by using Pfind), just leave it to the package management to install or remove software files from the system, except in your home dir (is /root if you are logged in as root) you can add/rermove or edit as you wish.
Re: Bookworm & Kodi 20.0 problem.
Posted: Mon Aug 15, 2022 6:20 pm
by soniabu
fredx181 wrote: Mon Aug 15, 2022 3:16 pm
I delete all the specific references through the pFinf File Finder function - a little painstaking work but
unfortunately the --purge remove command never manages to find the .Kodi folder and the others.
You probably mean the --purge option of apt ?
YES
It does not remove config files or folders in your home directory (/root), what I meant is just delete /root/.kodi with the file-manager (edit: or command rm -rf ~/.kodi
) (to start "fresh" sometimes it fixes things).
I delete root / kodi with file manager
EDIT: There's an EDIT in my previous post, I wrote while you were posting I think.
EDIT2: A little advice, better don't go into the system to add or remove stuff (as you said by using Pfind), just leave it to the package management to install or remove software files from the system, except in your home dir (is /root if you are logged in as root) you can add/rermove or edit as you wish.
OK I'll do that
Re: Bookworm & Kodi 20.0 problem.
Posted: Tue Aug 16, 2022 2:51 pm
by soniabu
by going to the official Kodi Wiki https://kodi.wiki/view/Settings/Player/Videos
I found the meanings of the options for the video including the explanation of the 'specific HW acceleration' function; but it so happens that in the Kodi "setting panel under setting / player" this function is not there - and here I stop because I don't understand why.
it would be useful to inform the manager of the Kodi software for Bookworm in order to solicit an explanation.
However, I ask a general question: does any other forum user use Kodi with Bookworm and AMD Renoir?
EDIT: continuing to read the WikiKodi I came across this paragraph where the sentences
that I highlight intrigue me: do you think I should try what is suggested in the NOTE?
That is, start over and create a Kodi user before launching the software?
thx sonia
Re: Bookworm & Kodi 20.0 problem.
Posted: Tue Aug 16, 2022 3:48 pm
by fredx181
soniabu wrote:EDIT: continuing to read the WikiKodi I came across this paragraph where the sentences
that I highlight intrigue me: do you think I should try what is suggested in the NOTE?
That is, start over and create a Kodi user before launching the software?
I'd say always try whatever you think that may fix things, no real need to ask about it IMO. (and as I think you're running with the EXIT: boot option, you can always reboot and choose 'NoSave' to stay with previous configuration of the system, (in case you possibly messed up things or just don't like how things have changed after your actions).
Btw, you didn't say, did you try deleting ~/.kodi ? (and run Kodi afterwards to see if that fixes the problem).
Re: Bookworm & Kodi 20.0 problem.
Posted: Tue Aug 16, 2022 4:42 pm
by soniabu
Yes, yes Fred I deleted /.kodi and tried to start again but always emerald green the video remains.
But then I printed the log file and at a certain point the error appeared that I report in the image.
If we compare this error with the NOTE sentence -
'This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. '
we should be confident enough that by not initializing VDPAU it will either use VAAPI or it won't use video acceleration. With all this the video is always emerald green even if the audio is perfect.
Re: Bookworm & Kodi 20.0 problem.
Posted: Tue Aug 16, 2022 5:30 pm
by fredx181
soniabu wrote:.... I printed the log file and at a certain point the error appeared that I report in the image.
If we compare this error with the NOTE sentence -
'This needs to be done to ensure Video Acceleration API (VA-API) is properly initialized during Kodi start-up and videos playing get acceleration using VAAPI and not VDPAU on Intel or AMD cards. '
we should be confident enough that by not initializing VDPAU it will either use VAAPI or it won't use video acceleration. With all this the video is always emerald green even if the audio is perfect.
Perhaps best to ask for help in another section about this and post also the output when running kodi from terminal.
(I know little about video specific things, so cannot help, sorry)
Re: Bookworm & Kodi 20.0 problem.
Posted: Tue Aug 16, 2022 5:46 pm
by soniabu
okay Fred, I apologize for the inconvenience.
sonia
Re: Bookworm & Kodi 20.0 problem.
Posted: Wed Aug 17, 2022 7:07 am
by fredx181
@soniabu No need to apologize, I just meant that you may get more or better replies in another section.
Just one thing for now that I thought about:
earlier, soniabu wrote:
In both cases, as shown in the image, the video always appears green but the sound of the transmission is heard.
After this test I launched Kodi 19.0 AppImage and the behavior was the same: no video, yes sound.
Keep in mind that Kodi matrix 19 AppImage worked fine a few days ago.
So I believe there has been an update (upgrade / update) of the Bookworm which causes this.
If you think that possibly something went wrong in the save-storage that's causing this problem (upgrade or whatever), you can test -when you have time- by booting Bookworm for once without changes (and so it doesn't contain upgrades).
By pressing 'e' at the Grub screen, as you did before and remove the changes=....... part, or add a new entry in grub.cfg "no-changes" (and boot that one for once).
Code: Select all
menuentry "Bookworm, no-changes" {
linux /live/vmlinuz1 noauto from=/
initrd /live/initrd1.xz
}
Then once booted in pristine state, do apt update; apt install kodi
(needs network connection of course, set it up first) and play a video in kodi to check if still green screen.
Re: Bookworm & Kodi 20.0 problem.
Posted: Wed Aug 17, 2022 3:56 pm
by soniabu
fredx181 wrote: Wed Aug 17, 2022 7:07 am
@soniabu No need to apologize, I just meant that you may get more or better replies in another section.
Just one thing for now that I thought about:
earlier, soniabu wrote:
In both cases, as shown in the image, the video always appears green but the sound of the transmission is heard.
After this test I launched Kodi 19.0 AppImage and the behavior was the same: no video, yes sound.
Keep in mind that Kodi matrix 19 AppImage worked fine a few days ago.
So I believe there has been an update (upgrade / update) of the Bookworm which causes this.
If you think that possibly something went wrong in the save-storage that's causing this problem (upgrade or whatever), you can test -when you have time- by booting Bookworm for once without changes (and so it doesn't contain upgrades).
By pressing 'e' at the Grub screen, as you did before and remove the changes=....... part, or add a new entry in grub.cfg "no-changes" (and boot that one for once).
Code: Select all
menuentry "Bookworm, no-changes" {
linux /live/vmlinuz1 noauto from=/
initrd /live/initrd1.xz
}
Then once booted in pristine state, do apt update; apt install kodi
(needs network connection of course, set it up first) and play a video in kodi to check if still green screen.
Fred
you have been very insightful since in ORIGINAL Bookworm Kodi works perfectly.
Here the Original Bookworm terminal:
here the Kodi terminal with all the updates performed so far on Bookworm (green screenshot same mp4)
of course I installed Kodi again:
apt purge Kodi *
apt update
apt install Kodi:
my layman's opinion is that something has been changed in the Bookworm OS during the upgrades which causes this anomaly.
Re: Bookworm & Kodi 20.0 problem.
Posted: Wed Aug 17, 2022 4:36 pm
by fredx181
soniabu wrote:Fred
you have been very insightful since in ORIGINAL Bookworm Kodi works perfectly.
Here the Original Bookworm terminal:
...
OK, that's some good news! I cannot give comment about what's in your terminal output though, as I don't have enough knowledge about such things.
On my Bookworm install I installed kodi and also upgraded all packages and works OK.
So...Cannot be sure, sorry to say, but since you said that you deleted files from the system from a Pfind search, I'm a bit suspicious that the kodi problem is possibly caused by some of your actions, so ...
It's probably inconvenient for you, but I cannot think of a better solution than starting from scratch with Bookworm.
That would mean deleting the changes directory (in B_worm) from Bookworm booted without changes (or from another OS) and start again configuring things as e.g. setting wallpaper and installing software, upgrades etc.., and installing kodi. Again, inconvenient, but IMO best to do to have a chance to solve things in your case.
Re: Bookworm & Kodi 20.0 problem.
Posted: Wed Aug 17, 2022 4:40 pm
by soniabu
ok grazie Fred, ci rifletto.
Grazie di tutto l'aiuto
sonia
Re: Bookworm & Kodi 20.0 problem.
Posted: Wed Aug 17, 2022 4:54 pm
by fredx181
Sei la benvenuta Sonia.
E tutto il meglio !
EDIT: just for info, you can add to grub.cfg another entry for new started changes, let's say "B_worm-new", then create in sda2 dir "B_worm-new"
mkdir -p /mnt/sda2/B_worm-new
And add in grub.cfg, corresponding entry:
Code: Select all
menuentry "Bookworm, changes on /mnt/sda2/B_worm-new" {
linux /live/vmlinuz1 noauto from=/ changes=/mnt/sda2/B_worm-new/
initrd /live/initrd1.xz
}
See how flexible it can be, several menu entries can be created this way, all with different configurations you choose to make, some examples, e.g:
- menuentry "Bookworm, changes on /mnt/sda2/B_worm-experimental"
- menuentry "Bookworm, changes on /mnt/sda2/B_worm-minimal"
- menuentry "Bookworm, changes on /mnt/sda2/B_worm-extended"
etc...
Re: Bookworm & Kodi 20.0 problem.
Posted: Wed Aug 17, 2022 10:03 pm
by soniabu
fredx181 wrote: Wed Aug 17, 2022 4:54 pm
Sei la benvenuta Sonia.
E tutto il meglio !
EDIT: just for info, you can add to grub.cfg another entry for new started changes, let's say "B_worm-new", then create in sda2 dir "B_worm-new"
mkdir -p /mnt/sda2/B_worm-new
And add in grub.cfg, corresponding entry:
Code: Select all
menuentry "Bookworm, changes on /mnt/sda2/B_worm-new" {
linux /live/vmlinuz1 noauto from=/ changes=/mnt/sda2/B_worm-new/
initrd /live/initrd1.xz
}
See how flexible it can be, several menu entries can be created this way, all with different configurations you choose to make, some examples, e.g:
- menuentry "Bookworm, changes on /mnt/sda2/B_worm-experimental"
- menuentry "Bookworm, changes on /mnt/sda2/B_worm-minimal"
- menuentry "Bookworm, changes on /mnt/sda2/B_worm-extended"
etc...
thx Fred.
Re: Bookworm & Kodi 20.0 problem.
Posted: Thu Aug 18, 2022 11:46 am
by fredx181
Thanks Sonia, for the testing and info !
Pity that I cannot reproduce the green screen problem, I did the same as you (install kodi and afterwards "apt upgrade") (except running kodi 19 appimage I didn't) and still OK for me.
Re: Bookworm & Kodi 20.0 problem.
Posted: Mon Aug 29, 2022 2:37 pm
by soniabu
Hello everybody.
A good news. Kodi (18 Leila Portable https://forum.puppylinux.com/viewtopic. ... 563#p41563 and 19.0 Matrx appimage https://forum.kodi.tv/showthread.php?tid=345911 or .deb https://pkgs.org/download/kodi) work correctly with Bookworm.
SW: Linux live 5.18.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 5.18.5-1 (2022-06-16) x86_64 GNU/Linux
HW: description: CPU
product: AMD Ryzen 5 5500U with Radeon Graphics
vendor: Advanced Micro Devices [AMD]
version: 23.104.1
... ...
...
and with video settings shown in the image.
this too is gone!
sonia