I had a running 32-bit setup on a RPi4, but I decided to move to 64-bits (mainly to avoid some problems with oom_killer) and I migrated all the setup to aarch64. So far I have everything working flawlessly, excepting Kodi.
Kodi starts OK, but first the UI moves very slowly. And worse, when I try playing a video, it seems to start but the video does not play. Image stays on the menus, the play overlay bar on the bottom on the screen pops and depending on the media sometimes I get sound, but the video does never appear.
I suspect that maybe this is the expected behavior on aarch64 and there is no hardware decoding support. Reading here that´s what it seems to me. But if I go here, it seems that you should be able to play media files...
I am using kodi-rpi (also tried with kodi-rpi-git with same result). My /boot/config.txt has only 2 lines:
$this->bbcode_second_pass_code('', 'enable_uart=1
include kodi.config.txt')
And when I play a file, this is what appears in the logs:
$this->bbcode_second_pass_code('', '2021-04-10 21:08:15.455 T:983 INFO <general>: Creating InputStream
2021-04-10 21:08:15.467 T:983 INFO <general>: Creating Demuxer
2021-04-10 21:08:15.641 T:983 INFO <general>: Opening stream: 0 source: 256
2021-04-10 21:08:15.641 T:983 INFO <general>: Creating video codec with codec id: 27
2021-04-10 21:08:15.641 T:983 INFO <general>: CDVDVideoCodecDRMPRIME::Open - using decoder V4L2 mem2mem H.264 decoder wrapper
2021-04-10 21:08:15.642 T:983 INFO <general>: CDVDVideoCodecDRMPRIME::Open - unable to open codec
2021-04-10 21:08:15.642 T:983 INFO <general>: CDVDVideoCodecDRMPRIME::Open - using decoder H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2021-04-10 21:08:15.642 T:983 INFO <general>: Creating video thread
2021-04-10 21:08:15.643 T:989 INFO <general>: running thread: video_thread
2021-04-10 21:08:15.643 T:983 INFO <general>: Opening stream: 1 source: 256
2021-04-10 21:08:15.643 T:983 INFO <general>: Finding audio codec for: 86019
2021-04-10 21:08:15.643 T:983 INFO <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder ac3
2021-04-10 21:08:15.643 T:983 INFO <general>: Creating audio thread
2021-04-10 21:08:15.644 T:990 INFO <general>: running thread: CVideoPlayerAudio::Process()
2021-04-10 21:08:15.644 T:983 INFO <general>: Opening stream: 3 source: 256
2021-04-10 21:08:15.649 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)
2021-04-10 21:08:15.660 T:990 INFO <general>: Skipped 9 duplicate messages..
2021-04-10 21:08:15.660 T:990 INFO <general>: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, no pass-through)
2021-04-10 21:08:15.660 T:842 INFO <general>: CActiveAESink::OpenSink - initialize sink
2021-04-10 21:08:15.660 T:842 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "@:CARD=vc4hdmi1,DEV=0"
2021-04-10 21:08:15.664 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)
2021-04-10 21:08:15.665 T:842 INFO <general>: Skipped 9 duplicate messages..
2021-04-10 21:08:15.665 T:842 INFO <general>: CAESinkALSA - Unable to open device "sysdefault:CARD=vc4hdmi1" for playback
2021-04-10 21:08:15.666 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)
2021-04-10 21:08:15.669 T:842 INFO <general>: Skipped 35 duplicate messages..
2021-04-10 21:08:15.669 T:842 INFO <general>: CAESinkALSA - Unable to open device "default:CARD=vc4hdmi1" for playback
2021-04-10 21:08:15.669 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)
2021-04-10 21:08:15.670 T:842 INFO <general>: Skipped 8 duplicate messages..
2021-04-10 21:08:15.670 T:842 INFO <general>: CAESinkALSA::Initialize - Opened device "front:CARD=vc4hdmi1,DEV=0"
2021-04-10 21:08:15.671 T:842 INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2021-04-10 21:08:15.671 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)
2021-04-10 21:08:15.671 T:842 ERROR <general>: CAESinkALSA::InitializeHW - Unable to find a suitable output format
2021-04-10 21:08:15.671 T:842 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "sysdefault:CARD=ALSA"
2021-04-10 21:08:15.672 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)
2021-04-10 21:08:15.677 T:842 INFO <general>: Skipped 5 duplicate messages..
2021-04-10 21:08:15.677 T:842 INFO <general>: CAESinkALSA::Initialize - Opened device "sysdefault:CARD=ALSA"
2021-04-10 21:08:15.678 T:842 INFO <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2021-04-10 21:08:15.678 T:842 INFO <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S16NE
2021-04-10 21:08:15.678 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Invalid data found when processing input (-1094995529)
2021-04-10 21:08:16.213 T:989 ERROR <general>: Skipped 135 duplicate messages..
2021-04-10 21:08:16.213 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::Drain - send packet failed: Invalid data found when processing input (-1094995529)
2021-04-10 21:08:16.213 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::GetPicture - receive frame failed: Invalid data found when processing input (-1094995529)
2021-04-10 21:08:16.290 T:989 ERROR <general>: Skipped 1 duplicate messages..
2021-04-10 21:08:16.290 T:989 ERROR <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: End of file (-541478725)
2021-04-10 21:08:23.734 T:835 INFO <general>: Skipped 177 duplicate messages..
2021-04-10 21:08:23.734 T:835 INFO <general>: CVideoPlayer::CloseFile()
2021-04-10 21:08:23.734 T:835 INFO <general>: VideoPlayer: waiting for threads to exit
2021-04-10 21:08:23.737 T:983 INFO <general>: CVideoPlayer::OnExit()
2021-04-10 21:08:23.737 T:983 INFO <general>: Closing stream player 1
2021-04-10 21:08:23.737 T:983 INFO <general>: Waiting for audio thread to exit
2021-04-10 21:08:23.737 T:990 INFO <general>: thread end: CVideoPlayerAudio::OnExit()
2021-04-10 21:08:23.737 T:983 INFO <general>: Closing audio device
2021-04-10 21:08:23.787 T:983 INFO <general>: Deleting audio codec
2021-04-10 21:08:23.787 T:842 INFO <general>: CActiveAESink::OpenSink - initialize sink
2021-04-10 21:08:23.787 T:983 INFO <general>: Closing stream player 2
2021-04-10 21:08:23.787 T:983 INFO <general>: waiting for video thread to exit
2021-04-10 21:08:23.787 T:989 ERROR <general>: Got MSGQ_ABORT or MSGO_IS_ERROR return true
2021-04-10 21:08:23.787 T:989 INFO <general>: thread end: video_thread
2021-04-10 21:08:23.787 T:983 INFO <general>: deleting video codec
2021-04-10 21:08:23.789 T:983 INFO <general>: Closing stream player 3
2021-04-10 21:08:23.789 T:835 INFO <general>: VideoPlayer: finished waiting
2021-04-10 21:08:23.789 T:835 INFO <general>: CVideoPlayer::CloseFile()
2021-04-10 21:08:23.789 T:835 INFO <general>: VideoPlayer: waiting for threads to exit
2021-04-10 21:08:23.789 T:835 INFO <general>: VideoPlayer: finished waiting')
I see several errors, but I have no idea what they mean.
So is hardware decoding supported? Is there anything I can do to make Kodi work?