Page 1 of 1

Encoded date of videos on a custom column

Posted: 13 Nov 2016 11:26
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

Re: Encoded date of videos on a custom column

Posted: 13 Nov 2016 15:01
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...

Re: Encoded date of videos on a custom column

Posted: 16 Nov 2016 06:35
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: