picking up second audio is always better.

All about user-defined episode / movie / file name format expressions
Post Reply
Levaculik
Posts: 5
Joined: 05 Aug 2022, 00:33

picking up second audio is always better.

Post 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
User avatar
rednoah
The Source
Posts: 22899
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: picking up second audio is always better.

Post 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.
:idea: Please read the FAQ and How to Request Help.
Post Reply