Plex streaming HEVC MKV color distortion improved workaround
Surprise surprise, it's 2024 and Plex still has not fixed this issue. I own a Roku Express 4k and am still having trouble on the latest update.
I read through the full thread and threads on the Plex forum, and I have developed an improved workaround that makes "fixing" your files a lot easier.
The (very) short version of the issue: Roku has a well documented issue playing HEVC-encoded content that uses the rec.709 color space. The primary workaround involves stripping the file color header information using a tool such as mkvpropedit, unfortunately, Roku ALSO doesn't play nice with AAC audio - so if your file is HEVC rec.709 and uses AAC audio, even if you strip the header info, Plex will re-encode the video and audio on the fly and reintroduce the header issue.
I have written a simple batch script that utilizes ffmpeg and mkvpropedit together to fix files, and for those with large libraries, it is designed to loop through a directory and fix all MKV files automatically.
Here is the script: Fix for HEVC rec.709 MKV files for streaming on Roku via Plex
All that you need to do is download the script to a text file with the extension .bat, change the input directory to your video directory, and have ffmpeg.exe and mkvpropedit.exe in the same location as the script file (they are easy enough to find online). For each MKV file in the given directory, the script will output a "fixed" file with the tag -ac3 on the end. You will have to manually handle coping/moving/deleting the originals. This script should in theory work with mp4 files as well with some small adjustments, but I have not tested that.