In the first part, I ran through the basics on how to connect and configure your Mac Mini as the heart of your entertainment center. In this next article in the series, I had been planning on going into detail on how to store your media files on a remote NFS share. However, one of the comments on the first article got my attention and it occurred to me that I didn’t really cover alternate video codecs at all. So, rather than launch into some fascinating list of iptables rules and Apple alias quirks, let’s look at third-party codecs.
在第一部分中 ,我介绍了如何连接和配置Mac Mini作为娱乐中心的基础知识。 在本系列的下一篇文章中,我已经计划详细介绍如何将媒体文件存储在远程NFS共享上。 但是,第一篇文章中的一条评论引起了我的注意,我发现我并没有真正涵盖替代视频编解码器。 因此,让我们来看一下第三方编解码器,而不是进入iptables规则和Apple别名的一些引人入胜的清单。
Out of the box, QuickTime (the backend for FrontRow’s movie playing capabilities) only supports a few video formats. I’m not going to try to list them here, but the really big and common ones are H.264 and MPEG-4. However, a lot of video files are still encoded using DivX or Xvid. Also, if you’re extremely unlucky you may have a few old WMV-encoded files which you would like to play. You could just re-encode all of these files H.264 using a tool like FFmpegX. But it would be so much more convenient if you could simply play arbitrary video files in FrontRow. The solution is to run through and install the third-party codecs required to make all of this work.
开箱即用的QuickTime(FrontRow电影播放功能的后端)仅支持几种视频格式。 我不想在这里列出它们,但是真正常见的是H.264和MPEG-4。 但是,许多视频文件仍使用DivX或Xvid进行编码。 另外,如果您非常不幸,则可能要播放一些旧的WMV编码文件。 您可以使用FFmpegX之类的工具重新编码所有这些H.264文件。 但是,如果您可以简单地在FrontRow中播放任意视频文件,它将更加方便。 解决方案是运行并安装完成所有这些工作所需的第三方编解码器。
波斯人 (Perian)
Now the easiest solution (by far) is to just install the Perian codec. Perian is (self-described as) the Swiss Army knife of codecs. With Perian installed, you should be able to play everything from DivX/AC3 to FLV to VBR/MP3. It even handles playback of WMV files. Perian is open-source and can be downloaded here. A full list of the encodings supported by Perian is available at this page.
现在(到目前为止)最简单的解决方案是仅安装Perian编解码器。 佩里安(自称为)编解码器的瑞士军刀。 安装Perian后,您应该可以播放从DivX / AC3到FLV到VBR / MP3的所有内容。 它甚至可以处理WMV文件的播放。 Perian是开源的,可以在此处下载。 通过Perian支持的编码的完整列表,请访问这个页面 。
To install Perian, first download and mount the DMG. Then drag the LEGO brick file named “Perian.component” to the alias labeled “QuickTime”. Log out, then log back in and Perian should be installed. (if you get confused somewhere in those instructions, you can peruse the extensive, one and a half page README included in the DMG).
要安装Perian,请先下载并安装DMG。 然后将名为“ Perian.component”的乐高积木文件拖到标记为“ QuickTime”的别名上。 注销,然后重新登录,应该安装Perian。 (如果您对这些说明感到困惑,则可以仔细阅读DMG中包含的长达一页半的自述文件)。
![](https://i-blog.csdnimg.cn/blog_migrate/91a8a577e6ddeaeb09268939e02412d5.png)
Perian is quite nice because everything “just works” right out of the box (or brick, in this case). The problem is that Perian provides somewhat sub-par quality compared to getting the codecs direct from the source. I experienced problems in frames with high motion. The motion appeared as if it was encoded progressive (with the actual “objects” on screen broken into horizontal lines), when the files had actually been deinterlaced in the encoding process. I didn’t have these problems with the same file and the actual third-party codecs. So, as nice as just using Perian would be, quality lovers will have to forego the convenience. (note, if you installed Perian at this point and now have decided not to use it, you must navigate to the /Library/QuickTime and remove the Perian.component file, otherwise replacement codecs will be screwed up)
Perian非常好,因为一切都“开箱即用”(在本例中为砖)。 问题在于,与直接从源头获取编解码器相比,Perian提供的质量有些低于标准。 我在高速运动的框架中遇到了问题。 当在编码过程中对文件进行了实际的隔行扫描时,就好像该运动是经过渐进编码的(屏幕上的实际“对象”分成水平线)。 对于相同的文件和实际的第三方编解码器,我没有这些问题。 因此,就像只使用Perian一样好,高质量的爱好者将不得不放弃便利。 (请注意,如果此时已安装Perian,但现在决定不使用它,则必须导航到/ Library / QuickTime并删除Perian.component文件,否则替换编解码器将被搞砸)
![](https://i-blog.csdnimg.cn/blog_migrate/1bb0558be31e150836216404ac4ac049.png)
第三方编解码器 (Third-Party Codecs)
More and more high-dev encoders are moving to H.264, because of its superior quality and compression ratio, but a lot of things are still on the proprietary codec, DivX. To gain QuickTime support (and hence, FrontRow) for DivX, we must download the DivX free codec from here. This is one of those unusual Mac applications which requires a stern bout with an installer, a license agreement, and a System Preferences add-on. When it’s finished, you will have to restart and it should have completed the installation for you (no drag-and-drop necessary). As you may have guessed from the site, you only received a trial version of the pro codec. This means that you won’t be able to encode DivX content after six months. However, the decoder should still work and this will allow you to play DivX files from within QuickTime more or less indefinitely.
由于其出色的质量和压缩率,越来越多的高输出编码器正在迁移到H.264,但是专有编解码器DivX仍然有很多东西。 要获得DivX的QuickTime支持(并因此获得FrontRow),我们必须从此处下载DivX免费编解码器。 这是那些不寻常的Mac应用程序之一,需要带有安装程序,许可协议和“系统偏好设置”附加组件的严格提示。 完成后,您将必须重新启动,并且它应该已经为您完成了安装(无需拖放)。 正如您可能从该站点猜到的那样,您仅收到了pro编解码器的试用版。 这意味着六个月后您将无法对 DivX内容进行编码 。 但是,解码器仍然可以工作,这将使您可以或多或少地无限期地从QuickTime播放DivX文件。
Xvid in QuickTime is a little less ostentatiously supported than the DivX codec, however, it’s probably a little easier to deal with. First, download the Xdiv DMG from this link. Just like with Perian, you will have to mount the DMG and then do a little leg-work to make things happen. Open up “Macintosh HD” (or whatever you call your hard drive icon thingy on the desktop) and then open /Library/QuickTime. In there, you should see a few other .component “brick icons” which represent the other codecs you have installed. Drag the Xvid_Codec_….component file (again LEGO brick icon) into the QuickTime folder along with the other codec components. Log out, and then log back in and you should be able to play Xvid files in FrontRow.
与DivX编解码器相比,QuickTime中的Xvid支持程度要低一些,但是,处理起来可能要容易一些。 首先,从此链接下载Xdiv DMG。 就像与Perian一样,您将必须安装DMG,然后做一些小小的工作才能使事情成真。 打开“ Macintosh HD”(或任何在桌面上称为硬盘图标的东西),然后打开/ Library / QuickTime。 在其中,您应该会看到其他一些.component “砖墙图标”,它们代表您已安装的其他编解码器。 将Xvid_Codec_….component文件(同样是LEGO砖形图标)与其他编解码器组件一起拖到QuickTime文件夹中。 注销,然后重新登录,您应该能够在FrontRow中播放Xvid文件。
![](https://i-blog.csdnimg.cn/blog_migrate/0d628918b9e5289e9609497bb9f34d13.png)
WMV support is a bit painful, but not as painful as trying to get DivX working for the first time. The WMV codec is completely proprietary, but thankfully there is an implementation of the codec for QuickTime called “Flip4Mac”. It’s available at this page. Just like DivX, you’ll have to run an installer and will need to restart once it is completed. Also like DivX, Flip4Mac will install a (somewhat useless) System Preference page. However, once the installation is complete, you’ll be able to play those dreaded WMV files in QuickTime and FrontRow.
WMV支持有点痛苦,但没有尝试使DivX首次工作那样痛苦。 WMV编解码器是完全专有的,但值得庆幸的是,有一个QuickTime编解码器的实现,称为“ Flip4Mac”。 在此页面上可用。 与DivX一样,您必须运行安装程序,安装完成后需要重新启动。 像DivX一样,Flip4Mac将安装一个(有些用处)系统偏好页面。 但是,安装完成后,您将可以在QuickTime和FrontRow中播放那些令人恐惧的WMV文件。
![](https://i-blog.csdnimg.cn/blog_migrate/aa2e79b174838b20080cdc3ad5594c10.png)
AC3 (AC3)
Some video files (usually Xvid) are encoded with AC3 audio streams. While it’s always fun to try and perform dialog and sound effects by yourself (or even better, with a group), it’s usually more satisfying to actually hear the sound-track recorded for the movie.
某些视频文件(通常是Xvid)是使用AC3音频流编码的。 尝试自己执行对话和声音效果(或者甚至更好地与一群人)总是很有趣,但实际上听到电影录制的音轨通常会更令人满意。
The codec for AC3 in QuickTime is available for download here and must be installed similarly to Xvid (by dragging the .component file to /Library/QuickTime and then logging out and logging back in). However, there are some unfortunate side-effects you should be aware of before you perform this step. Most importantly, it seems to break H.264 support in QuickTime. This is a killer for me, since I love watching H.264 encoded videos because of the higher quality. I would recommend that if you don’t absolutely need AC3 audio support, you leave this codec out and enjoy the perks of your H.264 files.
QuickTime中AC3的编解码器可在此处下载,并且必须与Xvid相似地安装(通过将.component文件拖到/ Library / QuickTime,然后注销并重新登录)。 但是,在执行此步骤之前,您应该注意一些不幸的副作用。 最重要的是,它似乎破坏了QuickTime对H.264的支持。 这对我来说是杀手,,因为我喜欢观看H.264编码的视频,因为它的质量更高。 我建议您,如果您绝对不需要AC3音频支持,请不要使用此编解码器,并享受H.264文件的好处。
结论 (Conclusion)
Hopefully, you should be able to use the information in this article to beef up the video playback support of your Mac Mini and improve your overall FrontRow experience. Stay tuned for part three, when we’ll finally get to all the boring NFS configuration and iptables hacks!
希望您应该能够使用本文中的信息来增强Mac Mini的视频播放支持并改善总体FrontRow体验。 请继续关注第三部分,当我们最终了解所有无聊的NFS配置和iptables hack时!
翻译自: https://www.howtogeek.com/howto/uncategorized/use-your-mac-mini-as-a-media-server-part-2/