Use FFmpeg to convert a DTS soundtrack to AC3 without re-encoding video

Problem:
Some Plex players do not give Plex full access to the OS/hardware for DTS decoding. This means that Plex will then have to transcode the audio which can mean lots of buffering or in the case of the Xbox One X will force 4K video to be transcoded to 1080p.  You may also find that If you don’t have a true 5.1 channel audio system (such as some soundbars) you may find that DTS soundtracks are quiet when used with media players suck as Kodi, Plex or Windows media player.  As the Xbox One X fully supports Plex using AC3 the solution below also solved many audio sync issues for me that seemed to occur when the DTS audio was being transcoded.  After running my .mkv files through the below script I had an .mkv file that I could play on Xbox One X which had clear/loud audio, would direct play (including 4K HDR) and had no audio sync issues.

Continue reading “Use FFmpeg to convert a DTS soundtrack to AC3 without re-encoding video”