Pi4 with 19.1 stutters after playing for about 15-30 minutes

Hello - I have a Pi4 with 19.1 that plays well for a while and then stutters after playing for about 15-30 minutes (approximately - might be shorter or longer). Noticed it with both DVD and Blu ray files. I have to stop playing and then resume, and then it will play again properly for a while and then stutter again.

by stuttering i mean there appears to be some dropped frames and also dropped audio for very short but noticeable periods.

here is the log:

Do you have active cooling for the Pi4?

no. there’s no case on the pi4.
i also have not seen any thermometer warnings on the screen to let me know it is too hot (maybe not relevant with pi4 (?) but i have seen them on the pi3).
this is with playing a 480p file. not a 4k or even a 1080p.
do the logs point to any issues?

the issue still happens. while it happens with movies, it does not happen while watching a 1080 tv recording for an extended period of time.

are additional logs required to assist in fixing this?

Could it be related to your PVR activity occurring in the background?
Otherwise no idea – this is one for Pi guys to solve.

thanks sam for looking. any idea where i go for their help?

Pi Git usually, if you can repro on another platform.

Can you share mediainfo of impacted files?

You could try to add core_freq_min=500 to /boot/config-user.txt and reboot

Also are you playing your local connected (USB) files via Samba? That is not really a good idea

smb://OSMC/Seagate2/TV Shows/

i just did the change you suggested to the core_freq_min setting. i’ll let you know how it goes.
here is the mediainfo for one of the files. it’s quite long so i’ll post this one here and wait to see if i should post any others to a different location like the pastebin.
thank you.
Unique ID : 160124629908470935721161708339456712543 (0x7876E1C7F6E3D8281B25E63F038D1F5F)
Complete name : \\My Book\Video\Enemy at the Gates.mkv
Format : Matroska
Format version : Version 2
File size : 5.39 GiB
Duration : 2 h 11 min
Overall bit rate mode : Variable
Overall bit rate : 5 888 kb/s
Encoded date : UTC 2014-12-09 17:28:30
Writing application : MakeMKV v1.8.14 win(x64-release)
Writing library : libmakemkv v1.8.14 (1.3.0/1.4.1) win(x64-release)

ID : 1
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings : CustomMatrix / BVOP
Format settings, BVOP : Yes
Format settings, Matrix : Custom
Format settings, GOP : Variable
Codec ID : V_MPEG2
Codec ID/Info : MPEG 1 or 2 Video
Bit rate mode : Variable
Bit rate : 5 131 kb/s
Maximum bit rate : 9 800 kb/s
Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Frame rate mode : Variable
Original frame rate : 23.976 FPS
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Scan order : 2:3 Pulldown
Compression mode : Lossy
Time code of first frame : 00:59:59;00
Time code source : Group of pictures header
Language : English
Default : No
Forced : No
Color primaries : BT.601 NTSC
Transfer characteristics : BT.601
Matrix coefficients : BT.601

Audio #1
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 2 h 11 min
Bit rate mode : Constant
Bit rate : 448 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)
Compression mode : Lossy
Delay relative to video : 27 ms
Stream size : 420 MiB (8%)
Title : Surround 5.1
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Duration_Source : General_Duration

Audio #2
ID : 3
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : A_AC3
Duration : 2 h 11 min
Bit rate mode : Constant
Bit rate : 192 kb/s
Channel(s) : 2 channels
Channel layout : L R
Sampling rate : 48.0 kHz
Frame rate : 31.250 FPS (1536 SPF)
Compression mode : Lossy
Delay relative to video : 27 ms
Stream size : 180 MiB (3%)
Title : Stereo
Language : English
Service kind : Complete Main
Default : No
Forced : No
Duration_Source : General_Duration

ID : 4
Format : VobSub
Codec ID/Info : Picture based subtitle format used on DVDs
Language : English
Default : Yes
Forced : No

00:00:00.000 : en:Chapter 01
00:02:46.766 : en:Chapter 02
00:09:47.720 : en:Chapter 03
00:15:11.343 : en:Chapter 04
00:22:09.928 : en:Chapter 05
00:34:13.151 : en:Chapter 06
00:37:08.192 : en:Chapter 07
00:46:18.742 : en:Chapter 08
00:50:44.808 : en:Chapter 09
00:56:05.528 : en:Chapter 10
01:02:40.757 : en:Chapter 11
01:16:32.588 : en:Chapter 12
01:22:33.248 : en:Chapter 13
01:29:46.347 : en:Chapter 14
01:35:48.709 : en:Chapter 15
01:42:01.782 : en:Chapter 16
01:54:59.125 : en:Chapter 17
01:57:23.936 : en:Chapter 18
02:01:17.670 : en:Chapter 19

i think i did this in order to make the client pi’s able to connect. maybe that wasn’t necessary? if not, let me know. i think for me the easiest way to fix, so that i don’t screw up bookmarks that are already linked to specific files, would be to go into mysql and change the path for the specific pathid for these files. Sound good to you? Thank you again for your help here.

Don’t change the database entries. To achieve a single database between local attached and remote clients use path substitution (see below) .
Alternatively you can use Kernel Mounts on all and mount the disks/shares on all of them on the same folders.
While you may even get away with the extra loop going through Samba as you do now it is surely extra burden.

If you would like to use a MySQL database for several Kodi clients that use different methods to access the shared media (e.g. a mix of SMB, NFS and/or system mount based access), or have need of modifying a path of an existing source (such as converting from a Kodi path to a system mount) you can use the path substitution function of Kodi to facilitate this. The following guide will provide instruction on how this works, including a section specific to MySQL usage and how your sources should be configured.

Please see [HowTo] Repairing File Paths with Path Substitution for details.