Re: Search for and tag video files [custom columns]
Posted: 03 Nov 2020 17:41
Forum for XYplorer Users and Developers
https://www.xyplorer.com/xyfc/
text $result; end true; with:$result = replacelist($result, "|<::>,", "/<::>;", "<::>");At the moment the value of TagsSeparator in my XYplorer.ini is empty. Should I define a value for that?
return gettoken(tagitems("tags",, <cc_item>), <x>, "#::#");Code: Select all
C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe --inform=Audio;%Channel(s)%/ "Z:\Test - Test\The Craft Legacy (2020) WEBRip-1080p [10-Bit][x265][AAC 5.1][TMDB-590995].mp4"
2/6/
C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe --inform=Audio;%Title%/ "Z:\Test - Test\The Craft Legacy (2020) WEBRip-1080p [10-Bit][x265][AAC 5.1][TMDB-590995].mp4"
Stereo / Stereo/5.1 Channel / 5.1 Channel/
C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe --inform=Audio;%BitRate/String%- "Z:\Test - Test\The Craft Legacy (2020) WEBRip-1080p [10-Bit][x265][AAC 5.1][TMDB-590995].mp4"
256 kb/s-224 kb/s-
Code: Select all
Z:\Test - Test\The Craft Legacy (2020) WEBRip-1080p [10-Bit][x265][AAC 5.1][TMDB-590995].mp4|0|01:34:22.890#::#2/1//Yes#::#English / English#::#AC-3 / AAC LC#::#HEVC#::#The Craft: Legacy#::#Horror#::#Zoe Lister-Jones#::#Cailee Spaeny / Zoey Luna / Гидеон Адлон / Lovie Simone / David Duchovny#::#An eclectic foursome of aspiring teenage witches get more than they bargained for as they lean into their newfound powers.#::#1920x800#::#23.976#::#2.40:1#::#FHD / FHD#::#2 000 kb/s#::#2/#::#Stereo / Stereo/#::#256 kb/s-#::#6/#::#5.1 Channel / 5.1 Channel/#::#224 kb/s-#::#Code: Select all
$SEP = "#::#";
$attributes = <<<>>>
General;%Duration/String3%$SEP%AudioCount%/%VideoCount%/%TextCount%/%Cover%$SEP%Audio_Language_List%$SEP%Audio_Format_List%$SEP%Video_Format_List%$SEP%Title%$SEP%Genre%$SEP%Director%$SEP%Actor%$SEP%LongDescription%$SEP
Video;%Width%x%Height%$SEP%FrameRate%$SEP%DisplayAspectRatio/String%$SEP%Title%$SEP%BitRate/String%$SEP
Audio;%Channel(s)%/$SEP%Title%/$SEP%BitRate/String%-$SEP
>>>;Code: Select all
return gettoken(tagitems("tags",, <cc_item>), 16, "#::#");
return gettoken(tagitems("tags",, <cc_item>), 17, "#::#");
return gettoken(tagitems("tags",, <cc_item>), 18, "#::#");Code: Select all
Audio;%Channel(s)%/$SEP%Title%/$SEP%BitRate/String%-$SEP
Code: Select all
Audio;%Channel(s)%$SEP%Title%$SEP%BitRate/String%$SEP
I have already tried it. I checked once more. Removing the separators makes no difference in the final column results.highend wrote: ↑03 Nov 2020 21:25 The tagged data may be there but look at the end of it, the values are not in the same field, but separated by multiple ones
I guess that's because of your template entries
You have forward slashes outside of attribute definitions which probably act as separators in what mediainfo finally produces...Code: Select all
Audio;%Channel(s)%/$SEP%Title%/$SEP%BitRate/String%-$SEP
Use this and try again...Code: Select all
Audio;%Channel(s)%$SEP%Title%$SEP%BitRate/String%$SEP
Code: Select all
C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe --inform=Audio;%Channel(s)% "Z:\Test - Test\The Craft Legacy (2020) WEBRip-1080p [10-Bit][x265][AAC 5.1][TMDB-590995].mp4"
26
C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe --inform=Audio;%Title% "Z:\Test - Test\The Craft Legacy (2020) WEBRip-1080p [10-Bit][x265][AAC 5.1][TMDB-590995].mp4"
Stereo / Stereo5.1 Channel / 5.1 Channel
C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe --inform=Audio;%BitRate/String% "Z:\Test - Test\The Craft Legacy (2020) WEBRip-1080p [10-Bit][x265][AAC 5.1][TMDB-590995].mp4"
256 kb/s224 kb/s26.Code: Select all
Audio #1
2/#::#Stereo / Stereo/#::#256 kb/s-#::#
Code: Select all
Audio #2
6/#::#5.1 Channel / 5.1 Channel/#::#224 kb/s-#::#
I have made 2 video files:highend wrote: ↑04 Nov 2020 00:53 MediaInfo behaves correctly.
It outputs these attributes per stream...Code: Select all
Audio #1 2/#::#Stereo / Stereo/#::#256 kb/s-#::#And the full output is just a concatenation of the two.Code: Select all
Audio #2 6/#::#5.1 Channel / 5.1 Channel/#::#224 kb/s-#::#
The same would happen if there is more than one subtitle, more than one videostream (is that even possible?)...
This can eventually be solved by identifying such patterns and merging the belonging components into the same field but this requires some serious thinking.
Do have any video file with
a.) At least two audio streams
+
b.) Minimum of three subtitle streams
that you could share?