Plex transcoder cpu spikes
Plex is my platform of choice for streaming local media. But not all platforms support direct playback of Blu-ray rips mkv-files. I can still play it but the video needs to be transcoded by the Plex media server first to a format the player supports.
That process can be quite intensive for an uncompressed Blu-ray. You can activate hardware acceleration in the settings for the Plex media server under Transcoder. When you do this Plex will use your graphics card instead for transcoding.Synology NAS Plex Transcoding 1080p and 4K
If you only have one graphics card in your computer then there is not much more you can do. This is very likely if you are on Intels mainstream platform.
This is what I see. For instructions on how to activate it you can check the manual for your motherboard. Windows 10 makes it possible to choose which GPU a specific program should use. To set this up you need to open the Settings app in Windows There click on the link called Graphics settings.
Choose Classic app and then click on Browse. You need to do this twice to add the files Plex Media Server. When you have done that click on each of the entries and choose Options. Choose the Power saving alternative for each of the programs and then save. It used to work to only add the PlexTranscoder. To be on the safe side I would recommend you reboot your computer now.
When you have done that you can try to stream to a device where you know transcoding will have to be used and look in Task Manager as the GPU usage for your integrated GPU rises.When playing video from local server I was getting sound but no video. In fact I lost the plex buttons for navigation and had to use esc to get out of it. I saw a suggestion on the forum that unticking direct play could solve that, and it did.
I was able to get video back and all seemed fine. Since then I updated plex on my Windows PC on the 7th. The file itself is just over MB.
This is both in the app and when playing in the browsers, both Chrome and Firefox. I closed Plex in Firefox and the transcoder kept on whirring away in the background until I killed it with Process Explorer. By unchecking direct play you told the server it needs to look at the streams for direct stream compatibility and if they cannot be direct stream to transcode them.
Hardware transcoding in Plex with the P2000 and a 2U supermicro dual X5670 server.
The behavior you are describing sounds like the video then needs to be transcoded. Since transcoding a video is a very CPU intensive task the transcoder will attempt to use as much CPU as possible to allow real time playback.
As I said in my question I have tried direct play both checked and unchecked. Previously, unchecking it allowed my to get video on local files, where I had only got sound. There were no transcoder issues. When the transcoder issues began I did go and check the box for direct play again as it was the only thing I had changed in my settings. It did nothing. The issues seemed to start after the update on the 7th of April. Urmensch said: As I said in my question I have tried direct play both checked and unchecked.
Unchecking it forces a remux at minimum or a transcode at max. From what you describe there still are no transcoder issues just that the transcoder is being used. If the file needs to transcode telling the server to direct play it if it can will do nothing as the file still needs to transcode.
That option is a use it if the server can, not a force direct play option. Unfortunately, your understanding of what a transcode does is completely out of spec for determining if it is working well. As I said the transcoder will use as much CPU as available to keep the buffer ahead of your current playing.
The transcoder will pause itself when it hits a threshold until the amount of video view falls back below a certain point and then continue transcoding. Overall though, we cannot tell you what exactly is happening without seeing your server logs, but the transcoder using available CPU when a transcode is requested is very normal. I could only get audio and not video on local files.Sorry if there is a better place for this didn't see a dedicated troubleshooting subforum.
Anywho, I am currently having an issue with Plex performance during normal playback and even worse when trans-coding. Also when I look under the CPU Performance tab I don't see any mention of multiple cores, didn't know if that was normal or not. I don't see multiple cores in the CPU Performance tab either. I don't think you have a problem, it's probably that FreeBSD and Linux might measure or display load differently.
See that's the weird thing, I think you should be seeing much better performance than that. I personally tested 4 x trans-code streams to friends houses when running this exact same box on FreeNAS and it didn't hitch.
Something is screwy somewhere and it is absolutely hamstringing performance. Memory usage is MB, swap usage is 0. Hmm, I may have just have tested well enough. Ill do some more probing tonight and get back, sorry if it just turned out to be me being silly! I did notice the CPU utilization would occasionally drop to 0 but then snap back up. So for now looks like the most I can get out of this is 2x stream with transcoding.
Heres the CPU graph when I was playing around:. So I would expect to have big problems here trying what you are doing. I'd be willing to test here if I can get the files. You don't state what client you are using.
I use a Roku 3 and almost all of my media requires no transcoding, so I would not expect to run into such problems. Given the choice, if a media file is available in a format that does not require transcoding, I take that instead of one that does. And I have in the past recontainerized not transcoded files just to avoid having to transcode.
Re-containerizing takes seconds, while transcoding a file into a suitable format is very slow and not worth the bother to me. Honestly the thing that is causing the most issues is subtitles, since the video has to be transcoded on the fly to include them.This is probably the most appealing factor for me personally, but more on that later:.
Below you will find the first test i ran which was H.
Playback quality was set to maximum. I compared the results of the dual X server with HW transcoding turned off, The k quicksync enabled cpu with a ti, and the X server with HW transcoding ON with the P installed.
Here you can see the P absolutely crushed the competition. The server running dual Ev2 CPUs came in second place, but for the cost of those processors you could purchase a P and save a LOT in electricity.
Here is a picture of the average power consumption I see with these CPUs and how much it costs me monthly to run them:. That is equivalent to what you could spend on a single P and a cheap computer which would net you better performance and less power consumption overall.
Next, you can see a test transcoding 4k H to h p. Next I tested 4K H to p. I only got a single transcode with HW transcoding off, and with HW transcoding on I saw at least 13 transcodes, but i think there was more room to go here as well as I again ran out of clients to test with. Next I transcoded H p to H p 4mbps.
With HW transcoding off i was only able to get 10 streams loaded before there was buffering. It would have definitely required streams or more before i pushed this thing to its limits and I simply did not have enough clients to do that. What about Load times? Well I wanted to see if there was a penalty for running HW transcoding, Do things load slower?
What about the loading speed when you click through a file? Below you can see the results from such a test:. This shouldnt be a big deal as you should never be transcoding 4k down to p, its really a waste of resources and i think its mostly done by people who dont understand why this is a bad idea.
So what about Quality? Well below are quality comparisons, I did not notice a difference. You can judge for yourself. You must be logged in to post a comment. Is this card any better than some of the more powerful gaming graphics cards that others are currently using in their plex servers? What limitations or gotchas might you run into?
Is it worth to spend dollars on a video card to do transcoding in plex?
The 4 Best Pre-Built Plex Servers
Hardware transcoding seems to limit the ability to do 4k x to lower resolutions with AC3 audio in most browsers. Other reasons? Please leave them in the comments below! No comments yet. Leave a Reply Cancel reply You must be logged in to post a comment.By jonpJanuary 7, in Docker Containers.
Hey everyone, just thought I'd put this up here after reading a syslog by another forum member and realizing a repeating pattern I've seen here where folks decide to let Plex create temporary files for transcoding on an array or cache device instead of in RAM.
Many write operations occur to the storage medium used for transcoding, and when using an SSD specifically, this can cause unnecessary wear and tear that would lead to SSD burnouts happening more quickly than is necessary. By moving transcoding to RAM, you alleviate the burden from your non-volatile storage devices. RAM isn't subject to "burn out" from usage like an SSD would be, and transcoding doesn't need nearly as much space in memory to perform as some would think.
A single stream of video content transcoded to 12mbps on my test system took up MB on the root ram filesystem. The quality of the source content shouldn't matter, only the bitrate to which you are transcoding.
In addition, there are other settings you can tweak to transcoding that would impact this number including how many second of transcoding should occur in advance of being played.
If you have 8GB or more, you are probably in the safe zone, but obviously the more RAM you use in general, the less space will be available for transcoding. There are two tweaks to be made in order to move your transcoding into RAM. One is to the Docker Container you are running and the other is a setting from within the Plex web client itself.
From here, add a new volume mapping:. Connect to the Plex web interface from a browser e. From there, click the wrench in the top right corner of the interface to get to settings. Now click the "Server" tab at the top of this page. On the left, you should see a setting called "Transcoder. You can tweak some of the other settings if desired to see if that improves your media streaming experience.
I can certainly see the benefits in some cases, but I would disagree that SSD wear is of any real concern. By your own stats you're only looking at writing mb to the SSD. I mean sure, there are other write operations going on our SSD's but I think it is fair to say even if we doubled, or tripled our daily SSD write throughput we're still safe from hitting the endurance limits.
My real concern with transcoding to RAM is that pushing three or four simultaneous transcoded streams might stretch the memory limits of some people, though it is unlikely for most. Good write up. I'll concede that this may or may not be a big deal, but no one can dispute the fact that cells on flash memory do suffer from endurance wear and will eventually burn out whereas RAM does not.
As far as people having issues, I haven't researched anything on Plex forums or otherwise regarding that. All I can say is that I personally have yet to have an issue from doing it this way and I've been doing this pretty much since Docker was implemented in beta 6. If someone has undesirable effects on their system, of course they should change it back. I just wanted to put this out there because I do it this way, don't have issues, and can see the logic in doing this especially for those that don't have an SSD in their system.
If you don't have enough RAM, don't do this, or try tweaking settings. I don't know how many folks out there ever have 4 concurrent streams in their home. Guess it depends on the size of your family. For my household of 3, it's pretty much no more than streams at a time. Oh, and you should probably read through that link you posted.Plex allows you to create your own home server and access it from anywhere you want. It is a great initiative from the Plex Media server. Due to this cross-platform compatibility, Plex can be one of the best media streaming devices for your future entertainment.
The best thing about it is that it can be set up easily on any platform. But at the same time, it will cause issues including buffering and pausing if not managed and setup properly. Due to mismanagement, you run into the Plex Buffering problems. If you have the same buffering issues, then you can find plenty of solutions and guides as well. But the solutions for buffering fix of Plex might be tricky as there are multiple types of devices available that are supported by Plex.
Troubleshooting varies for every device. Here in this blog, we are going to discuss few of the major factors that can cause buffering of Plex. If your Plex server causes buffering, follow the following solutions to troubleshoot. If you are facing buffering issues while streaming on Plex, then the first thing you should look on is your internet connection.
Plex is totally based on internet speed. The faster the internet, the faster will be streaming speed. Plex sends data packets from the server to clients through the internet. If you have a fast connection, then the content will stream in a smooth way. But if the buffering occurs, do check your server and client networks for internet speed. If your connection is wireless, consider an ethernet connection.
Plex Performance - 100% CPU
Try to shift all the Wireless connection on Ethernet. Another good thing you can do while streaming is to switch off all the devices that kill the maximum amount of bandwidth. Try to stop downloading and uploading while streaming on Plex. Do these things with your internet connection and you will see visible improvements on your device while streaming. Different media files required different internet speed. For example. What is Transcoding? It is the process of converting media content to the best format based on the client device.
You can use different transcoded streams with different CPUs.Plex is this amazing application that we all know and love, letting us enjoy all our boxsets, out movies, our own videos and more. However, as this kind of setup has been around for a few years now, we are starting to see performance on many NAS drives for plex start to dip. Today I want to go through my tips to help you improve your Plex playback performance sometimes a little, sometimes ALOT and help you enjoy all your media.
Most of the suggestions are free to try and a few need a little upgrade purchase along the way, but hopefully, 1 or more will solve your plex performance issue. Please bear in mind that this is a one-man operation, so my reply might take a little bit of time, but it will be impartial, honest and have your best interests at heart.
Plex has been around a while now but is only available as software that you can install in many, many client devices. However, the result of this is that the Plex Media Server application the other app that needs to be where ALL your media lives will be installed on literally hundreds of thousands of different kinds of device i.
The result is obviously that it will run better on some devices more than others, and not jsut because one is more powerful but because of compatibility.
Below are the most common signs of incompatibility and performance issue that Plex users might encounter in their Plex Media Server NAS setup and today I want to give you guys tips on how to get around these and in many cases, completely avoid them! In this two-part guide, I will show fixes to your Plex NAS server that can counter one, or more of these issues. These can be changes that are implemented on both a hardware and software level.
Some of the recommended ways to boost your Plex NAS below are completely free and simply require you to rearrange yoru storage, but ALWAYS be aware that these changes can potentially undermine or reformat your NAS Drive, so double-check that you have a backup of your data elsewhere before implementing any changes to your device.
Where an improvement requires an additional spend, I will try to provide cost-effective suggestions for what you need to buy. Offline transcoding can be done in bulk across one or all of your media, as well as be scheduled to take place outside of busy NAS operation periods.
Pros — FREE to do, easy to do, can add up to improved playback later and accessible by all connected users, lower hardware use than on-the-fly transcoding. Cons — Only NAS with transcoding support can offer this feature, Not available on all NAS brands, Requires Planning in advance, you will need additional storage space for the transcoding media copy files.
Many users who buy a NAS server for plex with 2 or more bays will use RAID redundant array of independent disks as a means of protecting themselves from hard drive failure or SSD of course.
However, many users do not realise that some RAID levels provide different storage access speeds. Just make sure you backup your data somewhere else before you make these changes! A growing trend of NAS drives to improve their system performance is to use a large storage array of Hard drives cheaper, high capacity, etc and then add 1 or 2 SSD drives alongside.
Mechanical hard drives, such as Seagate Ironwolf and WD Red, are slower than solid-state drives, but SSDs are significantly more expansive and have smaller capacities available.
This is where SSD caching can be massively beneficial. SATA 2. SATA M. Requires dedicated slots, but if you have them, definitely look into getting these! Though they are the most expensive by far!