High bitrate EAC3 audio stutters if transcoded by Linux PMS

Also having what seems to be the same issue: Nvidia Shield TV Pro 2019 (Optical passthrough) - EAC3 stutters

1 Like

Version 1.31.3.6868 did not solve this issue.

Folks.

Good news coming.

  1. The high bitrate problem is in the driver

  2. Yesterday, I was tasked to test FreeBSD.

  3. When I have completed testing of FreeBSD

  4. The new media driver can be released to all platforms.

( I spoke to the mountain and the mountain spoke back. :rofl: )

2 Likes

Version 1.32.0.6918 did not solve this issue.

Version 1.32.0.6918 did not solve this problem for me either. Any updates?

Folks:

There is no need to “me too” this as the current status is posted directly above.

Thank you.

I can update folks in that FreeBSD (the blocker for fixing this) is almost resolved.
(It’s a difficult OS to work with given everything is written for Linux)

Version 1.32.0.6950 did not solve this issue.

Good news…

FINALLY

The intel media driver (at the heart of this) is being updated. :slight_smile:

When I get a test build, I’ll loop everyone in and we can confirm it’s resolved.

1 Like

Version 1.32.0.6973 did not solve this issue.

ALL:

I have a developer build with the updated Intel Media Driver.

I will transfer to my Gdrive for you to download

Please let me know what’s needed so I don’t transfer the entire build

I have this one:

and this one

I just tried the deb (I’m on Debian 11 x64) and the bug is still there.

Plex Media Server Logs_2023-04-21_10-09-36.zip (332.8 KB)

Thanks,

@ktm_91

Can you cut me a small enough sample to replicate so I can run through the debugger and see where the Dolby codec is failing?

( Intel Media Driver is ok now so on to the Dolby layer )

@ktm_91

Looking through your logs further.

Your database is a disaster or the host is overloaded.

Apr 21, 2023 10:07:08.062 [140287274847032] WARN - [Req#198/Transcode] [FFMPEG] - No quality level set; using default (20).
Apr 21, 2023 10:07:27.166 [140287278029624] WARN - [Req#36a] SLOW QUERY: It took 11310.000000 ms to retrieve 89 items.
Apr 21, 2023 10:07:54.263 [140287278029624] WARN - LPE: falling back to slow path evaluation: /library/metadata/9297/grandchildren?excludeAllLeaves=1
Apr 21, 2023 10:07:54.474 [140287278029624] WARN - LPE: falling back to slow path evaluation: /library/metadata/9297/grandchildren?excludeAllLeaves=1

11 secconds to make a DB query?? 89 items should be 2-3 milliseconds.

That could be your stutter right there

LPE failures mean scanning and media don’t match each other.
You need to get that cleared up

Sure, here it is: Old Henry.zip (4.3 MB)

As for the DB issue, how can I clear it up?

I’ll work on the file this weekend

As for the DB

  1. Scan files (so all pathnames are updated)
  2. Refresh metadata (completes updating the LPE)
  3. Clean bundles
  4. Optimize Dabase
  5. Stop Plex
  6. Give it a bit extra time to stop and write out the DB
  7. Start

If we still see the errors, I’ll give you the tool I have which will perform a full optimize.

What does this mean exactly?

I’m running an AMD CPU with an nVidia GPU for HW transcoding, would that updated driver still correct the issue?

Edit: I went ahead and installed the update, I don’t see the issue resolved. Still audio that cuts in/out constanly every 100-200ms

Let me know what’s needed.
(as in which package files do I need to put in my google drive)

Give this one a shot.

Tried this as well, still seeing the stuttering. It also stops playing the video after 11 seconds, though Tautulli reports the transcoder has progressed 11% of the video (~162 seconds).

SEEING it stuttering?

Logs please ?

“Experiencing” would be more accurate, unless I have synesthesia…
However it does seem the video stutters a bit too, not just the audio.
This video sample might show that: Desktop 2023.05.10 - 21.28.27.04

Interestingly I stopped Plex, deleted all old logs, then tried playing the file and it made it further than the 11 seconds shown in the video above.

If needed I can also cut a small piece of the video and provide that as well, for testing.

mediainfo

General
Unique ID : 327580442759455351866619637263781374944 (0xF671B2C9BA0E4C1E3B90584EF1F0ABE0)
Complete name : /mnt/storage/plexstaging/tv/Star Trek Lower Decks/Star Trek Lower Decks - S01E01 - Second Contact - 1080p.BluRay.DDP5.1.H.264.mkv
Format : Matroska
Format version : Version 4
File size : 2.94 GiB
Duration : 24 min 35 s
Overall bit rate mode : Variable
Overall bit rate : 17.1 Mb/s
Encoded date : UTC 2021-05-20 06:22:33
Writing application : mkvmerge v55.0.0 (‘Waiting For Space’) 64-bit
Writing library : libebml v1.4.2 + libmatroska v1.6.4 / Lavf58.45.100

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, Reference frames : 4 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 24 min 35 s
Bit rate mode : Variable
Bit rate : 15.6 Mb/s
Maximum bit rate : 40.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
Standard : Component
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.313
Stream size : 2.67 GiB (91%)
Writing library : x264 core 155
Encoding settings : cabac=1 / ref=4 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=1 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=34 / lookahead_threads=5 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=0 / minigop=1 / stitchable=1 / constrained_intra=0 / bframes=9 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=0 / keyint=250 / keyint_min=1 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=0 / crf=16.0 / qcomp=0.60 / qpmin=3 / qpmax=69 / qpstep=4 / vbv_maxrate=40000 / vbv_bufsize=40000 / crf_max=51.0 / nal_hrd=vbr / filler=0 / ip_ratio=1.40 / pb_ratio=1.30 / aq=3:0.80
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
Format/Info : Enhanced AC-3
Commercial name : Dolby Digital Plus
Codec ID : A_EAC3
Duration : 24 min 35 s
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 6 channels
Channel layout : L R C LFE Ls Rs
Sampling rate : 48.0 kHz
Frame rate : 62.500 FPS (768 SPF)
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 270 MiB (9%)
Title : Surround 5.1
Writing library : Lavc58.91.100 eac3
Language : English
Service kind : Complete Main
Default : Yes
Forced : No

Text #1
ID : 3
Format : PGS
Muxing mode : zlib
Codec ID : S_HDMV/PGS
Codec ID/Info : Picture based subtitle format used on BDs/HD-DVDs
Duration : 24 min 20 s
Bit rate : 74.3 kb/s
Frame rate : 0.660 FPS
Count of elements : 964
Stream size : 12.9 MiB (0%)
Title : Image
Language : English
Default : No
Forced : No

Text #2
ID : 4
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Duration : 24 min 19 s
Bit rate : 118 b/s
Frame rate : 0.412 FPS
Count of elements : 601
Stream size : 21.2 KiB (0%)
Title : Text
Language : English
Default : No
Forced : No

Menu
00:00:00.000 : :Chapter 01
00:02:49.294 : :Chapter 02
00:07:59.312 : :Chapter 03
00:13:19.381 : :Chapter 04
00:23:31.410 : :Chapter 05

Plex Media Server Logs_2023-05-10_21-35-40.zip (268.8 KB)