transcode DTS to ac3 simple profile with video passthru
AUDIO / VIDEO
Resolution: up to 1920x1080p at 50/60Hz
Video decoder:MPEG-4.10/H264, MPEG-2, VC- 1,WMV9
Audio decoder: MPEG-4 AAC, MPEG-1/2 layer I/II/III, WMA9, Dolby Digital, Dolby Digital+ Audio pass through: direct output on SPDIF
Audio downmix: Multichannel to stereo
The following profile simply converts all MKV containers to mpegts containers (passthru of the video without transcoding) and only transcodes DTS(dca) to ac3. It works very well for this purpose and is less CPU intensive than transcoding the video as well as the audio.
- Code:
<Profile id="8000" name="8000 " extendsProfileId="1">
<Detection>
<HttpHeaders>
<X-AV-Client-Info>.*8000.*</X-AV-Client-Info>
</HttpHeaders>
<UPnPSearch>
<ModelName> 8000 </ModelName>
</UPnPSearch>
</Detection>
<Transcoding>
<Video targetContainer="mpegts" targetACodec="ac3">
<Matches container="*" aCodec="dca" />
</Video>
</Transcoding>
</Profile>
However some of my videos have two audio codecs supported (ie. "DTS" as well as "ac3") but this profile automtically transcodes them when it sees the DTS codec regardless of the fact it has an alternate ac3 codec embedded in the container as well. How would I modify this profile so that it searched the MKV container to see if it has an alternate ac3 audio stream and used it rather than immediately transcoding at the first sign of DTS?