Hi all,
Downmix your Surround Sound to Stereo before using this “Pre-encoding” guide
I have decided to make available my x264 presets for VidCoder that have taken me so long to come up with, but which will 99.9% do away with all your transcoding issues 
There are many Handbrake/VidCoder presets and settings sprinkled throughout the Plex forums and the internet for that matter.
What makes these presets different?
Why would I not just use the normal encoder “Preset” and “Tune” options for x264?
Although these presets ‘mimic’ the Fast, Medium, Slow, Slower & Very Slow and Film & Animation settings of x264, they have been customized specifically for two very distinct reasons:
These presets result in an MP4 file that has a variable bitrate that is capped to stay within the bounds of Plex’s Quality settings, 3Mbps, 4Mbps, 8Mbps, 10Mbps, 12Mbps, 15Mbps & 20Mbps
These presets result in an MP4 file that is extremely device compatible
Both of the above reasons result in an MP4 file that can Direct Play - no more transcoding!
From my extensive testing, these presets easily beat Plex’s own “Optimized Versions” in both respects.
The idea is that you take your original Blu-ray file, MKV file, MP4 file, etc and run it through VidCoder to give you the most “bandwidth ready” and “device compatible” MP4 file.
Sit this file next to your original and let Plex choose it when necessary, or use it as an archive file and delete the original - up to you.
These presets are designed to run on 8-bit 720p/1080p/2160p & 23.976/24/25/29.97/30 framerate source files.
In order of highest to lowest quality / slowest to fastest encoding speed:
- x264 Custom - Archive quality / Takes forever (use highest bitrate needed to archive)
- x264 Slower - Extra high quality / Extra slow speed
- x264 Slow - High quality / Slow speed
- x264 Medium - Medium quality / Medium speed
- x264 Fast - Low quality / Fast speed
Why VidCoder and not Handbrake?
In my opinion, VidCoder handles audio passthrough far better, has a nicer user interface, and makes subtitles and chapters easier to handle.
Why H.264 and not H.265?
Our aim is to prevent transcoding, so device compatibility is a high priority, hence H.264.
Why AAC stereo at 160Kbps?
Again, our aim is to prevent transcoding, so device compatibility is a high priority. AAC stereo is the most compatible, and 160Kbps is the highest bitrate with the highest device compatibility.
VidCoder is a front-end for Handbrake, both popular pieces of encoding software.
(If you’re not sure what VidCoder or Handbrake are, this How-To may be a little over your head).
But… Before starting, determine your “Bitrate Requirement”.
Do I have low bandwidth wifi in my local network?
Do I have ‘remote users’ now?
Might I have ‘remote users’ in the future?
Might I be my own ‘remote user’ in the future (on holiday)?
What internet download speed (remote user) is likely to be the limit? 3Mbps, 8Mbps, 20Mbps?
What internet upload speed (Plex server) is likely to be the limit? 3Mbps, 8Mbps, 20Mbps?
How many concurrent streams do I anticipate? 1, 2, 10?
Can my upload speed handle that many concurrent streams?
The answers to these questions will help you determine which preset you decide to use.
Also, before encoding your entire library, just try one or two test files first and confirm the results.
How To:
- Download, install and run VidCoder
- Download presets:
- VidCoder Presets (x264 Custom) v200423_1250.zip (24.4 KB)
- VidCoder Presets (x264 Slower) v200423_1250.zip (24.2 KB)
- VidCoder Presets (x264 Slow) v200423_1250.zip (23.8 KB)
- VidCoder Presets (x264 Medium) v200423_1250.zip (24.1 KB)
- VidCoder Presets (x264 Fast) v200428_0712.zip (24.0 KB)
- Import presets into VidCoder
- Choose desired preset:
- 720p + AAC - 3Mbps, 4Mbps
- 1080p + AAC - 6Mbps, 8Mbps
- 1080p + AAC/AC3 - 8Mbps, 10Mbps, 12Mbps, 15Mbps or 20 Mbps
- Choose either “Cartoon” animated or “Film/CGI” style
- Select source file (remember, only normal source files will work with these presets, 8-bit 720p/1080p/2160p & 23.976/24/25/29.97/30 framerates)
- Select surround sound as second audio track if required (if “AAC/AC3” preset is selected)
- “Burn In” a subtitle track if required (Foreign Audio, etc)
- Check “Cropping” (Settings > Sizing) if necessary
- Adjust "Constant Quality (Settings > Video Encoding) if necessary
- Encode
Remember to set your Plex Server’s “Upload Bandwidth” settings correctly, as well as all of your (and your remote users) device’s “Plex Quality Settings” (both “Home” and “Remote”).
These settings will allow Plex to correctly choose your newly encoded MP4 file.
Also, allow Plex to “Perform extensive media analysis during maintenance” in your Plex Server settings (Scheduled Tasks).
This will allow Plex to perform a “Deep Analysis” of the file and determine its “Required Bandwidth”, which will prevent transcoding due to unnecessary bandwidth assumptions.
A few notes on these presets:
“(x264 Custom)” presets sit somewhere between “Very Slow” and “Placebo”.
These were my original and only settings. I have since added the others 
Personally, I like to set the “Constant Quality” (Settings > Video Encoding) to 10.
This might seem like overkill, but as these presets are “bitrate capped”, I like to squeeze every bit into the file as possible.
Feel free to move this slider to your liking, which will potentially reduce the file size - say somewhere between 16 - 20.
The 3Mbps - 4Mbps 720p presets results in the most compatible MP4 file (Profile: High / Level: 3.1) - able to be played on almost all devices since 2010.
Although this is ‘only’ 720p, assuming the source file is original Blu-ray, these will still look pretty darn good upscaled on a 4K HDR TV, especially the 4Mbps 720p Custom preset, considering the limited bitrate. I don’t think any ‘remote users’ would complain with this quality (YMMV).
The 6Mbps -20Mbps 1080p presets will break a small amount of device compatibility (Profile: High / Level 4.0) , but will allow for higher quality encodes.
The resulting MP4 file requires a faster internet connection if you are remote streaming obviously (Server: Upload / Device: Download) .
I hope this helps someone or two 
Further information on requiredBandwidths:
https://forums.plex.tv/t/calculated-bandwith-vs-required-bandwidth/403057
References:
https://en.wikibooks.org/wiki/MeGUI/x264_Settings
https://trac.ffmpeg.org/wiki/EncodingForStreamingSites
http://www.lighterra.com/papers/videoencodingh264/
http://blog.mediacoderhq.com/h264-profiles-and-levels/
https://developer.apple.com/documentation/http_live_streaming/hls_authoring_specification_for_apple_devices
https://everymac.com/systems/apple/ipad/specs/apple-ipad-original-specs.html