[query] about "media created" medtadata

Discussion related to "Everything" 1.5 Alpha.
Post Reply
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

[query] about "media created" medtadata

Post by asamirid »

greetings 👋🏼👋🏼..

as shown in the pic below..

mc_date_022.jpg
mc_date_022.jpg (60.31 KiB) Viewed 3721 times


now i can copy "media created" metainfo value from inside everything search window

how can i paste this value to file "date created" and "date modified" ??

also can i do this to list of media files ?? i mean copy "media created" from all files list and paste it to dc and dm of the same files ??

👀..
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: [query] about "media created" medtadata

Post by void »

To set the file time with the copied date:
  • In Everything 1.5, select the file/folder where you would like the file time changed.
  • From the Edit menu, under the Advanced menu, click Set File Time....
  • Under date created/date modified, check Custom and paste your date into the edit box.
  • Click OK.


Alternatively, you can skip copying the media created date and set the file time to media created directly:
  • In Everything 1.5, select the file/folder where you would like the file time changed.
  • From the Edit menu, under the Advanced menu, click Set File Time....
  • Under date created/date modified, set Custom to: $media-created:
  • Click OK.
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

Re: [query] about "media created" medtadata

Post by asamirid »

can this be done to a group of files at once ?? or i had to do that to one file after another !! ..
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: [query] about "media created" medtadata

Post by void »

You can set the file time for multiple files at the same time.
asamirid
Posts: 127
Joined: Sat Oct 13, 2018 12:28 pm

Re: [query] about "media created" medtadata

Post by asamirid »

[edit:]

i tried it, and it perfectly works, "everything" is really amazing file management tool.

thank you so much 👋🏼👋🏼..
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: [query] about "media created" medtadata

Post by raccoon »

I have another question about "media created".

Would you be able to grab from these date tags in MP4 and MKV videos? I understand each stream and wrapper might have its own date, so I leave it to you to choose which one to grab from. They're usually always identical.

as reported by ffprobe (from ffmpeg)

Code: Select all

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'xyzzy.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2018-06-20T10:13:55.000000Z
    title           : xyzzy
    encoder         : Lavf57.83.100
    comment         : xyzzy
  Duration: 00:27:27.71, start: 0.000000, bitrate: 2728 kb/s
  Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1424x1080 [SAR 1:1 DAR 178:135], 2500 kb/s, 24 fps, 24 tbr, 12288 tbn, 48 tbc (default)
    Metadata:
      creation_time   : 2018-06-20T10:13:55.000000Z
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 224 kb/s (default)
    Metadata:
      creation_time   : 2018-06-20T10:13:55.000000Z
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
and

Code: Select all

Input #0, matroska,webm, from 'plugh.mkv':
  Metadata:
    encoder         : libebml v1.3.1 + libmatroska v1.4.2
    creation_time   : 2017-02-23T13:49:35.000000Z
  Duration: 00:15:36.27, start: 0.000000, bitrate: 7977 kb/s
  Stream #0:0(eng): Video: h264 (High), yuv420p(progressive), 960x720 [SAR 1:1 DAR 4:3], 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default)
    Metadata:
      BPS             : 6466134
      BPS-eng         : 6466134
      DURATION        : 00:15:36.269000000
      DURATION-eng    : 00:15:36.269000000
      NUMBER_OF_FRAMES: 22448
      NUMBER_OF_FRAMES-eng: 22448
      NUMBER_OF_BYTES : 756755210
      NUMBER_OF_BYTES-eng: 756755210
      _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-02-23 13:49:35
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-02-23 13:49:35
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
  Stream #0:1(eng): Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default)
    Metadata:
      BPS             : 1508999
      BPS-eng         : 1508999
      DURATION        : 00:15:36.235000000
      DURATION-eng    : 00:15:36.235000000
      NUMBER_OF_FRAMES: 87772
      NUMBER_OF_FRAMES-eng: 87772
      NUMBER_OF_BYTES : 176597264
      NUMBER_OF_BYTES-eng: 176597264
      _STATISTICS_WRITING_APP: mkvmerge v8.3.0 ('Over the Horizon') 64bit
      _STATISTICS_WRITING_APP-eng: mkvmerge v8.3.0 ('Over the Horizon') 64bit
      _STATISTICS_WRITING_DATE_UTC: 2017-02-23 13:49:35
      _STATISTICS_WRITING_DATE_UTC-eng: 2017-02-23 13:49:35
      _STATISTICS_TAGS: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
Everything currently does not handle either of these meta dates, per the Preview column under Select Property.

Correction, Everything DOES populate "Date Acquired" with the mkv "creation_time" or "_statistics_writing_date_utc" tags. Not so with the mp4 "creation_time" tags. I'm not sure why "Date Acquired" instead of "Media Created" though.
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: [query] about "media created" medtadata

Post by void »

The next alpha update will have native support for media created (date encoded) with mov,mp4,m4a,3gp,3g2,mj2,mkv and webm files.

Thank you for the suggestion.



Everything does not have native support for Date Acquired.
Everything currently pulls this property from the system with the property system property: system.dateacquired
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: [query] about "media created" medtadata

Post by raccoon »

Thank you for adding the Media Created column to support the creation_time metadata tag.

Question: How can I work this into UTC for use in Advanced Rename?
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: [query] about "media created" medtadata

Post by void »

$media-created: is a FILETIME which is UTC.

Unfortunately, <format-filetime:> will convert the filetime to a local date/time.

The easiest way is to probably offset $media-created: by your UTC offset.

For example, if your UTC offset is +10:30, please try the following:

<formatfiletime:<eval:$media-created:-105*3600000000>,"YYYYMMDD\THHmmss">

(where -105 is the negative offset in hours * 10)
(* 10) because Everything has limited precision with floats.

I have put on my TODO list to add a function to format the date/time as UTC.
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: [query] about "media created" medtadata

Post by void »

Everything 1.5.0.1331a adds a format-filetime-utc preprocessor function.

For example:

<format-filetime-utc:$media-created:,"YYYYMMDD\THHmmss">



I have also increased the precision of Everything to use doubles instead of fixed values internally, so you can now do things like:
<formatfiletime:<eval:$media-created:-10.5*36000000000>,"YYYYMMDD\THHmmss">
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: [query] about "media created" medtadata

Post by raccoon »

thanks! :)

(Do you mean YYYYMMDDTHHmmss or yyyyMMddHHmmss in your above examples? Seems you're copying from the ISO document.)
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: [query] about "media created" medtadata

Post by void »

Windows uses y and d, but not Y and D.

The following format specifiers are treated as the same in Everything:
y and Y
d and D

I have been using all caps for the date as I always forget Month is MM (not mm -which is for minute).


There should be a \ to escape the literal letter T in the format.
Post Reply