Encoded date of videos on a custom column

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Theli
Posts: 9
Joined: 08 Sep 2016 13:54

Encoded date of videos on a custom column

Post by Theli »

Hi. Another date question.

I would like to have a custom column showing the date that videos were encoded. They are mainly in mp4 and wmv formats.
I've tried all of the Windows time properties, but none could display this info.

Can the mighty XY extract these dates and help me achieve this? :ninja:

PS: Screenshots from MediaInfo showing the dates I'm talking about:
Dates.png
To see the attached files, you need to log into the forum.

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

Re: Encoded date of videos on a custom column

Post by highend »

Code: Select all

return property("System.Media.DateEncoded", <cc_item>);
Does not work?

And if it doesn't, you could always use mediainfo (the cli program, not the gui) to get the data.
Ofc with a different path to mediainfo.exe^^

Code: Select all

return runret("""D:\Tools\@Command Line Tools\MediaInfo\MediaInfo.exe"" ""<cc_item>"" --inform=General;%Encoded_Date%");
That's rather slow, depending on usage you maybe want to tag your files with this value and display the tag instead...
One of my scripts helped you out? Please donate via Paypal

Theli
Posts: 9
Joined: 08 Sep 2016 13:54

Re: Encoded date of videos on a custom column

Post by Theli »

The second script worked pretty fine. And very fast too!
Since I don't intend to use the info from this column all the time, I'm satisfied with the result.

Thanks again for your help! :appl:

Post Reply