Page 1 of 3

Custom Column script no longer working.

Posted: 11 Sep 2025 20:34
by Max_T
I created a custom column with a script to read video file codecs to make it easier for me to see which videos I've transcoded and which I haven't (because I transcode everything I download to x265).

This is the script I used, which I managed to figure out and get working from other parts from a similar script I've seen on here. It worked perfectly for my needs, but seemingly since I upgraded my Windows 10 to 11, it now stopped working. I don't know if it perhaps stopped working before that, as I haven't checked it for a few months.

I'm using XY version 27.10.0600

Code: Select all

$nsecs = "";
  
      if ($nsecs == "") {

          $mediaInfo = "C:\Users\Max_T\Documents\MediaInfo\MediaInfo.exe";

          $codec = regexreplace(runret("$mediaInfo --Inform=Video;%Encoded_Library% ""<cc_item>"""), "\n");

          return $codec;

}
EDIT: Just realised I should maybe include this, I don't know if anything here might be causing the issue.
Image

Re: Custom Column script no longer working.

Posted: 11 Sep 2025 21:37
by highend
What does the column show, nothing?
What does the mediainfo command show if you execute it from a dos box?

Re: Custom Column script no longer working.

Posted: 11 Sep 2025 22:52
by Max_T
Yeah, the column just shows nothing.

When I run it from Powershell, it gives an error saying mediainfo.exe is not a recognized cmdlet.
When I run it from CMD, it works just fine.

I noticed before in my task manager, when I loaded the custom column, it would run a bunch of CMD processes, running mediainfo as it was processing the information. Now it doesn't do that any more. It's like it doesn't even try to execute the script.

Re: Custom Column script no longer working.

Posted: 11 Sep 2025 23:10
by phred
From Don (admin)...
Forum users who have their Windows version and screen scaling percentage in the location field of their profile will get priority support. And be sure to state your XY version number in the body of your post. No info in the location field? Be patient and Don will get to you after he takes care of those who have the proper info in the proper place.

Re: Custom Column script no longer working.

Posted: 11 Sep 2025 23:21
by Max_T
phred wrote: 11 Sep 2025 23:10 From Don (admin)...
Forum users who have their Windows version and screen scaling percentage in the location field of their profile will get priority support. And be sure to state your XY version number in the body of your post. No info in the location field? Be patient and Don will get to you after he takes care of those who have the proper info in the proper place.
Thank you, I updated my information and added my version in the first message. I'm not in too much of a hurry for a fix. Admin can attend other more serious matters first.
I've also been trying to see if other things I changed may have affected it, by trying to revert the changes (the information found in this video, I don't know if that could maybe have had an effect, but so far it doesn't seem like it makes a difference https://www.youtube.com/watch?v=zW69MisrsWk)

Re: Custom Column script no longer working.

Posted: 11 Sep 2025 23:48
by highend
Now it doesn't do that many more. It's like it doesn't even try to execute the script.
Why don't you just check that by returning <cc_item>?

The script works fine here with 27.10.0600 (on Windows 10) but I see no reason why it shouldn't run on 11...

Show the command you're executing in the dos box and it's output as a screenshot and as real text to be able to copy it

Re: Custom Column script no longer working.

Posted: 12 Sep 2025 12:37
by Max_T
highend wrote: 11 Sep 2025 23:48
Now it doesn't do that many more. It's like it doesn't even try to execute the script.
Why don't you just check that by returning <cc_item>?

The script works fine here with 27.10.0600 (on Windows 10) but I see no reason why it shouldn't run on 11...

Show the command you're executing in the dos box and it's output as a screenshot and as real text to be able to copy it
I'll be honest, I don't know how to run the command to get an output in terminal. The commands I ran previously was really just executing "mediainfo.exe".
I got the script commands from another script on this forum trying to achieve something similar, and then I just used context clues to adjust it to what I was trying to do.

Re: Custom Column script no longer working.

Posted: 12 Sep 2025 12:40
by highend

Code: Select all

"C:\Users\Max_T\Documents\MediaInfo\MediaInfo.exe" --Inform=Video;%Encoded_Library% "C:\Videos\one of my video files, guess i have to take my own here.mp4"

Re: Custom Column script no longer working.

Posted: 12 Sep 2025 15:09
by Max_T

Code: Select all

"C:\Users\DVoid\Documents\MediaInfo\MediaInfo.exe" --Inform=Video;%Encoded_Library% "C:\Test_Video.mp4"
x264 - core 155 r2893 b00bcaf
Image

I know the username is different here than the script and examples I've given before, but this is the real username.

Re: Custom Column script no longer working.

Posted: 12 Sep 2025 15:20
by highend
Now select that video file and run in XY e.g. from the address bar:

Code: Select all

text runret("""C:\Users\DVoid\Documents\MediaInfo\MediaInfo.exe"" --Inform=Video;%Encoded_Library% ""<curitem>""");
Output =?

Re: Custom Column script no longer working.

Posted: 12 Sep 2025 16:11
by Max_T
Same output.

Image

Re: Custom Column script no longer working.

Posted: 12 Sep 2025 17:00
by highend
And in your custom column it does NOT work?

Code: Select all

return regexreplace(runret("""C:\Users\DVoid\Documents\MediaInfo\MediaInfo.exe"" --Inform=Video;%Encoded_Library% ""<cc_item>"""), "\r?\n");

Re: Custom Column script no longer working.

Posted: 12 Sep 2025 17:27
by Max_T
I replaced the entire script I had with only the line you just gave, and at least now I see MediaInfo running in task manager, but it's still not displaying anything in the column. Even if I replace Encoded Library with another category, like Format or CodecID, it doesn't show anything, but it does run in task manager.

Re: Custom Column script no longer working.

Posted: 12 Sep 2025 17:42
by highend
Run a fresh instance (fresh; in the address bar, {ENTER} to execute it
Navigate in the C:\ folder
Configure the same custom column with only the one script line
Does it work there?

Re: Custom Column script no longer working.

Posted: 12 Sep 2025 17:50
by Max_T
Nope. Still doesn't display anything. Exact same behaviour.