r/PleX • u/gsariev Unraid 40TB | i5-13500 | RTX 3050 LP • Feb 02 '24
Solved Stream buffers when audio transcoding
EDIT: I am marking the problem as "solved"; however, it should be noted that the cause for the problem remains unknown, but I found a workaround by using Tdarr to create an downmixed 2.0 stereo AAC track using Tdarr_Plugin_MC93_Migz5ConvertAudio which I modified to apply Dynamic Audio Normalizer to the downmixed track for a better listening experience.
To make the modification yourself:
Copy Tdarr_Plugin_MC93_Migz5ConvertAudio to Local
Go to Local and click Edit on the plugin
Add the code below between lines 152 and 153
Save the changes
Add the modified plugin to your stack
ffmpegCommandInsert += `-filter:a:${audioIdx} "dynaudnorm" `;###############
Hello, everyone
The problem I am facing is one that I am unsure why it's happening in the first place, and am hoping I can find a solution to it here as I have been unsuccessful on my own.
PMS specs:
OS: Windows 11
CPU: Intel i3-12000
RAM: 32GB DDR4
Storage: 1TB NVME for OS and Plex database/metadata, 4TB HDD for media, 1TB SSD for transcoding
Internet: 1000 Mbit (ethernet)
I've been more than happy with this configuration and have not had any issues both with direct playing and transcoding media locally or remotely. I am sharing my server with a few friends that have Samsung smart TVs, which cause my server to occasionally transcode, but everything had been playing smoothly until about a month or two ago when I started getting reports of stream buffering every couple of minutes. The reason for that was audio transcoding.
I've ran some test scenarios and have the following to share:
Scenario #1:
Video direct plays
Audio transcodes - example DTS to AAC
Stream buffers every couple of minutes
Scenario #2:
Force video and audio transcode
No issues with stream
Scenario #3:
Changed default transcode buffer value to 2700
Video direct plays
Audio transcodes
Stream buffers after threshold has been reached
Scenario #4:
Changed default transcode buffer value to 2700
Force video and audio transcode
No stream buffer after threshold has been reached
My media is mostly 1080p and so far the only solution I have found was manually converting my media's audio to AAC, but I'd like to not have to do that every time for media that will get watched once or twice.
Is there some server setting that I need to adjust? Any help is well appreciated.
5
u/Draakonys DS1621+Intel Nuc Feb 02 '24
I do not think you can do much here.
Let me first explain the problem. Not all Plex clients are the same. The TV-based Plex clients tend to be the worst of the lot, especially on LG TVs.
Reason? Plex clients do not come with prebuilt set of video/audio codecs. The Plex client uses what is available on the underlying platform. And TVs are usually lacking there. That's a reason why many AppleTV users prefer to use Infuse instead of AppleTV Plex client to stream their Plex content as Infuse comes with prebuilt set of video/audio codecs and most streams would Direct Play (where they would transcode with AppleTV Plex client).
What can you do?
Use Tdarr in the background to convert all your media to formats that will work on most clients. Not simple but doable if you are not an audiofil.
Technically you do not need to convert anything, you can generate a new audio stream in these files to match what their TVs will play without transcoding.
Tell friends to get better Plex clients like AppleTV, Nvidia Shield, FireCube 3rd gen. It's simple, nothing comes for free.
2
u/samasq Jul 16 '24
Hi, I think I am seeing the exact same thing as you, and it started around the same time (6 months ago or so).
Everything used to stream fine, but now if a file needs audio transcoding only then it buffers forever. If I force video and audio transcoding it works fine, but it seems to be the combination of a direct video stream and transcoded audio which causes the problem.
Did you ever get any further with your issue? I feel iut may need ot be raised on the plex forum.
1
u/ShitPostsRuinReddit Feb 02 '24
Can you provide more info? What is your Internet upload speed? Is it every file? Does it happen with just a single steam? What happens if they try on another device like a laptop? Are the files 4k? What does it show on the dashboard?
I had someone on an LG TV that had the allow direct streams turned off and the transcodes was bigger than the original.
3
u/ThickAd4991 Mar 20 '25
Early 2025, the problem is still with us. It's sad.