Video stuttering after some minutes

Device: RPi 2 / OSMC → always newest updates

Problem: Video is playing like slowmotion and no sound
One CPU Core is at 100%

Log output:

 20:14:31  44.415508 T:1956901808  NOTICE: DVDPlayer: Opening: smb://NAS12TB/Videos/Serien/xxxxx/.BL.409.DVBRip.XviD.avi
20:14:31  44.415829 T:1956901808 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
20:14:31  44.421246 T:1521480688  NOTICE: Creating InputStream
20:14:31  44.437042 T:1521480688  NOTICE: Creating Demuxer
20:14:34  46.704861 T:1521480688  NOTICE: Opening stream: 0 source: 256
20:14:34  46.714073 T:1521480688  NOTICE: Creating video codec with codec id: 13
20:14:34  46.728397 T:1521480688  NOTICE: Creating video thread
20:14:34  46.728798 T:1521480688  NOTICE: Opening stream: 1 source: 256
20:14:34  46.729042 T:1521480688  NOTICE: Finding audio codec for: 86017
20:14:34  46.729183 T:1478480880  NOTICE: running thread: video_thread
20:14:34  46.729790 T:1521480688  NOTICE: Creating audio thread
20:14:34  46.730408 T:1470092272  NOTICE: running thread: CDVDPlayerAudio::Process()
20:14:34  46.807316 T:1470092272  NOTICE: Creating audio stream (codec id: 86017, channels: 2, sample rate: 48000, no pass-through)
20:14:34  46.807842 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:14:34  46.835972 T:1478480880  NOTICE:  fps: 25.000000, pwidth: 720, pheight: 400, dwidth: 720, dheight: 400
20:14:34  46.836308 T:1478480880  NOTICE: Display resolution DESKTOP : 1920x1080 (1920x1080) @ 60.00 - Full Screen (16)
20:14:34  46.845364 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 24
20:14:34  46.946198 T:1470092272  NOTICE: Previous line repeats 1 times.
20:14:34  46.946392 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 24
20:14:34  46.948559 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:18:50 303.635834 T:1602221040  NOTICE: Previous line repeats 1 times.
20:18:50 303.636322 T:1602221040  NOTICE: AddOnLog: PVR IPTV Simple Client: EPG Loaded.
20:20:47 419.859589 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:20:47 419.861816 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 24
20:20:47 419.865631 T:1470092272  NOTICE: Previous line repeats 2 times.
20:20:47 419.865814 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 1 packets of duration 24
20:20:47 419.949371 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:21:15 448.510925 T:1470092272  NOTICE: Previous line repeats 2 times.
20:21:15 448.511200 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 4 packets of duration 24
20:21:15 448.512543 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket duplicate 3 packets of duration 24
20:21:15 448.588074 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:23:34 587.632690 T:1478480880  NOTICE: Previous line repeats 2346 times.
20:23:34 587.632935 T:1478480880 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
20:23:35 587.660095 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:23:54 607.061707 T:1602221040  NOTICE: Previous line repeats 481 times.
20:23:54 607.061890 T:1602221040  NOTICE: AddOnLog: PVR IPTV Simple Client: EPG Loaded.
20:23:54 607.091064 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:24:18 631.021301 T:1478480880  NOTICE: Previous line repeats 540 times.
20:24:18 631.021484 T:1478480880 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
20:24:18 631.025574 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:26:44 776.968628 T:1478480880  NOTICE: Previous line repeats 3031 times.
20:26:44 776.968872 T:1478480880 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
20:26:44 776.974976 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:27:40 833.522705 T:1478480880  NOTICE: Previous line repeats 1032 times.
20:27:40 833.522949 T:1478480880 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
20:27:40 833.562744 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24
20:27:51 843.689880 T:1478480880  NOTICE: Previous line repeats 166 times.
20:27:51 843.690186 T:1478480880 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
20:27:51 843.729126 T:1470092272  NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 24

`

We need full and complete debug enabled logs please.

To get a better understanding of the problem you are experiencing we need more information, including logs from you. Our wiki contains detailed steps for providing the relevant info we need to help you.

https://osmc.tv/wiki/general/how-to-submit-a-useful-support-request

Just to make it clear:
This is just an example. It happens with avi and mkv files. I guess it has nothing to do with the file format.
Nethertheless here is the log and the mediainfo:

Please use the official paste website

Kodi Log
http://paste.osmc.io/exuqavojum.vhdl

MediaInfo
http://paste.osmc.io/aropirobaj.tex

You need to enable debug logging in settings before capturing the log.
Ideally, enable debug. Reboot. Play file once demonstrating the issue.
Note the time when stutter occurs (pressing a harmless key/button is a good way of find the point of interest in the log).
Capture the log.

thanks, debugging is on now but I can not reproduce it. it just happens some times not always.

The debug file has no 1GB, I needed a special editor to even open it:
http://paste.osmc.io/ebemofofic.vhdl
This is just the part there the problem happend

I started the movie at 13:04.
13:04:05 103049.343750 T:1379922928 NOTICE: CDVDPlayerAudio::OutputPacket skipping a packets of duration 21
after the error occured I pressed pause:

13:04:12 103056.703125 T:1434448880   DEBUG: CMMALRenderer::GetImage - MMAL: image:0x557fe9ac source:1 ro:0 flight:0
13:04:12 103056.703125 T:1434448880   DEBUG: CMMALRenderer::AddProcessor - 0x54d91248 (0x5862dec8) 1
13:04:12 103056.703125 T:1434448880   DEBUG: CMMALVideoBuffer::Acquire 0x54d91248 (0x5862dec8) ref:2
13:04:12 103056.703125 T:1956586416   DEBUG: OnKey: 11 (0x0b) pressed, action is Select
13:04:12 103056.703125 T:1434448880   DEBUG: CMMALVideo::SetSpeed 1000->0
13:04:12 103056.710938 T:1421865968   DEBUG: CMMALVideoBuffer::CMMALVideoBuffer 0x55add380
13:04:12 103056.710938 T:1421865968   DEBUG: CMMALVideo::dec_output_port_cb - 0x5862d768 (0x55add380) buffer_size(128) dts:-9223372036854.775 pts:20.400 flags:10000004:0
13:04:12 103056.710938 T:1434448880   DEBUG: CMMALVideo::SetSpeed 0->0
13:04:12 103056.804688 T:1729885168   DEBUG: CDVDMsgGeneralSynchronize - global timeout
13:04:12 103056.804688 T:1729885168   DEBUG: CDVDPlayer - CDVDMsg::GENERAL_SYNCHRONIZE
13:04:12 103056.804688 T:1956586416   DEBUG: CDVDMsgGeneralSynchronize - global timeout
13:04:12 103056.804688 T:1956586416   DEBUG: CAnnouncementManager - Announcement: OnPause from xbmc

This is why How to submit a useful support request - General - OSMC specifically states:

You should then perform a reboot of your device and perform only the minimum actions required to replicate this issue so that it is easy to identify the cause of the problem.

As I told you I can not replicate it that easy. I have to wait until it appears.
The error was not there for days but now I catched it while running debug.
I could 7zip it to 60MB

I did everything you asked me for, it would be nice to get help here :slight_smile:
If nobody has an idea I have to reinstall osmc :frowning:
If you want to have a look at the full log:

File is compressed to 60MB and unzipped its 1GB

In windows I used 010 editor top open the 1gb file.