Soory, it took me a whike, but the 'fidding' takes more than a few minutes.
So I ran a litte test setup, wrote everything down and now I am partially wiser and partially more confused.
Test done on AMD Ryzen Eight Core, 32GB, three 10GB video-files on a SSD , one has 1 DTS + 2 AC3; 2 has one DTS-ES; three has DTS-ES + DTS-HD (DTS-HD maybe ffmpg says so, but mediainfo says "DTS ES XXCH XLL (DTS-HD Master Audio" which I find confusing).
First:
- Code:
<MultipleAudioTrackAware>true</MultipleAudioTrackAware>
allows me to have two audio streams for transcoded files, but funnyhow not three. (No detailed test)
Second: transcoding and files/containers/codecs
I figured out that if serviiio does not trancode codecs, it will remux containers on the fly - no tmp/file created. But on my files it takes minutes until video event starts - once over 10 minutes. After that, it can ff and seek well.
If a codec is transcoded, a tmp/file is created. This way, video starts within about 10-15 seconds. FastForward works, but seeking (jumping to a certain time) takes very long, the further I seek, the longer, but just a few minutes will already take almost as long as just watching it.
Either way is unsatisfactory, one takes forever to start, the other forever to seek - not sure which is worse. Any way to speed one or another up? (transcoding video to mpeg2 doesn't make much difference)
Thirdly, the weird part: DTS, DTS-ES, DTS-HD transcoding
- Code:
<Transcoding>
<Video targetContainer="mpegts" targetACodec="ac3" aBitrate="512" >
<!-- dca commented out!
<Matches container="*" aCodec="dca" /> -->
<Matches container="*" aCodec="dts-hd" />
<Matches container="*" aCodec="truehd" />
</Video>
</Transcoding>
( I have another rule to transcode h265, but that should'nt interfere)
Documentation implies, that this would not transcode DTS, but DTS-HD. DTS-ES is not mentioned in documentation, so not sure.
However, this transcodes none of my audio codecs from above! So video one plays DTS, the others have no audio, since LG BP420 can't play them.
Now If I remove the comments thus including 'dca', DTS is still not transcoded, but both DTS-ES and DTS-HD are! (Both LG BP and the AVR say it's DTS for DTS and ac3 for DTS-ES/HD.
This is what I want but it goes against documentation. Is DTS really 'dca' ? Did I find a bug?
I am perfectly fine if someone tells me I got something totally wrong - I make mistakes. But so far, I can't see what.
I can supply more info like serviio.log in DEBUG or whatever.
Edit: Honouring your comment: Thanks, but there is no way I can recode all my library. Evens so - mkv is the container for file one with DTS, still takes forever to start.