RPi4 troubleshooting

  • Hi,

    I have a RPi4 running 10.0.3. When I try to play 4K content it is choppy and unwatchable (I do get source is too slow messages). Regular HD is OK.

    Connection is 1Gb.

    I have the RPi connected to the same switch my workstation is connected to. If I play the same video file on my workstation using VLC it plays flawlessly. VLC shows 0 lost/corrupted frames, even after playing for an extended while.

    File info using Mediainfo:

    General

    Unique ID : 213563078768604090078572071701482983224 (0xA0AAC0BA3A1C6E35AF826E8919AA4F38)

    Complete name : \\fnas1\HD_Movies\The Shining\The Shining (1980) -4K.mkv

    Format : Matroska

    Format version : Version 2

    File size : 28.3 GiB

    Duration : 2 h 23 min

    Overall bit rate : 28.2 Mb/s

    Movie name : The Shinning 1980 UHD BluRay HDR10 2160p DD5.1 H265-d3g

    Encoded date : UTC 2019-09-25 18:44:48

    Writing application : DVDFab 10.0.9.2

    Writing library : libebml v1.3.4 + libmatroska v1.4.5

    Video

    ID : 1

    Format : HEVC

    Format/Info : High Efficiency Video Coding

    Format profile : Main [email protected]@High

    HDR format : SMPTE ST 2086, HDR10 compatible

    Codec ID : V_MPEGH/ISO/HEVC

    Duration : 2 h 23 min

    Bit rate : 27.5 Mb/s

    Width : 3 840 pixels

    Height : 2 160 pixels

    Display aspect ratio : 16:9

    Frame rate mode : Constant

    Frame rate : 23.976 (24000/1001) FPS

    Color space : YUV

    Chroma subsampling : 4:2:0 (Type 2)

    Bit depth : 10 bits

    Bits/(Pixel*Frame) : 0.138

    Stream size : 27.7 GiB (98%)

    Default : Yes

    Forced : No

    Color range : Limited

    Color primaries : BT.2020

    Transfer characteristics : PQ

    Matrix coefficients : BT.2020 non-constant

    Mastering display color primaries : Display P3

    Mastering display luminance : min: 0.0050 cd/m2, max: 4000 cd/m2

    Maximum Content Light Level : 1633 cd/m2

    Maximum Frame-Average Light Level : 114 cd/m2

    Audio

    ID : 2

    Format : AC-3

    Format/Info : Audio Coding 3

    Commercial name : Dolby Digital

    Codec ID : A_AC3

    Duration : 2 h 23 min

    Bit rate mode : Constant

    Bit rate : 640 kb/s

    Channel(s) : 6 channels

    Channel layout : L R C LFE Ls Rs

    Sampling rate : 48.0 kHz

    Frame rate : 31.250 FPS (1536 SPF)

    Bit depth : 16 bits

    Compression mode : Lossy

    Stream size : 658 MiB (2%)

    Language : English

    Service kind : Complete Main

    Default : Yes

    Forced : No

    Text #1

    ID : 3

    Format : VobSub

    Codec ID : S_VOBSUB

    Codec ID/Info : Picture based subtitle format used on DVDs

    Duration : 2 h 16 min

    Bit rate : 7 441 b/s

    Count of elements : 1521

    Stream size : 7.27 MiB (0%)

    Language : English

    Default : Yes

    Forced : No

    Text #2

    ID : 4

    Format : VobSub

    Codec ID : S_VOBSUB

    Codec ID/Info : Picture based subtitle format used on DVDs

    Duration : 2 h 20 min

    Bit rate : 5 784 b/s

    Count of elements : 1189

    Stream size : 5.82 MiB (0%)

    Language : French

    Default : No

    Forced : No

    Text #3

    ID : 5

    Format : VobSub

    Codec ID : S_VOBSUB

    Codec ID/Info : Picture based subtitle format used on DVDs

    Duration : 2 h 18 min

    Bit rate : 7 790 b/s

    Count of elements : 1531

    Stream size : 7.70 MiB (0%)

    Language : German

    Default : No

    Forced : No

    Text #4

    ID : 6

    Format : VobSub

    Codec ID : S_VOBSUB

    Codec ID/Info : Picture based subtitle format used on DVDs

    Duration : 2 h 18 min

    Bit rate : 7 562 b/s

    Count of elements : 1525

    Stream size : 7.48 MiB (0%)

    Language : Italian

    Default : No

    Forced : No

    Text #5

    ID : 7

    Format : VobSub

    Codec ID : S_VOBSUB

    Codec ID/Info : Picture based subtitle format used on DVDs

    Duration : 2 h 18 min

    Bit rate : 5 709 b/s

    Count of elements : 1314

    Stream size : 5.64 MiB (0%)

    Language : Spanish

    Default : No

    Forced : No

    Menu

    00:00:00.000 : en:Drive to the Overlook

    00:03:00.430 : en:The Interview

    00:05:05.137 : en:Quite a Story

    00:10:33.799 : en:Bloody Vision

    00:12:08.394 : en:The Doctor's Questions

    00:14:24.280 : en:Family History

    00:17:37.932 : en:Chapter 7

    00:20:30.896 : en:Chapter 8

    00:24:58.622 : en:Doc Gets the Message

    00:28:51.688 : en:Talk of Shining - and Room 237

    00:34:10.215 : en:A Month Later: Bouncing and Exploring

    00:40:28.843 : en:Tuesday: Curiosity for Danny, Rules for Wendy

    00:46:00.925 : en:Thursday: Snowbound

    00:46:52.226 : en:Saturday: Slipping Out of Touch

    00:49:17.329 : en:Come and Play

    00:51:16.240 : en:Monday: "I Love You, Danny"

    00:57:01.918 : en:Wednesday: Room 237 Beckons

    00:58:36.847 : en:Nightmares and Neck Wounds

    01:02:37.170 : en:The Gold Room

    01:06:05.795 : en:Words of Wisdom

    01:09:00.762 : en:Halloran Shines; Jack Rages

    01:16:52.316 : en:Danny Shines; Jack Rages

    01:22:18.642 : en:Chapter 23

    01:25:29.916 : en:Delbert Grady

    01:31:41.162 : en:"Redrum! Danny's Not Here"

    01:34:03.805 : en:Chapter 26

    01:35:48.618 : en:Halloran Flies In

    01:39:30.590 : en:All Work and No Play

    01:43:49.932 : en:What Should Be Done With Danny

    01:49:26.393 : en:Jack in Storage; Wendy in a Frenzy

    01:54:24.441 : en:Grady Intervenes; Halloran en Route

    01:58:44.617 : en:Chapter 32

    02:01:09.554 : en:"Here's Johnny"

    02:05:30.064 : en:On The Prowl

    02:07:32.687 : en:Halloran Killed

    02:10:23.566 : en:Into the Maze

    02:12:10.089 : en:"Great Party, Isn't It?"

    02:15:03.387 : en:Chapter 38

    02:18:57.037 : en:The Overlook Claims Jack

    02:21:16.343 : en:Chapter 40


    Logs from the RPi are attached.

    Is this too much for the RPi?

  • I noticed a couple of things:

    First of all you are running LE 10.0.2 - please test with the current 10.0.3 release

    You seem to have connected the HDMI cable to the wrong HDMI port of the RPi - use HDM0 as HDMI1 has limited capabilities.

    You seem to be playing through the emby addon - have you tested with SMB or the file copied to a USB pendrive / HDD?

    You didn't enable debug logging and from the looks of it also not adjust refresh rate, together with whitelisting the important modes as described in the wiki. Please to the latter, permanently, and the first when you still have issues after the steps above.

    Then upload the logfile either with the log upload function in LE settings or with "pastekodi" via ssh - the logfiles via the SMB share are unfortunately missing important info (guess we should fix that...)

    so long,

    Hias

  • How do I upgrade to 10.0.3? I'm normally in auto update and it hasn't updated automatically past 10.0.2. If I set update to manual it doesn't show as a version.

    Tried using the other HDMI port but no change (I did reboot).

    Tried using a normal added video source (non Emby) but that didn't change anything. The video name for that test is Testvid.mkv and is a copy of the original 4K movie. FWIW I have Emby set to use native paths.

    debug log is at http://ix.io/4gS3


    Oh, this does appear to be a resource issue on the RPi4. When in debug the CPU usage is consistently in the 90% on all 4 CPUs and regularly will hit 100%.


    I've been using NFS. I added another source to access the TestVid.mkv file using CIFS (direct, not Emby). Same result.

    Edited 2 times, last by TugboatBill: Merged a post created by TugboatBill into this post. (November 25, 2022 at 10:12 PM).

  • I updated to 10.0.3. Turned on debug and started the mkv from the non Emby source. Problem is still there.

    Here is the debug log http://ix.io/4gSd


    Here are the results from "top" and "perf top" while displaying the TestVid.mkv video from the non Emby source (SMB).

  • It seems ffmpeg is using software decoding which is too much for 4k - please verify if settings->player "Allow using DRM Decoder" and "Allow hardware acceleration with DRM PRIME" are both at the default (enabled) and "PRIME Render Method" is also at default (Direct To Plane)

    so long,

    Hias