26.11.2017, 17:53
(26.11.2017, 13:56)Selur Wrote: Attached a new version for you.It's working correctly.
(26.11.2017, 13:56)Selur Wrote:Luckily this was fairly easy to work around by padding the Inform call with a copy of the Merger, like so:Quote:I was just expecting to see a standard Merger there by default; see what i mean above... (*=Audio1; *=Audio2)Don't see how to do that with the output MediaInfo provides for 'Inform'-calls.
MediaInfoRenamer.exe --Inform="Audio;%StreamSize%bytes#%BitRate/String%#%SamplingRate/String%#%Language%#ch%Channels%#; " --Separator="#" --FileSeparator=" - " --Merger="; " --Replacements="kb/s%kbps# %#.000%#.00%#.0%#:%¦#/%;#\%;#|%;#<%;#>%#?%#*%" test.mkv
test - 3371314bytes; 296kbps; 48kHz; en; ch6; 1250849bytes; 110kbps; 48kHz; ja; ch2.mkv
Sidenode: Ran some additional tests and noticed that --Replacements won't work for --EncodingSettings, however the only usage scenario i can think of where this would ever be useful is in cutting away trailing zeroes after the decimal point; which would cause it's own problems anyhow, with lines like 'scenecut-bias=0.05', at least the way i've used --Replacements in the above example for audio.
PS. Optional trailing zero removal would be another useful feature to consider, the problem with my --Replacements approach above being the lack of outside reference for reliably detecting end of the line.