If you’re a Mac user, you know that there are a lot of ways to use your computer as a media server. You can stream music and video from your phone or tablet, play back audio and video files from your NAS, or even stream live TV. But what if you want to do more than just stream media? What if you want to create your own media center on your Mac? There are a few things you need in order to do this. First, you’ll need an Apple TV. Second, you’ll need an Apple computer. And finally, you’ll need some software that will help you create and manage media servers on your Mac. To start creating a media server on your Mac, first open up Terminal and type the following command: 1 sudo mkdir -p /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/CoreSimulator/Profiles/Runtimes/iOS 11.4.simruntime/Contents/* 2 cd /Applications 3 sudo cp -r ~/Library/* /Applications 4 sudo chmod +x ~/Library/* 5 sudo ./configure 6 sudo make 7 sudo install 8 cd .. 9 sudo cp -r ~/Library/.mplayer /usr 10 sudo cp -r ~/Library/.xbmc /usr 11sudo rm -rf ~/.mplayer 12sudo rm -rf ~/.xbmc 13sudo mkdir -p ~/.mplayer 14sudo cp ~/.mplayer/.cache 15sudo chmod +x ~/.mplayer 16sudo touch .mplayer 17sudo nano .mplayer 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90
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.
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.
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 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)
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.
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.
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.
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.
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.
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!