Page 1 of 1

picking up second audio is always better.

Posted: 03 Mar 2023, 13:43
by Levaculik
hello I would like to know how I make the second audio.
for it to stay in this format.
KonoSuba.God's.Blessing.On.This.Wonderful.World!.Legend.Of.Crimson.2019.1080p.CR.WEB-DL.DD5.1.x264.pt-BR.JPN-Levaculik
I'm using this command:
for f in *.mkv; do filebot "$f" -rename -r , --format "{n.upperInitial( ).space('.') }.{y}.{t.space('.')}.{vf}.CR .WEB-DL.{ac}.{ac.replace('EAC3','DD')}.{channel}.{vc.replace('AVC','x264')}.pt-BR.JPN-Levaculik " --db TheMovieDB -non-strict ; done

Image

Re: picking up second audio is always better.

Posted: 03 Mar 2023, 14:36
by rednoah
You can use the {audio} binding to access all audio stream and properties. You will have to write your own code to format these values into your target file path one way or another. See MediaInfo Bindings for details.


e.g. access the Format property from the 2nd audio stream:

Code: Select all

{ audio[1].Format }

e.g. access the Format property from the largest audio stream:

Code: Select all

{ audio.max{ it.StreamSize as int }.Format }


:idea: Top-level bindings such as {ac} and {channels} have their own logic and may or may not be based on the first or all audio streams. {ac} may just give you the first value, since codecs are not comparable, but this is not specified one way or another and may change over time. {channels} will give you the highest channel count, since numbers are comparable.