Hi
With 4k Movies can filebot recognise it is an Dolby Atmos or DTS-X soundtrack, My files are always named TrueHD 7.1
using the {ac} {channels}
Remux 4k files can have a few audio streams, is it possible for filebot to find the biggest/best audio and name accordingly? Depending if it Atmos or DTS-X?
Possibly yes, but you might have to come with the rules for what constitutes Dolby Atmos or DTS-X yourself: viewtopic.php?f=5&t=4285
The {aco}(based on audio stream Codec_Profile field) is probably the most related top-level binding. But you can access any MediaInfo field directly and then have your own logic come up with some value based on that.
Finding the "biggest" audio stream is easy, since you just need to compare the stream size, but "best" is highly subjective and so you'd have to encode your preferred sort order in your format as well. I'd go with "biggest" audio stream, or check if any audio stream matches your Atmos / DTS-X criteria, and then just print that.
That's excellent. I didn't realise you can pull so much info.
So going with the biggest audio file would make sense as it's most likely to be the best audio file with Atmos/dts-x
Now I just need to work out how to make this happen!
{def best = any{audio.max{it.StreamSize.toInteger()}}{audio}; (ac == 'MP3'|| ac == 'AAC'|| ac == 'EAC3') ? ac : any{(best.Codec+'.'+best.FormatProfile.replaceAll(/\/.*/))}{audio.Codec.join()}}
Hi Kim
Thank you for all the information.
Does the last piece of code find the biggest file and rename? Or does it display the name of the audio file as displayed in mediainfo. My mind is a little blown how in-depth this is.
Generally my files are named DTS 5.1, DTS 7.1, Dolby TrueHD etc With the info you have provided would I need to rename the audio file it finds based on logic as Mediainfo doesnt state Dolby Atmos or DTS:X?
so I gave
{def best = any{audio.max{it.StreamSize.toInteger()}}{audio}; (ac == 'MP3'|| ac == 'AAC'|| ac == 'EAC3') ? ac : any{(best.Codec+'.'+best.FormatProfile.replaceAll(/\/.*/))}{audio.Codec.join()}}
that worked by listing all the audio files names next to each other. e.g DTS-HDDTSAC3AC3
This is from a file with a atmos track, how can you use this info to label correctly?
Another question, is it possible to have a few options with replaceAll e.g TrueHD.TrueHD and also TrueHD.AC3 so if any option comes up you can add it into
H Kim
I apologise for giving a poor example of TrueHD.AC3
The errors I actually got were. TrueHD.TrueHD+Atmos 7.1 and also AC3+.Atmos 7.1
I do have the latest versions it was just error on my part.
Version 3.1 now works perfectly.
Thank you so much. I will try and learn some more with your advice.
Hi
So the naming of DTS-X files has changed recently, instead i get DTS-HD Master Audio? I have checked file with Mediainfo and can see the commercial name is this... DTS-HD Master Audio is this right?
Im using ver3.1 of the audio naming by kim in this post, it used to rename to DTS-HD.X
Is it possible to use format from string below and then rename
e.g DTX XLL X to ' DTS-X ' and MLP FBA 16-ch to ' Dolby Atmos ' ?
Audio #1
ID : 2
Format : DTS XLL X
Format/Info : Digital Theater Systems
Commercial name : DTS-HD Master Audio
Codec ID : A_DTS
Duration : 2 h 11 min
Bit rate mode : Variable
Bit rate : 4 119 kb/s
Channel(s) : 8 channels
Channel(s)_Original : Object Based
Channel layout : Object Based
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 SPF)
Bit depth : 24 bits
Stream size : 3.79 GiB (12%)
Title : Fast.Five.2011.EXTENDED.2160p.BluRay.x265.10bit.HDR.DTS-X.7.1-SWTYBLZ
Language : English
Default : Yes
Forced : No