

Fortunately using this method means that you only have to re-encode the audio not the video so only takes a few minutes even on an old core i5. For me this made the soundtrack much louder and especially made a difference to dialog. The below script takes a DTS audio track from a file and re-encodes it to 5.1 channel AC3. The only solution was to re-encode the audio track using FFmeg. There was no solution I could find within the applications or the audio systems to correct this. 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. mkv files through the below script I had an. (Not recommended except for compatibility): ffmpeg -i video.wmv -b:a 160k video.avi. Basic encoding using default formats (mpeg4 video and ac3 audio).

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. This is because ffmpegs libopusenc only accepts L+R+C+LF+BL+BR (using back channels) for 5.1ch surround, while your input is L+R+C+LF+SL+SR (using side channels). To copy/passthrough a stream (audio or video) without reencoding it: Use -c copy: ffmpeg -i video.wmv -map 0:3 -c:v libx264 -map 0:a -c:a copy video.mp4.

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. 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. Some Plex players do not give Plex full access to the OS/hardware for DTS decoding.
