24.11.2017, 07:57
Hopefully I fixed it yesterday, but was to sleepy and forgot to attach the new version.
-> please try attached version
Cu Selur
-> please try attached version
Cu Selur
(24.11.2017, 07:57)Selur Wrote: [ -> ]Hopefully I fixed it yesterday, but was to sleepy and forgot to attach the new version.Using the previous command example:
-> please try attached version
Cu Selur
"MediaInfoRenamer.exe" --EncodingSettings="crf %crf%#%ip_ratio%#%pb_ratio%#qcomp%qcomp%" --Separator="#" --Merger="_" test.mkvRenaming 'test.mkv' to 'test_crf 28.0_qcomp0.80.mkv'.Renaming 'test.mkv' to 'test_qcomp0.80.mkv'.(25.11.2017, 14:16)Selur Wrote: [ -> ]Try the attached version.Seems to work correctly in all of my tests thus far.
Cu Selur
Quote:When a file includes multiple audio tracks, there is no separation of any kind between their readouts.How could there? The Renamer doesn't have any concept of the stream count number or anything.

Quote:Not sure if placing the standard Merger between the original filename and the first addition is always ideal, but i don't see any significant drawbacks to it either. Replacing it with an optional prefix (and possibly suffix) option(s), would solve any potential issues though.Not sure either if it's a good idea either.
Quote:Using or including a space character in the Merger could improve output readability in some use cases (when the resulting filename is split into multiple lines in a file browser), however currently using a space character as Merger results in: "Error: Missing a 'Merger' parameter" and when used as an additional character, like this: --Merger="; " it gets ignored unless another character is added after it.I probably added a 'trim' somewhere.

--FileSeparator: Place this text between the file name and the addition, when not used, 'Merger' will be used.(26.11.2017, 08:33)Selur Wrote: [ -> ]-> Added a new version which:Neither a. nor b. works in this build. Running this:
a. shouldn't 'trim off' spaces.
b. has a new parameter:
Code:--FileSeparator: Place this text between the file name and the addition, when not used, 'Merger' will be used.
MediaInfoRenamer.exe --Inform="Audio;%StreamSize%bytes#%BitRate/String%#%SamplingRate/String%#%Language%#ch%Channels%" --Separator="#" --Merger=" " --Replacements="kb/s%kbps#:%¦#/%;#\%;#|%;#?%#*%#.000%#.00%#.0%" test.mkvError: Missing a 'Merger' parameter!MediaInfoRenamer.exe --Inform="Audio;%StreamSize%bytes#%BitRate/String%#%SamplingRate/String%#%Language%#ch%Channels%" --Separator="#" --FileSeparator="_" --Merger="; " --Replacements="kb/s%kbps#:%¦#/%;#\%;#|%;#?%#*%# %#.000%#.00%#.0%" test.mkvError: File 'FileSeparator=_' doesn't exist!The Code Wrote:test;3371314bytes;296kbps;48kHz;en;ch61250849bytes;110kbps;48kHz;ja;ch2.mkv
(26.11.2017, 08:33)Selur Wrote: [ -> ]How could there? The Renamer doesn't have any concept of the stream count number or anything.I was just expecting to see a standard Merger there by default; see what i mean above... (*=Audio1; *=Audio2)
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.
(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.mkvtest - 3371314bytes; 296kbps; 48kHz; en; ch6; 1250849bytes; 110kbps; 48kHz; ja; ch2.mkv