miclass The SOC supports hardware decoding for MPEG4, but I believe the software basis to implement it is missing in modern Linux kernels. I don't know the reason why no one has ever done it, but I imagine it's related to the obsolescence of the codec. The box restarts probably because it reaches high temperatures given that the decoding takes place via software. However, MPEG4 is quite easy to decode so I don't expect the CPU to be at 100% fixed. can you check this, please? maybe you can also tell me the resolution of the TV and that of the video you are playing?
Ciao ilmich,
thank you for the feedback - I did some further tests/troubleshooting trying many videos, these are my findings (board MXQ 4K):
Video:
- H264, x265 -> both work pretty well, I even tested an x265 2160p HDR and it worked, next time I will try to plug the box to a 4K TV and see what happens...
- XVID -> KODI simply crashes and it start agains (system remains up). If I disable the option "Allow use DRM PRIME Decoder", xvid someway works, but not great... (note: actually XVID was the problem, not MPEG4)
Audio:
- AAC, E-AC3 -> both work fine
- AC3 -> doesn't work, no audio
I am attaching the full logs, more specifically, this are the last lines of the Kodi crash with xvid:
2024-03-08 21:04:29.211 T:971 info <general>: CActiveAESink::OpenSink - initialize sink
2024-03-08 21:04:29.411 T:971 info <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=HDMI,DEV=0"
2024-03-08 21:04:29.424 T:971 info <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=HDMI,DEV=0,AES0=0x04,AES1=0x82,AES2=0x00,AES3=0x02"
2024-03-08 21:04:29.425 T:971 info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats
2024-03-08 21:04:29.425 T:971 info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4
2024-03-08 21:11:25.162 T:963 info <general>: VideoPlayer::OpenFile: /var/media/sda1-usb-Mass_Storage_Dev/Brainstorm - Generazione Elettronica (BDmux) (1983) [ITA+ENG] by WeeZee.avi
2024-03-08 21:11:25.176 T:1105 warning <general>: OutputPicture - timeout waiting for buffer
2024-03-08 21:11:25.269 T:1083 info <general>: Creating InputStream
2024-03-08 21:11:25.302 T:1083 info <general>: Creating Demuxer
2024-03-08 21:11:28.637 T:1083 info <general>: Opening stream: 0 source: 256
2024-03-08 21:11:28.637 T:1083 info <general>: Creating video codec with codec id: 12
2024-03-08 21:11:28.648 T:1083 info <general>: CDVDVideoCodecDRMPRIME::Open - using decoder V4L2 mem2mem MPEG4 decoder wrapper
2024-03-08 21:11:28.649 T:1083 info <general>: CDVDVideoCodecDRMPRIME::Open - unable to open codec
2024-03-08 21:11:28.650 T:1083 info <general>: CDVDVideoCodecDRMPRIME::Open - using decoder MPEG-4 part 2
2024-03-08 21:11:28.654 T:1083 error <general>: CDVDVideoCodecDRMPRIME::FilterOpen - avfilter_graph_config: Invalid argument (-22)
2024-03-08 21:11:28.655 T:1083 info <general>: Opening stream: 2 source: 256
2024-03-08 21:11:28.655 T:1083 info <general>: Finding audio codec for: 86019
2024-03-08 21:11:28.656 T:1083 info <general>: Closing stream player 3
2024-03-08 21:11:28.664 T:1860 info <general>: OpenStream: Allowing max Out-Of-Sync Value of 45 ms
2024-03-08 21:11:28.675 T:1860 info <general>: CAEStreamParser::TrySyncAC3 - AC3 stream detected (6 channels, 48000Hz)
2024-03-08 21:11:28.678 T:1860 info <general>: Creating audio stream (codec id: 86019, channels: 6, sample rate: 48000, pass-through)
2024-03-08 21:11:28.692 T:1105 error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Operation not permitted (-1)
2024-03-08 21:11:28.714 T:971 info <general>: Skipped 7 duplicate messages..
2024-03-08 21:11:28.714 T:971 info <general>: CActiveAESink::OpenSink - initialize sink
2024-03-08 21:11:28.715 T:1105 error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Operation not permitted (-1)
2024-03-08 21:11:28.914 T:971 info <general>: Skipped 87 duplicate messages..
2024-03-08 21:11:28.914 T:971 info <general>: CAESinkALSA::Initialize - Attempting to open device "iec958:CARD=SPDIF,DEV=0"
2024-03-08 21:11:28.916 T:1105 error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Operation not permitted (-1)
2024-03-08 21:11:28.927 T:971 info <general>: Skipped 5 duplicate messages..
2024-03-08 21:11:28.927 T:971 info <general>: CAESinkALSA::Initialize - Opened device "iec958:CARD=SPDIF,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x02"
2024-03-08 21:11:28.927 T:1105 error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Operation not permitted (-1)
2024-03-08 21:11:38.928 T:1105 info <general>: Skipped 4335 duplicate messages..
2024-03-08 21:11:38.928 T:1105 error <general>: CDVDVideoCodecDRMPRIME::AddData - send packet failed: Operation not permitted (-1)
Display More
Do you have any advice?
Thank you!
Ciao,
-miclass