I had not done this previously, but recently had a need to download a hi-res (2k) YouTube video because I needed direct access to it for reference. I first downloaded via 4K Video Downloader and it played back perfectly in VLC but Plex threw a playback error. Then I tried downloading it via youtube-dl and and still the same issue. I then downloaded it as a 1080p mp4 and it worked just fine.
I wasn’t even trying to play the file from a client, just directly from Firefox on my Mac that runs PMS. So everything is local with very fast internal drives. It has nothing to do with a speed issue, and everything to do with the video encoding.
So, I think I’ve nailed down the problem to the webm video encoding and the opus audio coming from YouTube. It’s all packaged in an MKV container but Plex refuses to play it back.
I really need it in full 2k resolution, which I cannot get by downloading the MP4.
The only solution I have come up with is to download the 2k MKV and then use FFMpeg to transcode it to an MP4 via ffmpeg -i file.mkv file.mp4. That works and Plex will play it back, but what a hassle to have to manually transcode the file.
It would be great if Plex would natively play back webm/opus MKV files so I don’t have to go through all of this if I never need to do this again.