4K HEVC/H.265 video playback choppy

Show me your complete config.txt.

#gpu_mem=512
initramfs initramfs-linux.img followkernel
kernel=kernel8.img
arm_64bit=1
disable_overscan=1

#enable sound
dtparam=audio=on
#hdmi_drive=2

#enable vc4
dtoverlay=vc4-kms-v3d
#max_framebuffers=2
disable_splash=1
hdmi_enable_4kp60=1

over_voltage=6
arm_freq=2100
gpu_freq=750

Not enough video memory for your 4K monitor. Make this change on the dtoverlay=vc4-kms-v3d line. Also with your monitor you may have to add the line force_turbo=1 If video breaks with hdmi_enable_4kp60=1.

#enable vc4
dtoverlay=vc4-kms-v3d,cma-512
#max_framebuffers=2
disable_splash=1
hdmi_enable_4kp60=1
force_turbo=1

It hangs on “starting Terminate Plymouth Boot Screen” for a while before Kodi loads, anyway it’s playing 4K HEVC smoothly now, wont play 4K H.264 though but its not specified for that so I don’t expect it to.
Thanks for helping.

@CommanderLake Hold on. You have missed a config line in config.txt.

#enable vc4
dtoverlay=vc4-kms-v3d,cma-512
disable_fw_kms_setup=1
#max_framebuffers=2
disable_splash=1
hdmi_enable_4kp60=1
force_turbo=1

Applied, thanks.

1 Like

Now I have another problem, I have no audio and no passthrough of DTS etc. shall I create another thread?

Most likely this is your issue:

https://forum.manjaro.org/t/additional-arm-packages/10132/225

FYI: I am now compiling the latest kodi-rpi-git and if it tests out ok I will push the new 4 packages to the unstable branch within a hour. My time is short today as it is my going to town for groceries day.

I dont have pipewire, only pulseaudio.

I have no clue ATM then. Maybe @bogdancovaciu has an idea. He uses kodi-rpi all of the time. I am fixing to test the latest kodi-rpi-git and then go to town.

Another though is one time the headphone jack was picked by default and I had to change it in kodi’s settings.

Hey, no Pi device here and as an ARM device i only have the pinephone. Maybe there is another team member you wanted to refer too? :smiley:

Sorry I got my wires crossed. It would be @tartanpion.

1 Like

I use pipewire/wireplumber with a hifiberry sound card. No sound problem. Have you a working sound inside your DE ? and if yes you must have the same profile inside kodi. Have you check the passthrough option inside kodi ?
And for easy use of kodi with no reboot try to use the tty.

I should have added Pi 4 to the title, it has very limited HDMI audio support as far as I’ve seen and there are no options for passthrough in the settings. Not sure if its a good idea to talk about this here but I gave LibreELEC a try and it works flawlessly with passthrough of all the HD audio codecs, It would be nice to get it sorted out in Manjaro though.

LibreELEC is a distribution created for Kodi usecases. Manjaro is not. Manjaro is more desktop focused, not as much media center centric.

Exact apparently librelec has made a patch by popcormix to support audio passthroug for the Raspberry Pi4. libreelec. For a pure mediacenter librelec wins unless @Darksky make something.

The kodi-rpi’s in our repo is also based off popcornmix’s personal kodi tree to co-work with a distro’s desktop image. ARCH-ARM (graysky) has put together a PKGBUILD for it. I have to change up the PKGBUILD and build because of some arch-arm specific terminology. popcormmix (RPi) does also contributes heavily to LibreELECT. So it will be a waiting game for me for popcornmix to add PASSTHRU to his tree for the pi4.

which rk3399 devices best buy?

This will only make the kernel have the support. Not userland applications.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.