After buying a new Apple TV last year I have been trying to use the Plex App for all my media needs outside of Netflix. I run the Plex Media Server on an old Mac with a very small SSD and lots of External HD space which contains my media. Because of this I needed to do some tweaks to get it to work.
On OS X, Plex keeps all its metadata in
Media Server. I shouldn’t have been surprised when shortly after firing it up
I got a low disk space warning as the downloaded metadata for my library
quickly ate through what little space I had remaining on the boot volume.
Fortunately this was quite straightforward to fix:
- Shutdown Plex Media Server
~/Library/Application Support/Plex Media Serverinto a different location with more available space (in my case
/Volumes/Mediawhich is my External HD)
- From the terminal run the following command:
ln -s "/Volumes/Media/Plex Media Server/" "~/Library/Application Support/Plex Media Server"
- Relaunch Plex Media Server
Ensure you substitute
/Volumes/Media/Plex Media Server/ with the correct
location you moved it to, while keeping the second path (
exactly the same. These steps replace the original folder with a
symbolic link to the external
drive. When Plex attempts to access data in the directory, OS X will
transparently point it to the External Drive instead without using up any
precious SSD space.
All was well and I was using this setup for several months until I tried to play a 1080p file which needed transcoding. Whenever I selected the file Plex would briefly attempt to load before returning back to the menus. Looking in the Plex Server dashboard I could see that there was no transcoding in progress but no other errors. Checking for any settings related to transcoding it seemed like it would put transcoded files in the external drive so I didn’t think that was the issue. I figured the Mac simply wasn’t powerful enough to transcode the video and thought no more of it.
Until last night! I was bothered by the fact that it simply did nothing. If the
machine wasn’t powerful enough I would have expected buffering problems and
even manual transcoding in advance wasn’t working. I enabled Debug logging
Settings -> Server -> General and took a look in
Media Server.log and immediately spotted the problem:
1 2 3
The transcoding was happening outside of the Application Support directory and
instead using another path on the SSD so there simply wasn’t enough available
space. I used the same steps above to move the
Transcode directory to the
external drive as well and now transcoding works perfectly.
These were the steps I used to fix the transcoding as well:
$ rm -rf ~/Library/Caches/PlexMediaServer/Transcode
$ mkdir "/Volumes/Media/Plex Media Server/Transcode"
$ ln -s "/Volumes/Media/Plex Media Server/Transcode/" "~/Library/Caches/PlexMediaServer/Transcode"
With these and the steps above Plex should work perfectly on your Mac, Transcoding and all.