Media files tagger

Discuss and share scripts and script files...
highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Media files tagger

Post by highend »

This script does the following:

It finds all media (video, audio, image) files (you can define a list of what extensions to search for) in the current folder and all subfolders (configurable) of it.
You'll get a menu that lets you choose one of your defined templates:
Select template.png
Select template.png (2.11 KiB) Viewed 2927 times
You can avoid the menu if you want to call a specific template when loading the script.
You need to populate a permanent variable for this.
E.g.:

Code: Select all

perm $P_MEDIA_FILES_TAGGER_USE_SECTION = "Audio file(s)"; load "Media files tagger.xys";
You can either use the value of the "MenuName" key of a section or the real section name (e.g. "Template_Audio").

After that it uses a MediaInfo template to tag each found file.
Default templates are in the .ini file and you can customize them as needed.
It is defined via several keys (section name) and their belonging values (the attributes for MediaInfo).

The whole purpose is to be able to access these tag information via (blazing fast) custom columns...

An example template for video files:

Code: Select all

General=Format=%Format%Duration=%Duration/String3%OverallBitRate=%OverallBitRate%
Video=CodecID=%CodecID%Width=%Width%Height=%Height%FrameRate=%FrameRate%DisplayAspectRatio=%DisplayAspectRatio/String%
Audio=Channels=%Channel(s)%CodecID=%CodecID%BitRate=%BitRate/String%
Text=Language=%Language%Default=%Default%
The .ini file has some comments to describe how exactly it must look like!

How custom columns script should look like?

Code: Select all

    // How to return specific attributes via a custom column
    // Single value that can exist multiple times (e.g. "Bitrate" from multiple "Audio" streams)
    // In this example they will be joined with "/" between all values

    // Readable way (to show what is done step by step)
    $desc    = "#::#Audio_Channels="; // Must be preceded with the used separator
    $tags    = tagitems("tags", , <cc_item>);
    $matches = regexmatches($tags, "$desc.*?(#::#|$)", <crlf>);
    $trimmed = replacelist($matches, "$desc<crlf>#::#", "", <crlf>);
    $joined  = replace($trimmed, <crlf>, "/");
    return $joined;

    // Everything in one call
    $desc   = "#::#Audio_Channels=";
    return replace(replacelist(regexmatches(tagitems("tags", , <cc_item>), "$desc.*?(#::#|$)", <crlf>), "$desc<crlf>#::#", "", <crlf>), <crlf>, "/");


    // Combined (differently named) single values (e.g. from the "General" section)
    $widthDesc  = "#::#Video_Width=";
    $heightDesc = "#::#Video_Height=";
    $width  = replacelist(regexmatches(tagitems("tags", , <cc_item>), "$widthDesc.*?(#::#|$)", <crlf>), "$widthDesc<crlf>#::#", "", <crlf>);
    $height = replacelist(regexmatches(tagitems("tags", , <cc_item>), "$heightDesc.*?(#::#|$)", <crlf>), "$heightDesc<crlf>#::#", "", <crlf>);
    if ($width != "" && $height != "") { return $width . " x " . $height; }
    else { return "N/A"; }
This is how the default template would look like with the belonging custom columns:
1.png
1.png (128.35 KiB) Viewed 2988 times
The second file is of type .mpg and hasn't been tagged (the file extension wasn't present in the .ini file Extensions= value).
The fourth file has multiple audio channels (they are aggregated into one column!) and ofc multiple (audio) codec and bitrates.
It is the only file in that list that has subtitles.

Current version: v0.6
Media files tagger_v0.6.xys
(17.97 KiB) Downloaded 165 times
Old version(s):
Media files tagger_v0.5.xys
(16.65 KiB) Downloaded 105 times
Media files tagger_v0.4.xys
(15.3 KiB) Downloaded 107 times
Media files tagger_v0.3.xys
(14.44 KiB) Downloaded 114 times
One of my scripts helped you out? Please donate via Paypal

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Search for and tag video files [custom columns]

Post by amirvf »

highend wrote: 03 Nov 2020 11:43 This script does the following:

It finds all video files (you can define a list of what extensions to search for in the script) in the current folder and all subfolders of it.
After that it uses the template (the attributes you want to get from these files) to tag each file appropriately.
The template must be defined / edited in the script file as well.

E.g.:

Code: Select all

General;%CodecID%#::#%Duration%#::#%OverallBitRate%#::#
Video;%Format%#::#%Width%#::#%Height%#::#%DisplayAspectRatio%#::#
Audio;%BitRate%#::#%Channel(s)%#::#


The tag in the database could look like this afterwards: mp42#::#232733#::#1047708#::#AVC#::#1280#::#720#::#1.778#::#192000#::#2#::#

This is one of the two ways that are supported how a tag entry can look like.
The above is position based.
The other way (look in the script^^) uses a (attribute-)named approach.

The whole purpose is to be able to access these tag information via custom columns afterwards and get blazing fast custom columns...

Access a tag info by position in a custom column would look like this:
return gettoken(tagitems("tags",, <cc_item>), <x>, "#::#");

Current version: v0.1
No version yet, I will make the configuration easier by using an .ini file instead of doing it inside the script...
I found a weird bug with this script:

I have a video file with the following information:

Code: Select all

General
Count                                    : 333
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Count of video streams                   : 1
Count of audio streams                   : 1
Video_Format_List                        : AVC
Video_Format_WithHint_List               : AVC
Codecs Video                             : AVC
Audio_Format_List                        : AC-3
Audio_Format_WithHint_List               : AC-3
Audio codecs                             : AC-3
Audio_Language_List                      : English
Complete name                            : The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4
File name extension                      : The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4
File name                                : The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247]
File extension                           : mp4
Format                                   : MPEG-4
Format                                   : MPEG-4
Format/Extensions usually used           : braw mov mp4 m4v m4a m4b m4p m4r 3ga 3gpa 3gpp 3gp 3gpp2 3g2 k3g jpm jpx mqv ismv isma ismt f4a f4b f4v
Commercial name                          : MPEG-4
Format profile                           : Base Media
Internet media type                      : video/mp4
Codec ID                                 : isom
Codec ID                                 : isom (isom/iso2/avc1/mp41)
Codec ID/Url                             : http://www.apple.com/quicktime/download/standalone.html
CodecID_Compatible                       : isom/iso2/avc1/mp41
File size                                : 1746770137
File size                                : 1.63 GiB
File size                                : 2 GiB
File size                                : 1.6 GiB
File size                                : 1.63 GiB
File size                                : 1.627 GiB
Duration                                 : 5564800
Duration                                 : 1 h 32 min
Duration                                 : 1 h 32 min 44 s 800 ms
Duration                                 : 1 h 32 min
Duration                                 : 01:32:44.800
Duration                                 : 01:32:46;03
Duration                                 : 01:32:44.800 (01:32:46;03)
Overall bit rate                         : 2511170
Overall bit rate                         : 2 511 kb/s
Frame rate                               : 23.976
Frame rate                               : 23.976 FPS
Frame count                              : 133421
Stream size                              : 3758210
Stream size                              : 3.58 MiB (0%)
Stream size                              : 4 MiB
Stream size                              : 3.6 MiB
Stream size                              : 3.58 MiB
Stream size                              : 3.584 MiB
Stream size                              : 3.58 MiB (0%)
Proportion of this stream                : 0.00215
HeaderSize                               : 3758202
DataSize                                 : 1743011935
FooterSize                               : 0
IsStreamable                             : Yes
Title                                    : The Bag Girls
Movie name                               : The Bag Girls
Director                                 : Wil Lewis
Actor                                    : Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle
Screenplay by                            : Wil Lewis
Genre                                    : Crime
ContentType                              : Short Film
Recorded date                            : 2020-07-15
File creation date                       : UTC 2020-11-03 02:15:10.830
File creation date (local)               : 2020-11-03 05:45:10.830
File last modification date              : UTC 2020-11-03 02:15:33.876
File last modification date (local)      : 2020-11-03 05:45:33.876
Writing application                      : SMA:The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4
Writing application                      : SMA:The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4
Cover                                    : Yes
ContentRating                            : mpaa|Not Rated|000
LongDescription                          : Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.

Video
Count                                    : 378
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
ID                                       : 1
ID                                       : 1
Format                                   : AVC
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format/Url                               : http://developers.videolan.org/x264.html
Commercial name                          : AVC
Format profile                           : High@L4.1
Format settings                          : CABAC / 4 Ref Frames
Format settings, CABAC                   : Yes
Format settings, CABAC                   : Yes
Format settings, Reference frames        : 4
Format settings, Reference frames        : 4 frames
Internet media type                      : video/H264
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 5564768
Duration                                 : 1 h 32 min
Duration                                 : 1 h 32 min 44 s 768 ms
Duration                                 : 1 h 32 min
Duration                                 : 01:32:44.768
Duration                                 : 01:32:46;03
Duration                                 : 01:32:44.768 (01:32:46;03)
Bit rate                                 : 2249780
Bit rate                                 : 2 250 kb/s
Width                                    : 1920
Width                                    : 1 920 pixels
Height                                   : 1072
Height                                   : 1 072 pixels
Sampled_Width                            : 1920
Sampled_Height                           : 1072
Pixel aspect ratio                       : 1.000
Display aspect ratio                     : 1.791
Display aspect ratio                     : 16:9
Rotation                                 : 0.000
Frame rate mode                          : CFR
Frame rate mode                          : Constant
FrameRate_Mode_Original                  : VFR
Frame rate                               : 23.976
Frame rate                               : 23.976 (24000/1001) FPS
FrameRate_Num                            : 24000
FrameRate_Den                            : 1001
Frame count                              : 133421
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Scan type                                : Progressive
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.046
Stream size                              : 1564938327
Stream size                              : 1.46 GiB (90%)
Stream size                              : 1 GiB
Stream size                              : 1.5 GiB
Stream size                              : 1.46 GiB
Stream size                              : 1.457 GiB
Stream size                              : 1.46 GiB (90%)
Proportion of this stream                : 0.89590
Title                                    : FHD / FHD
Writing library                          : x264 - core 159
Writing library                          : x264 core 159
Encoded_Library_Name                     : x264
Encoded_Library_Version                  : core 159
Encoding settings                        : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-3 / threads=18 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=2250 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=31250 / vbv_bufsize=31250 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Codec configuration box                  : avcC

Audio
Count                                    : 293
Count of stream of this kind             : 1
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
StreamOrder                              : 1
ID                                       : 2
ID                                       : 2
Format                                   : AC-3
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Format/Url                               : https://en.wikipedia.org/wiki/AC3
Commercial name                          : Dolby Digital
Commercial name                          : Dolby Digital
Format settings, Endianness              : Big
Codec ID                                 : ac-3
Duration                                 : 5564800
Duration                                 : 1 h 32 min
Duration                                 : 1 h 32 min 44 s 800 ms
Duration                                 : 1 h 32 min
Duration                                 : 01:32:44.800
Duration                                 : 01:33:29:21
Duration                                 : 01:32:44.800 (01:33:29:21)
Bit rate mode                            : CBR
Bit rate mode                            : Constant
Bit rate                                 : 256000
Bit rate                                 : 256 kb/s
Channel(s)                               : 2
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Channel positions                        : 2/0/0
Channel layout                           : L R
Samples per frame                        : 1536
Sampling rate                            : 48000
Sampling rate                            : 48.0 kHz
Samples count                            : 267110400
Frame rate                               : 31.250
Frame rate                               : 31.250 FPS (1536 SPF)
Frame count                              : 173900
Compression mode                         : Lossy
Compression mode                         : Lossy
Stream size                              : 178073600
Stream size                              : 170 MiB (10%)
Stream size                              : 170 MiB
Stream size                              : 170 MiB
Stream size                              : 170 MiB
Stream size                              : 169.8 MiB
Stream size                              : 170 MiB (10%)
Proportion of this stream                : 0.10194
Title                                    : Stereo / Stereo
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Service kind                             : CM
Service kind                             : Complete Main
Default                                  : Yes
Default                                  : Yes
Alternate group                          : 1
Alternate group                          : 1
bsid                                     : 8
Dialog Normalization                     : -31
Dialog Normalization                     : -31 dB
dsurmod                                  : 0
acmod                                    : 2
lfeon                                    : 0
dialnorm_Average                         : -31
dialnorm_Average                         : -31 dB
dialnorm_Minimum                         : -31
dialnorm_Minimum                         : -31 dB
dialnorm_Maximum                         : -31
dialnorm_Maximum                         : -31 dB
dialnorm_Count                           : 32
I have extracted the video information as follows:

Code: Select all

$SEP = "#::#";
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
Now, when I want to retrieve the information in <1> which is %Duration/String3%, I expect to get the following tagged info:
01:32:44.800

Instead, I get the following tagged info:
000 from Walter. After the successful theft from Walter, 01:32:44.800

Any idea?

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for and tag video files [custom columns]

Post by highend »

Open a command prompt, change into your mediainfo folder and show me the output of:
MediaInfo.exe --Inform=General;%Duration/String3% "<your video file>"
With the file your're talking about instead of "<your video file>" ofc^^

Additionally open the tag.dat file from XYplorer and show the entry that the script created for that video
One of my scripts helped you out? Please donate via Paypal

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Search for and tag video files [custom columns]

Post by amirvf »

highend wrote: 03 Nov 2020 15:25 Open a command prompt, change into your mediainfo folder and show me the output of:
MediaInfo.exe --Inform=General;%Duration/String3% "<your video file>"
With the file your're talking about instead of "<your video file>" ofc^^

Additionally open the tag.dat file from XYplorer and show the entry that the script created for that video
Here is the command line:

Code: Select all

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe --Inform=General;%Duration/String3% "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800
Here is the tagging info:

Code: Select all

Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4|0|000 from Walter. After the successful theft from Walter, 01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, a religious single mother, a street thug, an exotic dancer, and Daisy, and they recruit two more women, Crystal, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, dubbing themselves, Nola, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072#::#23.976#::#16:9#::#FHD / FHD#::#2 250 kb/s#::##::#Stereo / Stereo/#::#256 kb/s-#::#
, The Bag Girls. Gaining notoriety, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, to help them execute a plan to steal $50, wife of prominent business owner Walter Smith|||||||||||||||||

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for and tag video files [custom columns]

Post by highend »

Ok. Pretty weird...

My guess: mediainfo gets confused by the template file

Create a file "C:\test_template.txt" and put in only:
General;%Duration/String3%

Call mediainfo with that template:
MediaInfo.exe "--Inform=file://C:\test_template.txt" "<your video file>"

Is that output ok? If yes, add all the parts of your original template (from the script file) ONE BY ONE and after adding the next part to the "test_template.txt" file, run mediainfo again.
You need to use #::# as the separator in that "test_template.txt file", not $SEP

I guess at some point mediainfo will output that 000 from Walter. After the successful theft from Walter, 01:32:44.800 part...
One of my scripts helped you out? Please donate via Paypal

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Search for and tag video files [custom columns]

Post by amirvf »

highend wrote: 03 Nov 2020 15:47 Ok. Pretty weird...

My guess: mediainfo gets confused by the template file

Create a file "C:\test_template.txt" and put in only:
General;%Duration/String3%

Call mediainfo with that template:
MediaInfo.exe "--Inform=file://C:\test_template.txt" "<your video file>"

Is that output ok? If yes, add all the parts of your original template (from the script file) ONE BY ONE and after adding the next part to the "test_template.txt" file, run mediainfo again.
You need to use #::# as the separator in that "test_template.txt file", not $SEP

I guess at some point mediainfo will output that 000 from Walter. After the successful theft from Walter, 01:32:44.800 part...
With only General;%Duration/String3%

Code: Select all

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800
With all variables:

Code: Select all

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072#::#23.976#::#16:9#::#FHD / FHD#::#2 250 kb/s#::##::#Stereo / Stereo/#::#256 kb/s-#::#

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for and tag video files [custom columns]

Post by highend »

Show your custom column script^^
One of my scripts helped you out? Please donate via Paypal

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Search for and tag video files [custom columns]

Post by amirvf »

step by step:

Code: Select all

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072#::#23.976

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072#::#23.976#::#16:9

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072#::#23.976#::#16:9#::#FHD / FHD

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072#::#23.976#::#16:9#::#FHD / FHD#::#2 250 kb/s

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072#::#23.976#::#16:9#::#FHD / FHD#::#2 250 kb/s#::#

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072#::#23.976#::#16:9#::#FHD / FHD#::#2 250 kb/s#::##::#Stereo / Stereo/

C:\Program Files\MediaInfo_CLI_20.09_Windows_x64>MediaInfo.exe "--Inform=file://D:\XYplorer\New Text File.txt" "Z:\Done\The Bag Girls (2020)\The Bag Girls (2020) WEBRip-1080p [8-Bit][x264][AAC 2.0][TMDB-738247].mp4"
01:32:44.800#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#The Bag Girls#::#Crime#::#Wil Lewis#::#Jamal Woolard / Crystal The Doll / La Love The Boss / 3d Na'Tee / Carmen Mi'chelle#::#Twenty-seven-year-old Deandrea Smith, wife of prominent business owner Walter Smith, deals with his treacherous actions causing her to become destitute and enraged with revenge. Deandrea confides in her best friend, Nola, an exotic dancer, and they recruit two more women, Crystal, a religious single mother, and Daisy, a street thug, to help them execute a plan to steal $50,000 from Walter. After the successful theft from Walter, the group decides to try their fortune at bigger spoils and come up with a plan to rob Nola's place of employment, the strip club, dubbing themselves, The Bag Girls. Gaining notoriety, The Bag Girls are hired to do a job that's way over their head when they're put up against the Cuban mafia.#::#1920x1072#::#23.976#::#16:9#::#FHD / FHD#::#2 250 kb/s#::##::#Stereo / Stereo/#::#256 kb/s-#::#

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for and tag video files [custom columns]

Post by highend »

Em, what?

Your custom column script (that queries XY's tag.dat to get the information out of)...
One of my scripts helped you out? Please donate via Paypal

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Search for and tag video files [custom columns]

Post by amirvf »

highend wrote: 03 Nov 2020 16:48 Show your custom column script^^
return gettoken(tagitems("tags",, <cc_item>), 1, "#::#");

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Search for and tag video files [custom columns]

Post by amirvf »

highend wrote: 03 Nov 2020 16:55 Em, what?

Your custom column script (that queries XY's tag.dat to get the information out of)...
At any point the following value did not show up, even adding parameters ONE BY ONE
000 from Walter. After the successful theft from Walter, 01:32:44.800

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for and tag video files [custom columns]

Post by highend »

This makes no sense. Why should XY get something back that the same command from a dos prompt doesn't return...

Create an empty folder somewhere. Copy your video file into it. Stay in that directory. Call the script and let it tag that file.
But before you execute the script, modify it.

Find this line $result = runret("""$mediaInfo"" ""--Inform=file://$template"" ""$file""");:
Create a new line (same indention) under it and add this: text $result; end true;

What's the output from that command when you now run the script?
One of my scripts helped you out? Please donate via Paypal

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Search for and tag video files [custom columns]

Post by amirvf »

highend wrote: 03 Nov 2020 17:06 This makes no sense. Why should XY get something back that the same command from a dos prompt doesn't return...

Create an empty folder somewhere. Copy your video file into it. Stay in that directory. Call the script and let it tag that file.
But before you execute the script, modify it.

Find this line $result = runret("""$mediaInfo"" ""--Inform=file://$template"" ""$file""");:
Create a new line (same indention) under it and add this: text $result; end true;

What's the output from that command when you now run the script?
A warning pops up as attached and after closing the window, the script does not go on.

Here is the content of the popup:

Code: Select all

01:33:04.835#::#1/1//Yes#::#English#::#AC-3#::#AVC#::#Bigfoot: Path of the Beast#::#Horror#::#Zach Bowman / Justin Snyder#::#Justin Snyder / Matthew Pulling / Samantha Weller / Suzanna Woodhead#::#After the mysterious disappearance of his depressed wife, a man dealing with alcoholism seeks revenge by killing a bigfoot creature and escaping the wilderness alive as he deals with his own insanity and the wrath of other creatures.#::#1920x1080#::#23.976#::#16:9#::#FHD#::#2 500 kb/s#::##::#Stereo/#::#224 kb/s-#::#
Attachments
popup.jpg
popup.jpg (150.89 KiB) Viewed 3164 times

highend
Posts: 13327
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Search for and tag video files [custom columns]

Post by highend »

That's exactly the info which was expected from mediainfo. When you remove that line again and rerun that script, is the entry for it in the tag.dat file correct?
One of my scripts helped you out? Please donate via Paypal

amirvf
Posts: 133
Joined: 18 Oct 2020 00:46

Re: Search for and tag video files [custom columns]

Post by amirvf »

I also made a new folder. I copied the file with tagging issue together with 5 other video files. The results of tagging for the first 7 columns are demonstrated in the attached photo.
Attachments
excel_2.jpg
excel_2.jpg (664.63 KiB) Viewed 3160 times
Last edited by amirvf on 03 Nov 2020 17:47, edited 1 time in total.

Post Reply