Audio issues on Vero 4K

I’m wondering if it’s performance related.

You’re playing AV1 content, and this is quite taxing as it is software decoded.
Do you experience the issue with HEVC content?

It happens on almost everything I play; it’s unlikely to all be AV1. I’ll check though.

If it’s a limitation of the hardware shouldn’t everyone have this issue? Or is my hardware having issues?

People aren’t really playing AV-1 content outside of YouTube, and even then, VP9 is served by default usually.

Your Vero 4K / 4K+ device doesn’t support AV-1 hardware acceleration. So playback falls back to software decoding. This is very taxing.

Our next generation of hardware will support AV-1 video acceleration.

How can I tell if it’s AV1 or HEVC? I checked the movie I was playing in the logs I supplied and that seems to be HEVC?

The file you seemed to play:

2023-04-09 16:52:42.539 T:2928     INFO <general>: CDVDVideoCodecFFmpeg::Open() Using codec: dav1d AV1 decoder by VideoLAN
2023-04-09 16:52:42.539 T:2928    ERROR <general>: ffmpeg[0xb0504d48X]: [libdav1d] Frame size limit reduced from 2147483647 to 67108864.
2023-04-09 16:52:42.540 T:2928    DEBUG <general>: CDVDVideoCodecFFmpeg - Updated codec: ff-libdav1d
2023-04-09 16:52:42.540 T:2928    DEBUG <general>: ExtractThumb - seeking to pos 2332344ms (total: 6997032ms) in /mnt/lestat/movies/Alien (1979)/Alien (1979).mkv
2023-04-09 16:52:42.543 T:3123    DEBUG <general>: CFileCache::Process - </mnt/lestat/movies/Alien (1979)/Alien (1979).mkv> cache completely reset for seek to position 9100030751

Shows that the dav1d (AV1 software decoder) was used.

We’ve only added AV1 support for thumbnail parsing. Playback performance will be terrible on this generation of hardware; but will be resolved with the next model of device. AV1 codec wasn’t a possibility at the time 4K and 4K + were released.

Thanks

Sam

I didn’t watch that movie though; the sound issues occured while watching Dr Strange 2 in the first logs, and Avatar 2 in the second set. Apparently only browsed over Alien and that loaded the thumbnail?

Or am I misunderstanding you?

I’ve checked this again as I was skimming logs on a travel laptop.

The problem is that you have scraping on while playing. That’s normally fine, but the dav1d (AV1) decoder is very expensive in CPU cycles and as it extracts thumbnails it kills playback performance.

You won’t be able to play AV-1 titles on this revision of hardware but if you want to keep those titles then I suggest fully scraping your library first before initiating playback.

Cheers

Sam

Ah ok, I just have it set to update the library every 2 hours or so; so the problems happened if I happened to be watching something during that scheduled update? That would explain the apparent randomness of the sound cuts I guess.

I checked and I only have 3 movies with the AV1 codec; they were causing the problems every single library update? I’ll see about replacing those.

If you intend to play them on your Vero, you should indeed replace them – at least for this model of hardware.

Ok thanks. Weird that even updating the library with those movies in there would cause these issues.

That’s because the decoder is being used to generate thumbnails.

If you want to leave the files in place and they are in their own subfolder then you can add an empty text file inside the folder these movies are in named “.nomedia” (if memory serves in Windows you have to enter it as “.nomedia.”) and Kodi will skip anything in that path. You might need to turn on showing file extensions in Windows as a “.nomedia…txt” file will not work.

Thank all for the help. Issue is solved (or at least explained).

Will keep an eye out for that new version of the Vero; not for this issue specifically, more in general :slight_smile:

The issue is actually still happening, even without any AV1 movies in my library. Watched a 2 hour movie last night and the sound was cutting out regularly for like half a second throughout the movie. If a library update was running I could understand the hardware being busy but that wouldn’t last for 2 hours.

A new log might provide some insight.

Here you go https://paste.osmc.tv/ugawiticof

There’s a discontinuity.

2023-04-26 19:41:43.874 T:2910    DEBUG <general>: ActiveAE::SyncStream - average error -3.020148 below threshold of 30.000000
2023-04-26 19:41:44.014 T:2914    DEBUG <general>: CEGLNativeTypeAmlogic: Detected HDMI switch
2023-04-26 19:41:46.904 T:3112    DEBUG <general>: CDVDClock::ErrorAdjust - CVideoPlayerAudio::OutputPacket - error:-40892.737663, adjusted:-41708.333333
2023-04-26 19:41:48.632 T:3110    DEBUG <general>: CPtsTracker: detected pattern of length 1: 41708.24, frameduration: 41708.333333

Do you have a quick MediaInfo of the file? I just want to check something.

Here’s is info on the 3 files I’ve sent logs for. They all have similar issues. The last screenshot is from the most recent logs. I haven’t counted but it feels like the sound cutting out happened more in the most recent recent set.

image

Can you post the text version of MediaInfo output?

Something doesn’t quite add up here – need to check

Sam

Here you go. Top output is from my most recent OSMC logs. Middle output is from the previous logs. Bottom output is from Tad Lasso ep 6, which I was watching tonight and was constantly cutting out.

1:

General
Complete name : J:\Series\Succession\Season 2\Succession - 02x01 - The Summer Palace.mp4
Format : MPEG-4
Format profile : Base Media
Codec ID : isom (isom/iso2/avc1/mp41)
File size : 1.82 GiB
Duration : 1 h 2 min
Overall bit rate mode : Variable
Overall bit rate : 4 159 kb/s
Frame rate : 23.976 FPS
Encoded date : 2019-08-12 13:53:03 UTC
Tagged date : 2019-08-12 13:53:03 UTC
Writing application : Lavf58.30.100

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : Progressive High@L4.1
Format settings : CABAC / 5 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1 h 2 min
Bit rate mode : Variable
Bit rate : 3 778 kb/s
Maximum bit rate : 24.0 Mb/s
Width : 1 920 pixels
Height : 1 080 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
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.076
Stream size : 1.65 GiB (91%)
Writing library : x264 core 157 r2969
Encoding settings : cabac=1 / ref=6 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=34 / lookahead_threads=5 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=1 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=3778 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=24000 / vbv_bufsize=24000 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date : 2019-08-12 13:53:03 UTC
Tagged date : 2019-08-12 13:53:03 UTC
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709
Codec configuration box : avcC

Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Commercial name : Dolby Digital
Codec ID : ac-3
Duration : 1 h 2 min
Bit rate mode : Constant
Bit rate : 384 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
Stream size : 172 MiB (9%)
Language : English
Service kind : Complete Main
Default : Yes
Alternate group : 1
Encoded date : 2019-08-12 13:53:03 UTC
Tagged date : 2019-08-12 13:53:03 UTC

Text
ID : 3
Format : Timed Text
Muxing mode : sbtl
Codec ID : tx3g
Duration : 1 h 2 min
Bit rate mode : Variable
Bit rate : 91 b/s
Frame rate : 0.620 FPS
Stream size : 41.7 KiB (0%)
Language : English
Default : Yes
Forced : No
Alternate group : 3
Encoded date : 2019-08-12 13:53:03 UTC
Tagged date : 2019-08-12 13:53:03 UTC
Count of events : 1166

2:

General
Unique ID : 97685084522643733681971516068973085021 (0x497D76833FFEBA059DB03CE9D4DD815D)
Complete name : J:\Movies\Avatar The Way of Water (2022)\Avatar The Way of Water (2022).mkv
Format : Matroska
Format version : Version 4
File size : 8.21 GiB
Duration : 3 h 12 min
Overall bit rate : 6 098 kb/s
Frame rate : 23.976 FPS
Encoded date : 2023-03-27 17:39:26 UTC
Writing application : mkvmerge v67.0.0 (‘Under Stars’) 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4

Video
ID : 1
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5.1@High
HDR format : Dolby Vision, Version 1.0, dvhe.08.06, BL+RPU, HDR10 compatible / SMPTE ST 2094 App 4, Version 1, HDR10+ Profile A compatible
Codec ID : V_MPEGH/ISO/HEVC
Duration : 3 h 12 min
Bit rate : 5 328 kb/s
Width : 3 840 pixels
Height : 2 072 pixels
Display aspect ratio : 1.85:1
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.028
Stream size : 7.17 GiB (87%)
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.2020
Transfer characteristics : PQ
Matrix coefficients : BT.2020 non-constant
Mastering display color primaries : BT.2020
Mastering display luminance : min: 0.0050 cd/m2, max: 1000 cd/m2
Maximum Content Light Level : 412 cd/m2
Maximum Frame-Average Light Level : 201 cd/m2

Audio
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : A_EAC3
Duration : 3 h 12 min
Bit rate mode : Constant
Bit rate : 768 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
Stream size : 1.03 GiB (13%)
Language : English
Service kind : Complete Main
Default : No
Forced : No
Complexity index : 16
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE

Text #1
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 3 h 1 min
Bit rate : 38 b/s
Frame rate : 0.216 FPS
Count of elements : 2359
Stream size : 51.6 KiB (0%)
Language : English
Default : Yes
Forced : No

Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 3 h 8 min
Bit rate : 56 b/s
Frame rate : 0.304 FPS
Count of elements : 3447
Stream size : 78.4 KiB (0%)
Title : SDH
Language : English
Default : Yes
Forced : No

Text #3
ID : 5
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 3 h 2 min
Bit rate : 40 b/s
Frame rate : 0.221 FPS
Count of elements : 2411
Stream size : 53.5 KiB (0%)
Title : Latin American
Language : Spanish
Default : No
Forced : No

3:

General
Unique ID : 145785163710387646872130557255811696468 (0x6DAD338365DDDFE6BB3EDC6A6EE18754)
Complete name : J:\Series\Ted Lasso (2013)\Season 3\Ted Lasso - 03x06 - Sunflowers.mkv
Format : Matroska
Format version : Version 4
File size : 1.58 GiB
Duration : 1 h 3 min
Overall bit rate : 3 577 kb/s
Frame rate : 23.976 FPS
Writing application : mkvmerge v49.0.0 (‘Sick Of Losing Soulmates’) 64-bit
Writing library : libebml v1.4.0 + libmatroska v1.6.1

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L3.2
Format settings : CABAC / 5 Ref Frames
Format settings, CABAC : Yes
Format settings, Reference frames : 5 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 3 min
Bit rate : 2 738 kb/s
Width : 1 356 pixels
Height : 678 pixels
Display aspect ratio : 2.000
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.124
Stream size : 1.21 GiB (77%)
Language : English
Default : Yes
Forced : No
Color range : Limited
Color primaries : BT.709
Transfer characteristics : BT.709
Matrix coefficients : BT.709

Audio
ID : 2
Format : E-AC-3 JOC
Format/Info : Enhanced AC-3 with Joint Object Coding
Commercial name : Dolby Digital Plus with Dolby Atmos
Codec ID : A_EAC3
Duration : 1 h 3 min
Bit rate mode : Constant
Bit rate : 768 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
Stream size : 347 MiB (21%)
Language : English
Service kind : Complete Main
Default : Yes
Forced : No
Complexity index : 16
Number of dynamic objects : 15
Bed channel count : 1 channel
Bed channel configuration : LFE