
RK3328 4K HEVC stutter frame drop
-
FurmanSK -
October 29, 2023 at 6:44 PM -
Thread is Unresolved
-
-
hi, i'm using a Pine64 Rock64 (hardware supports 4K : .265/HEVC Main/Main10 profile @ level 5.1 High-tier; up to 4Kx2K @ 60fps
source : https://pine64.org/documentation/ROCK64/_full/#videoI've installed latest stable LibreELEC image
(https://releases.libreelec.tv/LibreELEC-RK33…0-rock64.img.gz)
I've set resolution to 4K in preferences and in inputstream resolution to 4K too.I've made some tests on various HEVC 4K files , the screen is green kodi.log says :
````
Codeerror <general>: CDVDVideoCodecDRMPRIME::FilterOpen - avfilter_graph_config: Function not implemented (-38)
```
I've also disable DRM PRIME green screen is not present but CPU is 100% and fps are very slow, so can't see video
How can I play 4K 265 in Rock64 ?
-
error <general>: CDVDVideoCodecDRMPRIME::FilterOpen - avfilter_graph_config: Function not implemented (-38)
This ^ is harmless and can be ignored.
I've set resolution to 4K in preferences and in inputstream resolution to 4K too
Forcing the default resolution to 4K won't help the GUI experience, see https://wiki.libreelec.tv/configuration/4k-hdr and follow the recommendations for setup including the whitelist. Correct config on all ARM SoC hardware is DRMPRIME enabled, HW decoding enabled. Then retest with a current LE13 nightly. If there's still an issue, put Kodi in debug mode, reboot and demonstrate the issue and then "pastekodi" to share the log.
-
I've read the documentation and make some changes, i still get green screen
Code
Display More2025-10-04 16:42:00.916 T:1256 info <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:664 ---[ userdata:2 ] 2025-10-04 16:42:01.230 T:1316 info <general>: Opening stream: 0 source: 256 2025-10-04 16:42:01.230 T:1316 info <general>: [WHITELIST] Searching the whitelist for: width: 3840, height: 2160, fps: 25.000, 3D: false 2025-10-04 16:42:01.231 T:1316 info <general>: Display resolution ADJUST : 1920x1080 @ 60.000000 Hz (28) (weight: 0.000) 2025-10-04 16:42:01.250 T:1316 info <general>: Creating video codec with codec id: 173 2025-10-04 16:42:01.250 T:1316 info <general>: CDVDVideoCodecDRMPRIME::Open - using decoder HEVC (High Efficiency Video Coding) 2025-10-04 16:42:01.255 T:1316 error <general>: CDVDVideoCodecDRMPRIME::FilterOpen - avfilter_graph_config: Function not implemented (-38) 2025-10-04 16:42:01.258 T:1316 info <general>: Creating video thread 2025-10-04 16:42:01.259 T:1326 info <general>: running thread: video_thread 2025-10-04 16:42:01.259 T:1316 info <general>: Opening stream: 1 source: 256 2025-10-04 16:42:01.259 T:1316 info <general>: Finding audio codec for: 86056 2025-10-04 16:42:01.260 T:1316 info <general>: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder eac3 2025-10-04 16:42:01.260 T:1316 info <general>: OpenStream: Allowing max Out-Of-Sync Value of 50 ms 2025-10-04 16:42:01.260 T:1316 info <general>: Creating audio thread 2025-10-04 16:42:01.260 T:1327 info <general>: running thread: CVideoPlayerAudio::Process() 2025-10-04 16:42:01.260 T:1316 info <general>: Opening stream: 2 source: 256 2025-10-04 16:42:01.260 T:1316 info <general>: CDVDSubtitlesLibass: Using libass version 1701000 2025-10-04 16:42:01.261 T:1316 info <general>: CDVDSubtitlesLibass: Creating ASS library structure 2025-10-04 16:42:01.261 T:1316 info <general>: CDVDSubtitlesLibass: Initializing ASS Renderer 2025-10-04 16:42:01.261 T:1316 info <general>: CDVDSubtitlesLibass: Initializing ASS library font settings 2025-10-04 16:42:01.303 T:1316 info <general>: CDVDSubtitlesLibass: Creating new ASS track 2025-10-04 16:42:01.312 T:1327 info <general>: Creating audio stream (codec id: 86056, channels: 2, sample rate: 48000, no pass-through) 2025-10-04 16:42:01.315 T:1192 info <general>: CActiveAESink::OpenSink - initialize sink 2025-10-04 16:42:01.540 T:1192 info <general>: CAESinkALSA::Initialize - Attempting to open device "@" 2025-10-04 16:42:01.563 T:1261 info <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:283 -->[ q:download/281470750878992 ] 2025-10-04 16:42:01.766 T:1192 info <general>: CAESinkALSA::Initialize - Opened device "sysdefault" 2025-10-04 16:42:01.766 T:1192 info <general>: CAESinkALSA::InitializeHW - Your hardware does not support AE_FMT_FLOAT, trying other formats 2025-10-04 16:42:01.767 T:1192 info <general>: CAESinkALSA::InitializeHW - Using data format AE_FMT_S24NE4 2025-10-04 16:42:01.854 T:1184 info <general>: [WHITELIST] Searching the whitelist for: width: 3840, height: 2160, fps: 25.000, 3D: false 2025-10-04 16:42:01.856 T:1184 info <general>: Display resolution ADJUST : 1920x1080 @ 60.000000 Hz (28) (weight: 0.000) 2025-10-04 16:42:02.329 T:1256 info <general>: JELLYFIN.jellyfin_kodi.player -> INFO::jellyfin_kodi/player.py:172 Setting audio: 1 subs: None 2025-10-04 16:42:02.745 T:1328 info <general>: JELLYFIN.jellyfin_kodi.downloader -> INFO::jellyfin_kodi/downloader.py:314 --<[ q:download/281470750878992 ] 2025-10-04 16:42:03.587 T:1261 info <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:350 -->[ q:userdata/Movie/281470750954640 ] 2025-10-04 16:42:04.835 T:1329 info <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:836 --<[ q:userdata/281470750954640 ] 2025-10-04 16:42:04.841 T:1327 info <general>: CVideoPlayerAudio::Process - stream stalled 2025-10-04 16:42:05.640 T:1261 info <general>: JELLYFIN.jellyfin_kodi.library -> INFO::jellyfin_kodi/library.py:545 --[ sync/2025-10-04T14:40:02Z ] 2025-10-04 16:42:05.723 T:1197 info <general>: VideoInfoScanner: Starting scan .. 2025-10-04 16:42:05.734 T:1197 info <general>: VideoInfoScanner: Finished scan. Scanning for video info took 18 ms 2025-10-04 16:42:05.823 T:1256 info <general>: JELLYFIN.jellyfin_kodi.monitor -> INFO::jellyfin_kodi/monitor.py:42 -->[ kodi scan/video ]
-
Tsxop But is the green screen only when playing the video or always? It could be a bug in the HW decoder pipeline, Kodi or worse a 4K format nn supported via HW. Do other resolutions work?
-
Just for some 4K HEVC video.
Here's some details about the file which cause problems :
Code
Display MoreVidéo Titre: 4K HEVC SDR Codec: HEVC AVC: No Profil: Main 10 Niveau: 150 Résolution: 3840x2160 Format d'image: 16:9 Anamorphique: No Entrelacé: No Images par seconde: 25 Débit: 22369 kbps Profondeur de bit: 10 bit Plage vidéo: SDR Type de plage vidéo: SDR Espace colorimétrique: bt709 Transfert couleur: bt709 Couleurs primaires: bt709 Format de pixel: yuv420p10le Images de référence: 1
That one works well : https://www.libde265.org/hevc-bitstream…x2160-cfg02.mkv
Yes 1080p is ok
-
No debug log = Nobody looking at your problem.
-
Here's full debug log
-
Code
Display More2025-10-05 10:14:27.279 T:1188 debug <general>: [WHITELIST] whitelisted modes: 3840x2160 @ 60.000000 Hz 3840x2160 @ 60.000000 Hz 3840x2160 @ 59.940063 Hz 3840x2160 @ 30.000000 Hz 3840x2160 @ 29.970032 Hz 3840x2160 @ 24.000000 Hz 3840x2160 @ 23.976025 Hz 1920x1080 @ 60.000000 Hz 1920x1080 @ 60.000000 Hz 1920x1080 @ 59.940063 Hz 1920x1080 @ 50.000000 Hz 2025-10-05 10:14:46.722 T:1251 info <general>: ffmpeg[0xb7d5d00]: Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default) 2025-10-05 10:14:46.795 T:1251 error <general>: ffmpeg[0xb7d5d00]: Impossible to convert between the formats supported by the filter 'src' and the filter 'auto_scale_0'
Comments:
a) The desktop resolution is 1080@60.
b) The whitelist has been configured but the whitelist decision-tree (evaluating what mode from the configuration to use) is not visible when media is played and this normally means adjust-refresh and/or the whitelist are not enabled.
c) The family-movie file is 3840x2160@25 but there is no 4K@25 mode in the whitelist or EDID data. This means Kodi cannot play media at its native rate or a 'double' of the native rate (4K@50) and must adapt the content. This does not give great results, and there is also no mention of a rate change in the log so it might be converting 4K@25 to 1080@60?
d) The log does not show playback of the BBB file, but this media is 3840x2160@60 and there is a 3840x2160@60 mode available so Kodi will be able to output at the native resolution/refresh.
e) The "Impossible to convert between the formats" error is unusual (first time that I see it) and I'm not sure where in code that comes from, but the mention of scaling also makes me think it might be trying to scale 4K@25 to 1080@60.
f) EDID data shows "IIyama" which is a Monitor brand. If this is a monitor? using a TV with a full selection of modes, ensuring that adjust-refresh and whitelist are enabled and set correctly (as per the article I linked before) the results should be better. The EDID data shows 4K@25/50 and [email protected]/24/25/29.97/30 modes are missing; although enabling rate-doubling means the 25/29.97/30 modes can match with 50/59.94/60. The lack of [email protected] mode means HD movies must be CPU scaled to [email protected] and this can impact overall device performance.
g) If this is the only screen you have, download Handbrake and convert the problem files to 4K@30 and they should play better on a device that has a 4K@30 (and 4K@60) mode. Configure the phone? to use 4K@30 and then future movies don't require you to convert them with Handbrake.
TL/DR: Monitors make rubbish TV's
-
Code
Display More2025-10-05 10:14:27.279 T:1188 debug <general>: [WHITELIST] whitelisted modes: 3840x2160 @ 60.000000 Hz 3840x2160 @ 60.000000 Hz 3840x2160 @ 59.940063 Hz 3840x2160 @ 30.000000 Hz 3840x2160 @ 29.970032 Hz 3840x2160 @ 24.000000 Hz 3840x2160 @ 23.976025 Hz 1920x1080 @ 60.000000 Hz 1920x1080 @ 60.000000 Hz 1920x1080 @ 59.940063 Hz 1920x1080 @ 50.000000 Hz 2025-10-05 10:14:46.722 T:1251 info <general>: ffmpeg[0xb7d5d00]: Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 1k tbn (default) 2025-10-05 10:14:46.795 T:1251 error <general>: ffmpeg[0xb7d5d00]: Impossible to convert between the formats supported by the filter 'src' and the filter 'auto_scale_0'
Comments:
a) The desktop resolution is 1080@60.
Yes the resolution is set to 1080@60 manually fixed in kodi's settings
b) The whitelist has been configured but the whitelist decision-tree (evaluating what mode from the configuration to use) is not visible when media is played and this normally means adjust-refresh and/or the whitelist are not enabled.
I can see in yellow every 1920x1080 and every 3840x2160.
I've also checked bellow whitelist 'Allow refresh 3:2 pulldown' and 'Refresh twices' in Whitelist section.
c) The family-movie file is 3840x2160@25 but there is no 4K@25 mode in the whitelist or EDID data. This means Kodi cannot play media at its native rate or a 'double' of the native rate (4K@50) and must adapt the content. This does not give great results, and there is also no mention of a rate change in the log so it might be converting 4K@25 to 1080@60?
I'm pressing o to see information the video is 3840x2160@25 but the video is adapted to 1920x1080 at the screen
d) The log does not show playback of the BBB file, but this media is 3840x2160@60 and there is a 3840x2160@60 mode available so Kodi will be able to output at the native resolution/refresh.
Ok
e) The "Impossible to convert between the formats" error is unusual (first time that I see it) and I'm not sure where in code that comes from, but the mention of scaling also makes me think it might be trying to scale 4K@25 to 1080@60.
f) EDID data shows "IIyama" which is a Monitor brand. If this is a monitor? using a TV with a full selection of modes, ensuring that adjust-refresh and whitelist are enabled and set correctly (as per the article I linked before) the results should be better. The EDID data shows 4K@25/50 and [email protected]/24/25/29.97/30 modes are missing; although enabling rate-doubling means the 25/29.97/30 modes can match with 50/59.94/60. The lack of [email protected] mode means HD movies must be CPU scaled to [email protected] and this can impact overall device performance.
The monitor is IIyama ProLite XB3288UHSU which
Native resolution 3840 x 2160 @60Hz (8.3 megapixel 4K UHD) source : https://iiyama.com/gl_en/products/prolite-xb3288uhsu-b5/
I've also : Set the Adjust Refresh setting to "On Start/Stop"
g) If this is the only screen you have, download Handbrake and convert the problem files to 4K@30 and they should play better on a device that has a 4K@30 (and 4K@60) mode. Configure the phone? to use 4K@30 and then future movies don't require you to convert them with Handbrake.
This is the only screen I have.
I'm playing videos by using Kodi interface, how can I configure to use 4K@30 ?
TL/DR: Monitors make rubbish TV's
-
There is no magic Kodi configuration that will fix this problem on your hardware. The three solutions are:
a) Use a monitor or TV that has the required 4K@25 or (doubled) 4K@50 refresh rate so the RK3328 board can play media at native refresh rates without needing CPU conversion to 4K@60 or 1080@60 that a low-spec ARM SoC chip cannot handle.
b) Use high-spec hardware that can handle the required CPU conversion to 4K@60 or 1080@60.
c) Convert problem media (offline, using Handbrake) from 4K@25 to something that matches monitor modes, i.e. 4K@30 so the low-spec ARM SoC hardware can play media at native rates (as with the BBB file).
-