I let this free tool re-encode my Plex library overnight, and my media drive is half empty again
Tdarr is all I needed.
We haven't written up this one. XDA Developers has the full story — the link below goes straight to it.
Source: xda-developers.com