Audio bitrate?

All about user-defined episode / movie format expressions
Post Reply
dseto
Posts: 5
Joined: 26 Dec 2015, 13:24

Audio bitrate?

Post by dseto »

Is there a way to detail the audio bitrate like the video bitrate.

I am looking to change the khz = "48.0 kHz" to the mbps instead , if that is possible.

code example

Code: Select all

{n} ({y}) - {vf} - {mbps} - {fps} - {hd} - {vs} - {hdr} - {bitdepth} - {aco} - {khz}
result

Code: Select all

1917 (2019) - 2160p - 90.6 Mbps - 23.976 - UHD - BluRay - HDR10+ - 10 - Dolby TrueHD with Dolby Atmos - 48.0 kHz
User avatar
rednoah
The Source
Posts: 19825
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Audio bitrate?

Post by rednoah »

You can access and format the Audio Stream #1 bitrate like so:

Code: Select all

{((audio[0].'BitRate' as float) / 1e6).round(1)}
or

Code: Select all

{audio[0].'BitRate/String'.slash('p')}
:idea: viewtopic.php?t=4285




EDIT:

FileBot r8434 adds {vbr} video bitrate and {abr} audio bitrate bindings with automatic unit scaling.
:idea: Please read the FAQ and How to Request Help.
dseto
Posts: 5
Joined: 26 Dec 2015, 13:24

Re: Audio bitrate?

Post by dseto »

Thanks so much for the fast reply, it works great!!
Post Reply