DTS-HD, MA, TrueHD, etc.

Any questions? Need some help?
Post Reply
FlangeMonkey
Posts: 7
Joined: 28 Mar 2013, 23:28

DTS-HD, MA, TrueHD, etc.

Post by FlangeMonkey »

Hi Guys,

I wonder if anyone can help? I have several DTS-HD, MA and TureHD encoded files. However when it renames them, its not identifying them as TureHD or DTS-HD MA.

Thanks,
User avatar
rednoah
The Source
Posts: 22971
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: DTS-HD, MA, TrueHD, etc.

Post by rednoah »

You mean {source} binding? Things are only "identified" as episode/movie. You mean too keep some text from the original filename?
:idea: Please read the FAQ and How to Request Help.
FlangeMonkey
Posts: 7
Joined: 28 Mar 2013, 23:28

Re: DTS-HD, MA, TrueHD, etc.

Post by FlangeMonkey »

Its the {ac} binding I'm looking at. for example DTS-HD MA shows up as DTS.

I'm unsure of a couple of things, such as how XBMC identifies the audio codec, which are correctly displayed. Or if this is normal within the file containers. Or how to handle this for correct file naming. Ultimately I'd like to preserve the correct audio streams within the filename.
User avatar
rednoah
The Source
Posts: 22971
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: DTS-HD, MA, TrueHD, etc.

Post by rednoah »

What do you see in the bindings?
Clipboard02.png
Did you try {audio.Format_Profile}?
:idea: Please read the FAQ and How to Request Help.
FlangeMonkey
Posts: 7
Joined: 28 Mar 2013, 23:28

Re: DTS-HD, MA, TrueHD, etc.

Post by FlangeMonkey »

Thanks for that, unfortunately I'm on OSX, so cannot view the bindings to that degree, unless you can point me in a direction or is there a post somewhere that contains all bindings?

I just tried {audio.Format_Profile} and that contains MA Core (DTS-HD MA). I'm also seeing Layer 3 (mp3), Pro (WMA), ES and LC.

I'm sure I could add them as needed or work with that to reformat them.

Thanks,
User avatar
rednoah
The Source
Posts: 22971
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: DTS-HD, MA, TrueHD, etc.

Post by rednoah »

I don't have any of those files to test with so I won't blindly mess with how {ac} works.

Just build in some logic, e.g.

Code: Select all

{audio.FormatProfile =~ /DTS/ ? audio.FormatProfile : ac}
If {audio.FormatProfile} contains DTS use {audio.FormatProfile} otherwise use {ac}

MacOS has the same GUI as Windows... as the screenshot says:
Datasource Popup => Edit Format => "(x)=" Button => Select your media file to test with => Click "info table" button right next to the file
:idea: Please read the FAQ and How to Request Help.
FlangeMonkey
Posts: 7
Joined: 28 Mar 2013, 23:28

Re: DTS-HD, MA, TrueHD, etc.

Post by FlangeMonkey »

Thank you very much,

You have excellent support here.

However, the MediaInfo comes up blank...
FlangeMonkey
Posts: 7
Joined: 28 Mar 2013, 23:28

Re: DTS-HD, MA, TrueHD, etc.

Post by FlangeMonkey »

If anyone is interested, this is what I currently have:

Code: Select all

{ac}{audio.FormatProfile =~ /MA Core/ ? audio.FormatProfile.replace("MA Core",'-HD') : (audio.FormatProfile =~ /ES/ ? audio.FormatProfile.replace("ES",'-ES') : (audio.FormatProfile =~ /Pro/ ? audio.FormatProfile.replace("Pro",'-Pro') : (audio.FormatProfile =~ /LC/ ? audio.FormatProfile.replace("LC",'-LC') : '')))}
Changes tags for:

DTS-HD
DTS-ES
WMA-Pro
AAC-LC

I'm not use to this type of code and am missing stuff. But it will do until I figure a few things out.
Post Reply