Mediainfo Bitrate number formate
Posted: 07 Apr 2023 21:05
Hi,
Using this script to get the bitrate of video files:
It returns a lot of zeros.
And using:
The numbers have a space instead of decimal point so it can't be sorted correctly.

So how do I divide Video;%BitRate% by a 1000 or remove the space from Video;%BitRate/String%
Thank you.
Using this script to get the bitrate of video files:
Code: Select all
$round = 1;
$div = ".";
$mediaInfo = "C:\MediaInfo\MediaInfo.exe";
$length = regexreplace(runret("$mediaInfo --Inform=Video;%BitRate% ""<cc_item>"""), "\n");
return $length;And using:
Code: Select all
Video;%BitRate/String%
So how do I divide Video;%BitRate% by a 1000 or remove the space from Video;%BitRate/String%
Thank you.