Stuttering video and 100% CPU

I have suttering/lag issues when playing videos on my Vero 4k+. I have noticed this usually only happens with anime .mkv files that are high quality (4gb+ for 25min episode), but I could be wrong. The files play fine on my Windows/Ubuntu machine by using VLC, but stutter and make my Vero 4k+ unresponsive and even crash sometimes (can’t reproduce though, very rarely happens).

I’ve enabled debug logging and rebooted the device twice, then started playing my sample video file for 2 minutes, then grabbed these logs:
http://paste.osmc.tv/gitedayihu

Here’s the media info of the file:

  ~  mediainfo Neon.Genesis.Evangelion.S01E01.Angel.Attack.HDTV-720p.mkv 
General
Unique ID                                : 225345005003599238889228022966197304211 (0xA987DE8A25924E0698AA415AEED63B93)
Complete name                            : Neon.Genesis.Evangelion.S01E01.Angel.Attack.HDTV-720p.mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 3.28 GiB
Duration                                 : 23 min 21 s
Overall bit rate mode                    : Variable
Overall bit rate                         : 20.1 Mb/s
Encoded date                             : UTC 2018-01-13 01:07:48
Writing application                      : mkvmerge v18.0.0 ('Apricity') 64-bit
Writing library                          : libebml v1.3.5 + libmatroska v1.4.8
Attachments                              : 26746_0.ttf / FRADM_0.TTF / GLECB_0.TTF / JESFE_0.ttf / Marker SD_0.ttf

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 10@L4.1
Format settings                          : CABAC / 5 Ref Frames
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 5 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 23 min 21 s
Bit rate                                 : 18.3 Mb/s
Width                                    : 1 440 pixels
Height                                   : 1 080 pixels
Display aspect ratio                     : 4:3
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.491
Stream size                              : 2.99 GiB (91%)
Writing library                          : x264 core 129 r2245+729M 1a52e03
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=11 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.10 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=0 / crf=17.0 / qcomp=0.70 / qpmin=0 / qpmax=81 / qpstep=4 / vbv_maxrate=62500 / vbv_bufsize=78125 / crf_max=0.0 / nal_hrd=none / ip_ratio=1.40 / pb_ratio=1.30 / aq=3:0.70
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : FLAC
Format/Info                              : Free Lossless Audio Codec
Codec ID                                 : A_FLAC
Duration                                 : 23 min 21 s
Bit rate mode                            : Variable
Bit rate                                 : 1 816 kb/s
Channel(s)                               : 6 channels
Channel layout                           : L R C LFE Ls Rs
Sampling rate                            : 48.0 kHz
Frame rate                               : 11.719 FPS (4096 SPF)
Bit depth                                : 16 bits
Compression mode                         : Lossless
Stream size                              : 304 MiB (9%)
Writing library                          : libFLAC 1.2.1 (UTC 2007-09-17)
Language                                 : Japanese
Default                                  : Yes
Forced                                   : No
MD5 of the unencoded content             : BE172F9D848235D1B1C06F479F7A707E

Text
ID                                       : 3
Format                                   : ASS
Codec ID                                 : S_TEXT/ASS
Codec ID/Info                            : Advanced Sub Station Alpha
Duration                                 : 23 min 20 s
Bit rate                                 : 121 b/s
Frame rate                               : 0.246 FPS
Count of elements                        : 344
Compression mode                         : Lossless
Stream size                              : 20.7 KiB (0%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Menu
00:00:00.000                             : ja:Opening
00:01:30.424                             : ja:A-part
00:10:59.367                             : ja:Eyecatch
00:11:03.621                             : ja:B-part
00:22:00.486                             : ja:Ending
00:23:05.926                             : ja:Preview

I’ve cut a one minute sample from the original video if that helps, here’s the link: https://we.tl/t-WGDMvac2y2

I can also provide the full video (dm me).

Hi,

10 bit h264 isn’t supported.

I suggested re-encoding as 8bit h264 or h265.

Regards Tom.

1 Like

Thanks for the answer.

Looks like 10 bit h264 is something commonly used by the Anime scene, had no idea thats something that doesn’t work well on most hardware.

What is the best format for Vero, 8bit h264 or h265? What about 10 bit h265?

Hi,

Either will work fine, but I’d go with 8 bit h264.

Regards Tom.

1 Like

Thanks for the info.

I’ve just found better x265 rips and replaced the bad x264 10bit rips as it’s faster than re-encoding everything I have on my disk.

Created a quick bash script that finds all x264 10-bit content on my disk, if anyone finds this useful:

1 Like