Page 1 of 1

Audio bitrate?

Posted: 12 May 2021, 16:18
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

Re: Audio bitrate?

Posted: 12 May 2021, 16:40
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.

Re: Audio bitrate?

Posted: 12 May 2021, 17:17
by dseto
Thanks so much for the fast reply, it works great!!