Stuttering with Strong Computer and subtitles enabled

Im at my wits end. I know this was a common problem but Ive searched and searched and just cant figure it out.
CPU: AMD Phenom II X6 1035t @ 3.145ghz (5644 Passmark Score)
Memory: 8GB DDR3
HDD:Mutliple Storage drives, OS on SSD
OS:Windows Server 2008 R2
Network: Gigabit Ethernet
Plex server: 1.3.3.3148
Router: Asus N66U with gigabit switch

I get stuttering when enabling subtitles, and only when enabling subtitles. I can force it to trans code a stream at 12Mbps/20Mbps whatever, and it is flawless. When I enable subtitels however I get intermittent stuttering or audio problems or crashes ect. This is with multiple different files, attempting to play back on multiple devices. CPU never goes above 50 percent. Plenty of RAM left. Hardwired over Ethernet. Disabled windows defender. Watching RESMON on the server during stuttering playback and I dont notice anything strange. How can I track down whats causing this issue? Thanks.

The question is not always the overall Passmarks of the processor. With subtitles, or any video processing, it is the per-thread throughput capability.

Subtitles, in your case, due to the player / client you’re using, obviously need to be burned-into the image. This is what mandates the transcoding and the demand for CPU resources. It’s still a largely single core process for each frame. yes, the others help with decoding, preparation, and subsequently output but only one can put thw subtitles onto the video frame.

If this is your processor, https://www.cpubenchmark.net/cpu.php?cpu=AMD+Phenom+II+X6+1090T

Take the total passmarks and divide by the number of cores to determine the per-core throughput.

This is my CPU http://www.cpubenchmark.net/cpu.php?cpu=Intel+Core+i7-3740QM+%40+2.70GHz&id=1481
I can only get 2 transcodes, and if sutitles are involved then only 1.

Thanks for the response. I dont understand why I can trans code any video at all at any bitrate, but the same exact video causes stuttering playback if the subtitles are enabled. The exact CPU is A AMD Phenom II X6 1035t running at 3.145


This is currently what Im running.
This is a snapshop while playing a stuttering file

If you will grab the XML (get info -> view XML) and post here for what this info represents, I’ll ask one of the transcoder team guys to take a look just to make sure I’m not missing something obvious…

its not just one file. I have tried to play multiple files and they all seem to give me difficulty. They are all pretty much 20+ GB .mkv files. Here is the xml of one that always gives me trouble.

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="7" librarySectionTitle="Movies" librarySectionUUID="46e9e0a2-8806-4694-b655-a7be4ad4c671" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1481830622"><Video ratingKey="61174" key="/library/metadata/61174" guid="com.plexapp.agents.imdb://tt0062622?lang=en" librarySectionID="7" studio="Stanley Kubrick Productions" type="movie" title="2001: A Space Odyssey" contentRating="G" summary="Humanity finds a mysterious object buried beneath the lunar surface and sets off to find its origins with the help of HAL 9000, the world's most advanced super computer." rating="7.5" viewOffset="333449" lastViewedAt="1483766740" year="1968" tagline="An epic drama of adventure and exploration" thumb="/library/metadata/61174/thumb/1483760653" art="/library/metadata/61174/art/1483760653" duration="8931680" originallyAvailableAt="1968-04-05" addedAt="1419705829" updatedAt="1483760653" chapterSource="mixed" primaryExtraKey="/library/metadata/80943"><Media videoResolution="1080" id="62354" duration="8931680" bitrate="15002" width="1920" height="1080" aspectRatio="1.78" audioChannels="6" audioCodec="flac" videoCodec="vc1" container="mkv" videoFrameRate="24p" videoProfile="advanced"><Part accessible="1" exists="1" id="110412" key="/library/parts/110412/1419705829/file.mkv" duration="8931680" file="I:\01 Series\2001.A.Space.Odyssey.1968.1080p.BluRay.FLAC.VC-1.\2001.A.Space.Odyssey.1968.1080p.BluRay.FLAC.VC-1.mkv" size="16748845857" container="mkv" videoProfile="advanced"><Stream id="584422" streamType="1" default="1" codec="vc1" index="0" bitrate="14810" language="English" languageCode="eng" bitDepth="8" chromaSubsampling="4:2:0" frameRate="23.976" height="1080" level="3" profile="advanced" refFrames="1" scanType="progressive" title="1080p VC-1 @ 13391 kbps" width="1920"/><Stream id="584423" streamType="2" selected="1" default="1" codec="flac" index="1" channels="6" language="English" languageCode="eng" audioChannelLayout="5.1(side)" bitDepth="16" samplingRate="48000" title="FLAC 5.1 16-bits from PCM @ 1269 kbps"/><Stream id="584424" streamType="2" codec="ac3" index="2" channels="2" bitrate="192" language="English" languageCode="eng" audioChannelLayout="stereo" samplingRate="48000" title="Commentary with Keir Dullea and Gary Lockwood"/><Stream id="584425" streamType="3" default="1" codec="pgs" index="3" language="English" languageCode="eng"/><Stream id="584426" streamType="3" codec="pgs" index="4" language="Français" languageCode="fre"/><Stream id="584427" streamType="3" codec="pgs" index="5" language="Español" languageCode="spa"/><Stream id="584428" streamType="3" codec="pgs" index="6" language="中文" languageCode="chi"/><Stream id="584429" streamType="3" codec="pgs" index="7" language="Dansk" languageCode="dan"/><Stream id="584430" streamType="3" codec="pgs" index="8" language="Nederlands" languageCode="dut"/><Stream id="584431" streamType="3" codec="pgs" index="9" language="Suomi" languageCode="fin"/><Stream id="584432" streamType="3" codec="pgs" index="10" language="Deutsch" languageCode="ger"/><Stream id="584433" streamType="3" codec="pgs" index="11" language="Italiano" languageCode="ita"/><Stream id="584434" streamType="3" codec="pgs" index="12" language="한국어" languageCode="kor"/><Stream id="584435" streamType="3" codec="pgs" index="13" language="Norsk" languageCode="nor"/><Stream id="584436" streamType="3" codec="pgs" index="14" language="Português" languageCode="por"/><Stream id="584437" streamType="3" codec="pgs" index="15" language="Svenska" languageCode="swe"/><Stream id="584444" key="/library/streams/584444" streamType="3" codec="srt" format="srt"/></Part></Media><Genre id="30" tag="Science Fiction"/><Genre id="277" tag="Mystery"/><Genre id="7" tag="Adventure"/><Director id="8295" tag="Stanley Kubrick"/><Writer id="8297" tag="Stanley Kubrick"/><Writer id="23170" tag="Arthur C. Clarke"/><Producer id="8314" tag="Stanley Kubrick"/><Producer id="23221" tag="Victor Lyndon"/><Country id="11" tag="United Kingdom"/><Country id="32" tag="USA"/><Role id="8747" tag="Keir Dullea" role="Dr. Dave Bowman"/><Role id="23171" tag="Douglas Rain" role="HAL 9000 (voice)"/><Role id="23172" tag="Gary Lockwood" role="Dr. Frank Poole"/><Role id="23173" tag="William Sylvester" role="Dr. Heywood R. Floyd"/><Role id="23174" tag="Daniel Richter" role="Moon-Watcher"/><Role id="23175" tag="Leonard Rossiter" role="Dr. Andrei Smyslov"/><Role id="23176" tag="Margaret Tyzack" role="Elena"/><Role id="23177" tag="Robert Beatty" role="Dr. Ralph Halvorsen"/><Role id="3760" tag="Sean Sullivan" role="Dr. Bill Michaels"/><Role id="1200" tag="Bill Weston" role="Astronaut"/><Role id="23178" tag="Ed Bishop" role="Aries-1B Lunar Shuttle Captain"/><Role id="23179" tag="Alan Gifford" role="Poole's Father"/><Role id="3801" tag="Ann Gillis" role="Poole's Mother"/><Role id="23180" tag="Edwina Carroll" role="Aries-1B Stewardess"/><Role id="13919" tag="Frank Miller" role="Mission Controller (voice)"/><Role id="23181" tag="Glenn Beck" role="Astronaut"/><Role id="23182" tag="Penny Brahms" role="Stewardess"/><Role id="23183" tag="Heather Downham" role="Stewardess"/><Role id="23184" tag="Mike Lovell" role="Astronaut"/><Role id="23185" tag="John Ashley" role="Ape"/><Role id="23186" tag="Jimmy Bell" role="Ape"/><Role id="23187" tag="David Charkham" role="Ape"/><Role id="23188" tag="Simon Davis" role="Ape"/><Role id="23189" tag="Jonathan Daw" role="Ape"/><Role id="23190" tag="Péter Delmár" role="Ape"/><Role id="23191" tag="Terry Duggan" role="Ape Attacked by Leopard"/><Role id="23192" tag="David Fleetwood" role="Ape"/><Role id="23193" tag="Danny Grover" role="Ape"/><Role id="23194" tag="Brian Hawley" role="Ape"/><Role id="23195" tag="David Hines" role="Ape"/><Role id="23196" tag="Tony Jackson" role="Ape"/><Role id="23197" tag="John Jordan" role="Ape"/><Role id="23198" tag="Scott MacKee" role="Ape"/><Role id="23199" tag="Laurence Marchant" role="Ape"/><Role id="23200" tag="Darryl Paes" role="Ape"/><Role id="23201" tag="Joe Refalo" role="Ape"/><Role id="23202" tag="Andy Wallace" role="Ape"/><Role id="23203" tag="Bob Wilyman" role="Ape"/><Role id="23204" tag="Richard Woods" role="Ape Killed by Moon-Watcher"/><Role id="23205" tag="Martin Amor" role="Interviewer (uncredited)"/><Role id="23206" tag="S. Newton Anderson" role="Young Man (uncredited)"/><Role id="23207" tag="Sheraton Blount" role="(uncredited)"/><Role id="23208" tag="Ann Bormann" role="(uncredited)"/><Role id="23209" tag="John Clifford" role="TMA-1 Site Technician #2 (uncredited)"/><Role id="23210" tag="Julie Croft" role="(uncredited)"/><Role id="23211" tag="Penny Francis" role="(uncredited)"/><Role id="23212" tag="Kenneth Kendall" role="BBC-12 Announcer (uncredited)"/><Role id="23213" tag="Vivian Kubrick" role="Squirt - Floyd's Daughter (uncredited)"/><Role id="23214" tag="Marcella Markham" role="(uncredited)"/><Role id="23215" tag="Irena Marr" role="Russian Scientist (uncredited)"/><Role id="23216" tag="Krystyna Marr" role="Russian Scientist (uncredited)"/><Role id="23217" tag="Kim Neil" role="(uncredited)"/><Role id="23218" tag="Jane Pearl" role="(uncredited)"/><Role id="23219" tag="Penny Pearl" role="(uncredited)"/><Role id="11472" tag="Kevin Scott" role="Miller (uncredited)"/><Role id="23220" tag="John Swindells" role="TMA-1 Site Technician #1 (uncredited)"/><Role id="2492" tag="Burnell Tucker" role="TMA-1 Site Photographer (uncredited)"/><Extras size="1"><Video ratingKey="80943" key="/library/metadata/80943" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(1702)?lang=en&bitrates=80,212,450,600,750,1500,8000&duration=215" type="clip" title="2001: A Space Odyssey" summary="" index="1" year="1999" thumb="/library/metadata/80943/thumb/1483760653" duration="215000" originallyAvailableAt="1999-09-27" addedAt="1483760653" extraType="1"><Media videoResolution="720" id="110220" duration="215000" bitrate="1500" width="1280" height="720" aspectRatio="1.78" audioCodec="aac" videoCodec="h264" container="mp4" premium="1"><Part id="110413" duration="215000" container="mp4" key="/services/iva/assets/1702/video.mp4?bitrate=1500" optimizedForStreaming="1"><Stream id="584438" streamType="1" codec="h264" index="0" bitrate="1500" height="720" width="1280"/><Stream id="584439" streamType="2" selected="1" codec="aac" index="1" channels="2" language="English" languageCode="eng"/></Part></Media><Media videoResolution="480" id="110221" duration="215000" bitrate="750" width="640" height="480" aspectRatio="1.33" audioCodec="aac" videoCodec="h264" container="mp4" premium="1"><Part id="110414" duration="215000" container="mp4" key="/services/iva/assets/1702/video.mp4?bitrate=750" optimizedForStreaming="1"><Stream id="584440" streamType="1" codec="h264" index="0" bitrate="750" height="480" width="640"/><Stream id="584441" streamType="2" selected="1" codec="aac" index="1" channels="2" language="English" languageCode="eng"/></Part></Media><Media videoResolution="480" id="110222" duration="215000" bitrate="450" width="640" height="480" aspectRatio="1.33" audioCodec="aac" videoCodec="h264" container="mp4" premium="1"><Part id="110415" duration="215000" container="mp4" key="/services/iva/assets/1702/video.mp4?bitrate=450" optimizedForStreaming="1"><Stream id="584442" streamType="1" codec="h264" index="0" bitrate="450" height="480" width="640"/><Stream id="584443" streamType="2" selected="1" codec="aac" index="1" channels="2" language="English" languageCode="eng"/></Part></Media></Video></Extras></Video></MediaContainer>

Thanks for that. I found it in that one. codec="vc1"

VC-1 is notoriously difficult to work with. It’s caused FFMPEG issues for a long time.

Do you have the same problem with X.264 as well?

Yes, I have the problem with h264 as well, and again the problem only occurs with subtitles on. If it was a problem with VC-1 and my hardware, wouldnt it cause problems anytime I tried to transcode the file at all? i cant quite tell why but Ive got a feeling that its a storage issue. Could this be possible? Its like the old jm micron controller problems when SSDs were first coming out, and there was an occasional .5 second delay. It feels kinda like that, like everything is chugging along fine for a min then at random it just freezes for .5 a sec, and then continues. But again, only when subtitles are on.

Ive had the problem with every single movie Ive tried, but I just had a successful run with a TV episode. Subtitles on and no freezing. 175MB .mkv H264.

It’s possible it’s hardware. What seems more likely, (presume you’re on Win 7?) is a memory cleanup burp. You are tossing around a fair amount of data in sockets / pipes between everything going on plus the transcoder has its buffer (transcoder temp dir).

I don’t use SSDs but could you be experiencing a ‘multi-page wipe’ (trim) delay by the SSD itself? That’s inherent to a SSD and will slow down I/O while it does what it needs to.

Also a ‘windows-ism’… if the system tmp dir is loaded up with a lot junk (files) in it… while windows is doing other things (your playback) if it gets hung up on walking that directory list, it will burp… I can make that happen on demand.

I’m running Windows server 2008 r2. The transcoder temp file is on a standard mechanical drive. The SSD only has like 16 gigs free on it. I’ll try and mess around with it some more tomorrow. How can I check for this memory cleanup burp, or prevent it?

I’m running Windows server 2008 r2. The transcoder temp directory is on a standard mechanical drive not an SSD. The SSD only has like 12 gigs free. I haven’t done to much testing but it does seem to freeze more frequently on larger file sizes. I’ll try and actually test that. How can I check for or prevent this memory burp?

There’s nothing you can do with Windows memory cleanup. If you can reboot it, run the tests again, and behavior is different, you have your answer; Memory fragmentation. Such behavior has been a Windows signature since the adoptions of the NT v6 kernel.

Well thats unsatisfying. If it were a windows problem then everybody would be experiencing it and plex would be unusable. Obviously thats not the case. Is there anything I can check for in logs to try and narrow it down? Is windows 10 any better that older versions? After more testing I get error messages saying either your machine is not powerful enough to play back… or your connection is not fast enough to stream… They seem random though, and the same file with subtitles enabled can throw either error.

I’ve asked with the ninjas as well. I get one seemingly common answer. It’s not an answer imho but I’m a Linux guy. “it’s server 2008, anything’s possible”. I will continue to see what I can figure out / learn from others (staff & the transcoder team).

Some other points which did come up. Jumbo Frames? I forgot to ask you. Those will cause stutters seemingly at random on the best of networks. Jumbo frames have to be perfect. Another is the switch/router itself. If everything is running through the modem/router and there is latency at the wrong moment, stutter. If it’s all machine-local (via the loopback) that’s unlikely. What is the playback client?

The playback client is not the machine with data stored on it, but streaming to another device. All devices stutter including Android clients, hard wired Chromecast, and other Windows PCs. I tried running the server in safe mode and it did not help. I will look into jumbo frames as I’m pretty sure they are enabled. Network equipment consists of a Asus N66U running the latest version of asuswrt merlin. A Netgear 16port gigabit switch powers everything else.

The rule of thumb for Jumbo frame: Unless you have a specific need for them and know exactly what you’re doing, turn them off. They will spoil the soup every time.

You won’t see any improvements on a home network with jumbo frames - if they are on, disable them for everything.

Ok jumbo frames were enabled on the Server, but not on the router. I disabled them but I still get the stuttering on an android client. After multiple test runs I got both the your connection is not fast enough and your server is not powerful enough errors.

During a test run I get a 2 second solid freeze then it continues as if nothing happened at 52s, 2:04, 2.28, 4.42 after playback started.

After disabling, did you reboot everything? (yes, it’s that messy because Jumbo frames change the MTU which defaults to 1500)

Yes the server was restarted. No change

@PoppinJ said:
Ok jumbo frames were enabled on the Server, but not on the router. I disabled them but I still get the stuttering on an android client. After multiple test runs I got both the your connection is not fast enough and your server is not powerful enough errors.

During a test run I get a 2 second solid freeze then it continues as if nothing happened at 52s, 2:04, 2.28, 4.42 after playback started.

Do you have the log files for that ? If the server hasn’t been used since you did that Settings - server - help - download logs will get all the log files.
If you can attach them here, I’ll go through them and compare with my log files.