Intermittent: corrupt frames / second long freeze (vero4k)

Occasionally playback (audio and video) stops for a second or two, before rendering a garbled frame and continuing. If a movie does this, it will keep doing it every 10-15 minutes, sometimes even more frequently.

It’s happened with several different videos and I’m unsure how to troubleshoot it. They’re all decent rips, hardware accelerated and I get nothing in the logs. I have installed all updates and run only two plugins - a filesystem watchdog and a subtitle downloader.

Attaching a sample screen from Spider Man Homecoming (H264, AAC 5.1).

Whats my next step - how do I troubleshoot this?

Can you try playing back something that worked without issue before?

Can you post debug logs?
Can you try playing the file from local storage?

Thanks for the quick reply. Some more info:

It’s been happening for at least 2 weeks. Everything is on local storage, USB3 drive. Both the Vero and these files are all new so I don’t have any “known good” samples or previous state to compare too.

Can you help me with the debug log? Im not sure how to activate nor find and share them. In the menus there’s a bunch of different settings for logging. “Events” doesn’t provide anything (other than the occasional library scan failure on poorly named files) and the other pukes debug output over the screen (not sure if it logs anything tbh).

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

1 Like

Thanks for that link! (Note to whomever is in charge of that page - some information needs updating
Settings -> System -> Logging -> and selecting Enable Debugging should be: Config (gear icon) -> System settings -> Logging (at least in the default skin). Similar, but different enough to be confusing.

Here’s my log: https://paste.osmc.tv/erubozuxod

I took these steps to create it:

  1. enabled debug logging, rebooted
  2. resumed “Spider-Man.Homecoming.2017.1080p.BluRay.H264.AAC-RARBG.mp4” at point just before corruption
  3. video froze, audio desynced, subtitles continued on. (when resuming near corrupted segment, it sometimes crashes, it sometimes desyncs like this.)
  4. stopped playback once it had stabilized and was running well again.
  5. ran paste-log /home/osmc/.kodi/temp/kodi.log

Here’s MediaInfo output for three files I know has caused issues lately.

General
Complete name                            : D:\Temp\Spider-Man Homecoming (2017)\Spider-Man.Homecoming.2017.1080p.BluRay.H264.AAC-RARBG.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 2.55 GiB
Duration                                 : 2 h 13 min
Overall bit rate                         : 2 730 kb/s
Movie name                               : Spider-Man.Homecoming.2017.1080p.BluRay.H264.AAC-RARBG
Encoded date                             : UTC 2017-10-03 01:44:10
Tagged date                              : UTC 2017-10-03 01:44:10
Writing application                      : Lavf57.71.100
Comment                                  : Spider-Man.Homecoming.2017.1080p.BluRay.H264.AAC-RARBG

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2 h 13 min
Bit rate                                 : 2 500 kb/s
Width                                    : 1 920 pixels
Height                                   : 808 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 (23976/1000) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.067
Stream size                              : 2.33 GiB (92%)
Writing library                          : x264 core 152 r2851M ba24899
Encoding settings                        : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=32 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=2500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=3:1.00
Encoded date                             : UTC 2017-10-03 01:44:10
Tagged date                              : UTC 2017-10-03 01:44:10

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 2 h 13 min
Bit rate mode                            : Constant
Bit rate                                 : 224 kb/s
Channel(s)                               : 2 channels
Channel(s)_Original                      : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 214 MiB (8%)
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2017-10-03 01:44:10
Tagged date                              : UTC 2017-10-03 01:44:10

==

General
Unique ID                                : 205521260200736377975886323097973013356 (0x9A9DF475D36B4DFD8E693C9FE263BB6C)
Complete name                            : D:\Temp\Monsters vs Aliens (2009)\Monsters.Vs.Aliens.2009.1080p.BluRay.x264-CiNEFiLE.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 4.37 GiB
Duration                                 : 1 h 34 min
Overall bit rate                         : 6 633 kb/s
Encoded date                             : UTC 2009-09-13 01:57:37
Writing application                      : mkvmerge v2.8.0 ('The Tree') built on May  9 2009 18:02:06
Writing library                          : libebml v0.7.7 + libmatroska v0.8.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4
Format settings                          : CABAC / 5 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 5 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1 h 34 min
Bit rate                                 : 5 991 kb/s
Width                                    : 1 920 pixels
Height                                   : 816 pixels
Display aspect ratio                     : 2.35:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.159
Stream size                              : 3.86 GiB (88%)
Writing library                          : x264 core 75 r1251 e553a4c
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=12 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=5991 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Codec ID                                 : A_AC3
Duration                                 : 1 h 34 min
Bit rate mode                            : Constant
Bit rate                                 : 640 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 432 MiB (10%)
Service kind                             : Complete Main
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : English
Default                                  : No
Forced                                   : No

==

General
Complete name                            : D:\Temp\The Shape of Water (2017)\The.Shape.of.Water.2017.1080p.BluRay.H264.AAC-RARBG.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 2.35 GiB
Duration                                 : 2 h 3 min
Overall bit rate                         : 2 730 kb/s
Movie name                               : The.Shape.of.Water.2017.1080p.BluRay.H264.AAC-RARBG
Encoded date                             : UTC 2018-02-28 03:05:02
Tagged date                              : UTC 2018-02-28 03:05:02
Writing application                      : Lavf57.83.100
Comment                                  : The.Shape.of.Water.2017.1080p.BluRay.H264.AAC-RARBG

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, RefFrames               : 4 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2 h 3 min
Bit rate                                 : 2 500 kb/s
Width                                    : 1 920 pixels
Height                                   : 1 040 pixels
Display aspect ratio                     : 1.85:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 (23976/1000) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.052
Stream size                              : 2.15 GiB (92%)
Writing library                          : x264 core 152 r2851M ba24899
Encoding settings                        : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=32 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=2500 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=3:1.00
Encoded date                             : UTC 2018-02-28 03:05:02
Tagged date                              : UTC 2018-02-28 03:05:02

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : mp4a-40-2
Duration                                 : 2 h 3 min
Bit rate mode                            : Constant
Bit rate                                 : 224 kb/s
Channel(s)                               : 2 channels
Channel(s)_Original                      : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 46.875 FPS (1024 SPF)
Compression mode                         : Lossy
Stream size                              : 198 MiB (8%)
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 2018-02-28 03:05:02
Tagged date                              : UTC 2018-02-28 03:05:02

The default skin is OSMC for which the instructions are correct so you either changed your skin or you use the testing branch of Kodi (Leia) for which OSMC skin is not available.

Gear icon could just as easily signify settings as it could config. I don’t see this as a significant issue at all.

Sorry, I thought the trouble shooting article was related to the Vero 4K, which I am running with default settings.

Well the article is for the Vero4K. But even on the Vero4K the default skin is the OSMC skin which this explanation fits

23:12:26.445 T:4082262608 INFO: Unloading old skin … 23:12:26.452 T:4082262608 INFO: load skin from: /usr/share/kodi/addons/skin.estuary (version: 1.9.16

Well that egg is firmly on my face! I have absolutely no memory of changing the skin, but I just double checked and I am indeed running Estuary. My bad!

  1. Copy the file to a computer and try playing it using any reasonable video player (VLC, MPC-HC, what have you). If they play OK on another device, continue.
  2. Try playing the file from local storage connected to the Vero. If you still have playback issues, continue.
  3. Follow the instructions here to ask for help: How to submit a useful support request - General - OSMC

My issue would’ve been resolved at step 1 - it turns out the movies I had problems with were actually corrupt and needed to be replaced.

1 Like