![plex 乱码](https://i-blog.csdnimg.cn/blog_migrate/3b3f5e2ffed5b746fba968577ac371c4.png)
plex 乱码
![](https://i-blog.csdnimg.cn/blog_migrate/50c3e5b47dc11e67acabea43112513d3.png)
The Plex Media Server experience is generally pretty smooth, unless you do a lot of streaming when you’re away from home or your server hardware is underpowered. Fortunately, it’s very simple to have Plex optimize your media for silky smooth playback.
通常,Plex Media Server的体验非常流畅,除非您出门在外或服务器硬件电源不足时要进行大量流传输。 幸运的是,让Plex优化媒体以实现如丝般流畅的播放非常简单。
为什么要优化(以及何时不应该) (Why You Would Optimize (and When You Shouldn’t))
The goal of this tutorial, taking advantage of Plex’s excellent optimization features, is a godsend for those who really need it, and a total waste of time for those who don’t. With that in mind, we’d definitely encourage you to read over this introduction section closely to determine if you even need to optimize anything in the first place.
本教程的目标是利用Plex出色的优化功能,对于那些真正需要它的人来说是天赐之物,而对于那些不需要的人来说则是浪费时间。 考虑到这一点,我们绝对鼓励您仔细阅读本简介部分,以确定您是否首先需要进行任何优化。
The Plex experience centers around two apps: the server (which holds your media) and the client (the app with which you watch your media, usually on your TV, your phone, or other set-top box). The central Plex Media Server software manages nearly every aspect of the Plex experience–the clients merely act as a frontend for what the server is serving up. All the heavy lifting happens on the server side–the streaming, the transcoding of the streaming when necessary, etc.–and it is very CPU intensive.
Plex体验围绕两个应用程序进行:服务器(用于保存媒体)和客户端(用于与您一起观看媒体的应用程序,通常在电视,电话或其他机顶盒上)。 中央Plex媒体服务器软件几乎可以管理Plex体验的各个方面-客户端仅充当服务器所服务内容的前端。 所有繁重的工作都发生在服务器端–流,必要时对流进行转码等,并且这非常占用CPU资源。
If you have a good CPU (at minimum an Intel Core i3 processor or equivalent, preferably better) and a fantastic broadband connection with plenty of upload speed, then you probably don’t even need to optimize your media. If you’ve got great hardware and have never noticed anything amiss with your playback, this isn’t the tutorial for you.
如果您有一个不错的CPU(至少要有Intel Core i3处理器或同等的处理器,最好是更好的处理器),并且拥有出色的宽带连接且上传速度很高,那么您可能甚至不需要优化媒体。 如果您拥有出色的硬件,并且从未注意到回放中有任何毛病,那么这不是适合您的教程。
On the other hand, there are a variety of scenarios where underpowered hardware or limited internet speed can really decrease the quality of your Plex experience. If you experience choppy playback, regular buffering, and other similar issues, optimization can save the day.
另一方面,在许多情况下,硬件功能不足或互联网速度有限会真正降低Plex体验的质量。 如果您遇到断断续续的播放,常规缓冲和其他类似问题,优化可以节省一天的时间。
This is different than Plex’s transcoding, where it converts your video on-the-fly to the ideal format. Instead, Plex’s optimization will convert your media ahead of time, so when it comes time to watch the media there is no strain on the CPU–the video is already optimized and ready to send out to the client.
这与Plex的转码不同,后者可以将视频实时转换为理想格式。 相反,Plex的优化将提前转换您的媒体,因此,当需要观看媒体时,CPU不会受到压力-视频已经过优化,可以发送到客户端了。
Now wait a minute, you might say, nothing’s free but guarantees, so what’s the catch? The catch is that the optimized video is stored as a separate video file with your other media and, you guessed it, takes up space. It’s not as much as the original video file (because the optimization process reduces both the video quality and file size to make streaming easier), but depending on the size of your library and the video settings you select for optimization, it can add up quick.
现在,请稍等,您可能会说,除了保证,没有其他免费的东西了,那么有什么收获呢? 问题在于,优化后的视频与其他媒体一起存储为单独的视频文件,并且您猜测它占用了空间。 它不像原始视频文件那么多(因为优化过程会降低视频质量和文件大小以使流传输更容易),但是取决于库的大小和您选择进行优化的视频设置,它可以快速添加。
Let’s take a look at how you can enable optimization, tweak the settings, and keep a lid on run away disk usage so your optimization experiment doesn’t chew up all the free space on your media server.
让我们看一下如何启用优化,调整设置以及限制失控磁盘的使用,以使您的优化实验不会占用媒体服务器上的所有可用空间。
如何优化您的Plex媒体服务器文件 (How to Optimize Your Plex Media Server Files)
Before we proceed, we’d highly recommend starting small with your experimentation. While you can jump right in and optimize your entire library with only a few clicks (once you know where to look), the optimization process is both CPU and storage intensive. You don’t want to churn through a massive library only to find out the settings you opted for don’t really meet your needs. So before you optimize everything, definitely pick a few movies or a season of a TV show to experiment with! (Seriously, start small!)
在我们继续之前,我们强烈建议您从实验入手。 您只需单击几下就可以直接进入并优化整个库(一旦您知道要查找的位置),那么优化过程将占用大量CPU和存储资源。 您不想只浏览一个庞大的库,只是发现您选择的设置并不能真正满足您的需求。 因此,在优化所有内容之前,请务必挑选一些电影或一个电视节目的季节进行尝试! (认真, 从小做起! )
To get started with optimization, open up the web dashboard of your Plex Media Server. Select a video library. What kind of library (TV shows or movies) is irrelevant, as the optimization menus are identical for all video, whether you’re looking at optimizing a single season of a TV show or your entire movie collection.
要开始进行优化,请打开Plex Media Server的Web仪表板。 选择一个视频库。 哪种类型的库(电视节目或电影)都无关紧要,因为针对所有视频的优化菜单都是相同的,无论您是要优化电视节目的单个季节还是整个电影集。
![](https://i-blog.csdnimg.cn/blog_migrate/670ff0462e6e73e93c937cf3297ffb44.png)
To demonstrate the options, we’re going to optimize a single movie file to start: a beautiful rip we created of Raiders of the Lost Ark that is absolutely enormous, and thus will always be transcoded for mobile playback. You can pick any movie from your collection to follow along, but the bigger the better as you’ll more easily see the change in file size and video quality when you compare the before and after files.
为了演示这些选项,我们将优化一个电影文件以开始:我们创建的《 夺宝奇兵》的绝妙片段绝对是巨大的,因此将始终进行转码以进行移动播放。 您可以从收藏集中挑选任何电影来跟进,但是越大越好,因为比较前后文件时,您会更容易看到文件大小和视频质量的变化。
When you find the media you want to optimize, hover over the entry and click on the three dots that appear in the lower right corner.
当找到要优化的媒体时,将鼠标悬停在条目上,然后单击右下角出现的三个点。
![](https://i-blog.csdnimg.cn/blog_migrate/36701d378a0c14c95be3244590d05b96.png)
Select “Optimize” from the popup menu. (Make note of this, the “Optimize” option is never out in the open but is always tucked in the little “…” additional options menu.)
从弹出菜单中选择“优化”。 (请注意,“优化”选项永远不会公开,而总是藏在小的“…”附加选项菜单中。)
![](https://i-blog.csdnimg.cn/blog_migrate/b9d647943c0ea36788eaed82d99cc944.png)
Here you’ll find the optimization menu. There’s two big things we want to look at.
在这里,您会找到优化菜单。 我们要看两件事。
![](https://i-blog.csdnimg.cn/blog_migrate/d64d50e694834b33d92b0d54570f2706.png)
First, you’ll find a dropdown menu for the video quality. Second, you’ll find the toggle, also a dropdown menu, for where the optimized versions are stored: in the folder with the original items, or all together in a separate /Plex Versions/ folder in a location of your choosing. Where you store the media is completely a personal choice. Maybe you want everything to stay together in the same folder, maybe you want to have a separate folder or drive with the optimized copies.
首先,您会找到视频质量的下拉菜单。 其次,您会找到用于存储优化版本的开关(也是一个下拉菜单):带有原始项目的文件夹中,或者一起存储在您选择的位置的单独的/ Plex Versions /文件夹中。 存储媒体的位置完全是个人选择。 也许您希望所有内容都放在同一个文件夹中,也许您想要一个单独的文件夹或带有优化副本的驱动器。
As far as the video quality goes, you can select from the following options, including “Custom” which offers finer control over the end product.
就视频质量而言,您可以从以下选项中进行选择,包括“自定义”,它可以更好地控制最终产品。
![](https://i-blog.csdnimg.cn/blog_migrate/ff723706dc420e56aedfaa785379a4eb.png)
Let’s say we wanted to create a lower-quality-but-still-HD version. We’ll name this custom selection “Low HD Mobile”, select “Universal Mobile” from the middle drop down menu, and then “2 Mbps 720p”, which is the lowest HD setting we can use. A small note on that “Universal Mobile” option–there are also “Android”, “iOS”, “Xbox One”, and other presets that are supposed to specifically optimize the video for clients on those devices but, honestly, we’ve never noticed much of a difference when we use them.
假设我们要创建质量较低但仍为高清的版本。 我们将这个自定义选择命名为“低高清移动设备”,从中间的下拉菜单中选择“通用移动设备”,然后选择“ 2 Mbps 720p”,这是我们可以使用的最低高清设置。 关于“ Universal Mobile”选项的小提示-还有“ Android”,“ iOS”,“ Xbox One”和其他预设,这些预设旨在为这些设备上的客户端专门优化视频,但是老实说,当我们使用它们时,从来没有发现太大的差异。
![](https://i-blog.csdnimg.cn/blog_migrate/c7a54a031ba58ff717359df9b0b2cbe1.png)
Once you’ve made your selection, click the big orange “Optimize” button down in the corner. A popup window will indicate that your media is undergoing optimization.
做出选择后,单击角落的橙色大“优化”按钮。 弹出窗口将指示您的媒体正在优化。
![](https://i-blog.csdnimg.cn/blog_migrate/1f3f873b446691d0989edb29ffe7c24b.png)
If you follow the link in the popup window or click on the status icon in your upper navigation bar and then select “Conversion”, as seen below, you’ll see the progress. If you have more than one item in the queue, you can drag and drop the individual entries to move them to the top of the queue.
如果您点击弹出窗口中的链接或单击上方导航栏中的状态图标,然后选择“转换”,如下所示,您将看到进度。 如果队列中有多个项目,则可以拖放各个条目以将其移到队列的顶部。
![](https://i-blog.csdnimg.cn/blog_migrate/c2de22710b3bcba97c1b2d3f109f5560.png)
For large files, like high bitrate HD movies, the process is slow going, even on good hardware. The transcoding of just this one film took approximately 20 minutes on our multi-core server. So once you’ve ironed out what kind of settings you need for your optimization needs, this is a job best left run in the off hours.
对于大文件,例如高比特率的高清电影,即使在良好的硬件上,该过程也很慢 。 在我们的多核服务器上,仅对这部电影的转码就花费了大约20分钟。 因此,一旦您确定了优化设置所需的设置后,这是最好在下班时间进行的工作。
Once the conversion is complete, we can take a peek to see how the file size changed. In our case, the original file was a 1080p video with a file size of 8.33GB; the optimized version is a 720p video with a 1.53GB file size. As we noted above, results will vary based on the settings you select, but in this instance we reduced the file size by 544% and the entire video is now pre-transcoded for future viewing. Both our network and our CPU have lighter loads to carry when we want to stream it from afar.
转换完成后,我们可以窥视一下文件大小如何更改。 在我们的案例中,原始文件是1080p视频,文件大小为8.33GB; 优化版本是720p视频,文件大小为1.53GB。 如上所述,结果会根据您选择的设置而有所不同,但是在这种情况下,我们将文件大小减小了544%,并且整个视频现在都已进行预转码以供将来观看。 当我们想从远处进行流传输时,我们的网络和CPU都有较轻的负载。
Now that we’ve performed our little experiment on a single file to show you how everything works, let’s take a look at how you can automate the whole process is useful ways.
既然我们已经在单个文件上进行了小实验,向您展示了一切工作原理,那么让我们看一下如何使整个过程自动化是有用的方法。
先进的Plex优化:过滤器使生活变得轻松 (Advanced Plex Optimization: Filters Make Life Easy)
Selecting a single movie for optimization is great if you’re hand picking a film you want to watch away from home, but practically speaking (especially if you have multiple users on your Plex Media Server) manually optimizing things is tedious.
如果您要在家中亲自挑选要观看的电影,则选择单个电影进行优化非常好,但是实际上(特别是如果您的Plex Media Server上有多个用户)手动进行优化很麻烦。
This is where a very, very, handy little trick comes in. When you’re browsing your Plex media collection you can, at any time, pull up the optimize menu and whatever you’re looking at, like a filtered search or a specific category, becomes the target of the optimization rule you’re about to create.
这是一个非常非常方便的小技巧。当您浏览Plex媒体收藏时,您可以随时拉出“优化”菜单以及您正在查看的任何内容,例如过滤搜索或特定搜索。类别,将成为您要创建的优化规则的目标。
A perfect example of where this trick is useful is the “On Deck” TV shows category, which shows the upcoming television shows based on the series you’ve been watching. In the screenshot below, you can see that we’ve been watching Adventure Time and Aqua Teen Hunger Force. Rather than optimize every episode of the entire show, we tell Plex to only optimize upcoming episodes we haven’t watched yet. We’ll click on “On Deck” to get a closer look at the category.
关于此技巧有用之处的一个完美示例是“在甲板上”电视节目类别,该类别根据您一直在观看的电视节目显示即将播出的电视节目。 在下面的屏幕截图中,您可以看到我们一直在观看Adventure Time和Aqua Teen Hunger Force 。 而不是优化整个节目的每一集,我们告诉Plex仅优化我们尚未观看的下一集。 我们将单击“在甲板上”以仔细查看类别。
![](https://i-blog.csdnimg.cn/blog_migrate/c44f1c5710fe00be39f6f2dad48e361e.png)
In the detailed “On Deck'” view, click on the “…” icon and select “Optimize”.
在详细的“在甲板上”视图中,单击“ ...”图标,然后选择“优化”。
![](https://i-blog.csdnimg.cn/blog_migrate/1b7fdfdc3366eaaf3bd8d5bd81eb4bb4.png)
Here you can set the quality you want as we just did, but you can also (now that you’re working with more than one item) toggle entries like “Unwatched Only” and “Limit to [X]” items, as seen below.
在这里,您可以像我们刚才那样设置想要的质量,但您也可以(既然您正在使用多个项目)来切换条目,例如“仅不受监视”和“限制为[X]”,如下所示。
![](https://i-blog.csdnimg.cn/blog_migrate/dc16006429db8791b7dec53adb23506c.png)
In addition to applying these kind of filters to the “On Deck” category, you can also apply them to the other dashboard categories like “Recently Added Television”, “Recently Added Movies”, as well as to any filter combination you can come up with in Plex.
除了将此类过滤器应用于“在甲板上”类别外,您还可以将其应用于其他仪表板类别,例如“最近添加的电视”,“最近添加的电影”,以及可以出现的任何过滤器组合在Plex中。
In the screenshot below we’ve filtered our movies for “Date Added” which shows the most movies most recently added to the the server.
在下面的屏幕截图中,我们为“添加日期”筛选了电影,该电影显示了最近添加到服务器的最多电影。
![](https://i-blog.csdnimg.cn/blog_migrate/e9eaec52f60b7247631a3542334bc144.png)
By clicking on the “…” icon and creating an optimization entry while the view is in this state, we can create an automated rule that will automatically optimize the most recent movies added to our movie library. Remember, whatever the view you have (and/or the filter you’ve applied to get that view) will be the base of the optimization rule you create.
通过在视图处于此状态时单击“…”图标并创建优化条目,我们可以创建一个自动规则,该规则将自动优化添加到我们的电影库中的最新电影。 请记住,无论您拥有哪种视图(和/或为获得该视图而应用的过滤器),都是您创建的优化规则的基础。
Finally, there’s one last stop on our tour. In the Settings > Server section of the dashboard, you’ll notice there is a brand new entry in the left hand navigation column.
最终,我们的旅程有了最后一站。 在信息中心的“设置”>“服务器”部分,您会注意到左侧导航栏中有一个全新的条目。
![](https://i-blog.csdnimg.cn/blog_migrate/9db0d938daeca8acbf94fb8cb2895dfd.png)
Now that you’ve started optimizing content, there is an “Optimized Versions” entry where you can see all the media you’ve optimized, delete individual entries, or delete all the optimized versions in one swoop with the big red button. The only thing to be aware of here is that when you delete an optimization rule, you delete all the optimized versions you made with it. So if you don’t want to wipe all the optimized versions (or just want to modify future ones or how long they are retained), hover over the rule and click on the pencil icon.
现在,您已经开始优化内容,这里有一个“ Optimized Versions”(优化版本)条目,您可以使用大红色按钮一口气查看已优化的所有媒体,删除单个条目或删除所有优化版本。 在此唯一需要注意的是,当删除优化规则时,将删除使用该规则创建的所有优化版本。 因此,如果您不想擦除所有优化的版本(或只想修改将来的版本或将它们保留多长时间),请将鼠标悬停在规则上,然后单击铅笔图标。
![](https://i-blog.csdnimg.cn/blog_migrate/104151a4fb84f2596155964117940faf.png)
Then you can just edit the entry (as if you were just created it) instead of wiping out all the progress you’ve made (and all the CPU cycles you’ve burned in the process).
然后,您可以编辑条目(就像您刚刚创建的一样),而不用消灭所有已完成的进度(以及该过程中消耗的所有CPU周期)。
It takes a little bit to get the hang of optimizing things to pin down exactly what settings work best for your needs, but once you have some solid optimization rules in place the whole experience is fire and forget–no more stuttering video or buffering.
要花点时间进行优化,就可以准确确定最适合您需要的设置,但是一旦制定了可靠的优化规则,整个体验便会烟消云散,而不再需要任何卡顿的视频或缓冲。
翻译自: https://www.howtogeek.com/261048/how-to-optimize-your-movies-and-tv-shows-for-smooth-plex-playback/
plex 乱码