DTS and the Pi?

WoW! Never realized that Kodi can re-encode to AC3 on the fly! I use a Raspberry Pi B (not the “2”) and I’m pretty sure that its CPU is to slow to do this on the fly.

Anyway, I discovered how to re-encode the DTS to AC3, my personal Help txt file about this reads as follows (I use Linux):

General info:


- The output of a DTS-CD over s/pdif may not be upsampled from 44.1 kHz to 48 kHz. The DTS .wav files that must be burned to CD will not play in Kodi. 
- DTS-CD images may be provided w/ a .cue file. That is a text file that contains the times that each track is started. It is readable by Kodi. When you've converted the bin/wav/cue to another format and filename then you can simply edit this cue file w/ a text editor.  


Converting:
~~~~~~~~~~~

1. If the DTS-CD is in iso or bin image form: try to rip it to wav (and a cue file).
2. Example: 'XXXXXXX'. That's one .wav file with a .cue file.

3. Convert it to "real DTS wav" by cutting out empty spaces or something like that... Use the Windos/DOS program BeSplit.exe:  `
wine ./BeSplit.exe -core\( -input RW-ATD-DTS.wav -prefix fixed -type dtswav -fix \)
`The backslashes are escape characters.
4. You'll end up w/ a file called 'fixed01.dtswav' that can be played by Kodi.

5. One might convert this file even further. But that will probably result in quality loss because both DTS and AC3 are lossy compression formats. To convert the fixed dtswav to Dolby Digital AC3 5.1 do:`
  dcadec -o wavall fixed01.dtswav | aften - fixed01.ac3
` 
6. Kodi wants the extension .wav for the DTS file and .ac3 for the AC3 one.  

7. I'd like to know how to convert this AC3 file to a DVD (i.e. make it into an MPEG2 file w/ chapters as the tracks).