VideoHelp Forum
+ Reply to Thread
Results 1 to 12 of 12
Thread
  1. Member
    Join Date
    Jul 2009
    Location
    Australia
    Search Comp PM
    I'm trying to sort my home video files into folders by date, but I am getting more frustrated as I go along. I cannot see the recorded dates of the video files within Windows Explorer and have to run a MediaInfo on each file in order to know which folder it should go in.

    Here's a sample MediaInfo on one of my video files:
    General
    Complete name : E:\Vegas_Import\DV Camcorder\Tape 24\2007-10-05 Lauren & Emily's 12th & 10th birthday- bowling\Tape 24 - Clip 001.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    Commercial name : DV
    File size : 89.6 MiB
    Duration : 25 s 80 ms
    Overall bit rate mode : Constant
    Overall bit rate : 30.0 Mb/s
    Recorded date : 2007-10-05 20:59:09.000
    TAPE : Tape 24
    TCOD : 1600000
    TCDO : 252400000
    VMAJ : 4
    VMIN : 0
    STAT : 627 0 3.431312 1
    DTIM : 29886354 2463321216

    Video
    ID : 0
    Format : DV
    Codec ID : dvsd
    Codec ID/Hint : Sony
    Duration : 25 s 80 ms
    Bit rate mode : Constant
    Bit rate : 24.4 Mb/s
    Width : 720 pixels
    Height : 576 pixels
    Display aspect ratio : 4:3
    Frame rate mode : Constant
    Frame rate : 25.000 FPS
    Standard : PAL
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Interlaced
    Scan order : Bottom Field First
    Compression mode : Lossy
    Bits/(Pixel*Frame) : 2.357
    Time code of first frame : 00:00:00:04
    Time code source : Subcode time code
    Stream size : 86.1 MiB (96%)
    Encoding settings : ae mode=full automatic / wb mode=automatic / white balance= / fcm=manual focus

    Audio
    ID : 1
    Format : PCM
    Format settings : Little / Signed
    Codec ID : 1
    Duration : 25 s 80 ms
    Bit rate mode : Constant
    Bit rate : 1 024 kb/s
    Channel(s) : 2 channels
    Sampling rate : 32.0 kHz
    Bit depth : 16 bits
    Stream size : 3.06 MiB (3%)
    Alignment : Aligned on interleaves
    Interleave, duration : 279 ms (6.97 video frames)
    Interleave, preload duration : 280 ms

    I cannot find a way to view the "Recorded Date" in Windows Explorer. I have viewed all possible columns in the view setup and they all display the date the video was captured from DV camera to PC.

    My system details are:
    OS Name: Microsoft Windows 10 Pro
    OS Version: 10.0.19042 N/A Build 19042
    |
    +-- Julian Milano
    |
    Quote Quote  
  2. From what I understand you want to be able to sort video files by the recorded date tag in Windows Explorer.

    I don't think Windows supports this directly, you would likely need to set the Windows Modified Date of the file.
    Windows Created Date would be the date the files have been copied.

    As an alternative, you could just put the recorded date at the start of the filename.

    If you have many videos you may want to do this automatically:
    Check out the similar threads at the bottom of the page, the topic comes up from time to time.
    I'll also throw in this one https://forum.videohelp.com/threads/400488-How-to-correct-date-of-AVI-file-transferred...iDV-with-WinDV
    Quote Quote  
  3. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    If I understand correctly, Creatre a CMD file with the following text:

    Code:
    setlocal enabledelayedexpansion
    @echo off
    @echo. > Dates.txt
    for %%a in ("*.mp4" "*.mpg" "*.flv") Do (
    echo %%a >> Dates.txt
    cd %%~dpa
    C:\Users\Bud\Desktop\MediaInfo.exe "--Output=Video;Encoded Date=%%Encoded_Date%%\r\nRecorded Date=%%Recorded_Date%%\r\nTagged Date=%%Tagged_Date%%" "%%a" >>dates.txt
    @echo. >> Dates.txt
    )
    Drag and drop one of your videos on this CMD file and you will get a file called 'Dates.txt' with info similar to the following: (I don't have any files with Recorded dates in them)

    004 srt subs_1.mp4
    Encoded Date=
    Recorded Date=
    Tagged Date=

    004.mp4
    Encoded Date=UTC 2012-10-19 17:19:46
    Recorded Date=
    Tagged Date=UTC 2012-10-19 17:19:46

    720i format_42587057.mp4
    Encoded Date=UTC 2011-03-12 07:37:32
    Recorded Date=
    Tagged Date=UTC 2011-03-12 07:37:32
    Quote Quote  
  4. Member
    Join Date
    Jul 2009
    Location
    Australia
    Search Comp PM
    Thanks Budman, but I could not get the script to work. I changed the code to suit my environment:
    Code:
    setlocal enabledelayedexpansion
    @echo off
    @echo. > Dates.txt
    for %%a in ("*") Do (
    echo %%a >> Dates.txt
    cd %%~dpa
    C:\Program Files\MediaInfo\MediaInfo.exe "--Output=Video;Encoded Date=%%Encoded_Date%%\r\nRecorded Date=%%Recorded_Date%%\r\nTagged Date=%%Tagged_Date%%" "%%a" >>dates.txt
    @echo. >> Dates.txt
    )
    The output was this:
    Dates.txt

    Tape 20 - Clip 001.avi

    Tape 20 - Clip 002.avi

    Tape 20 - Clip 003.avi

    Tape 20 - Clip 004.avi

    Tape 20 - Clip 005.avi
    MediaInfo shows the following (this is only the first few lines):
    General
    Complete name : E:\Vegas_Import\DV Camcorder\Tape 20\Tape 20 - Clip 001.avi
    Format : AVI
    Format/Info : Audio Video Interleave
    Commercial name : DV
    File size : 112 MiB
    Duration : 31 s 440 ms
    Overall bit rate mode : Constant
    Overall bit rate : 30.0 Mb/s
    Recorded date : 2006-03-24 12:32:25.000
    TAPE : Tape 20
    TCOD : 10000000
    TCDO : 324400000
    VMAJ : 4
    VMIN : 0
    STAT : 786 0 3.433446 1
    DTIM : 29773631 21828224
    |
    +-- Julian Milano
    |
    Quote Quote  
  5. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Avi may use a different search parameter than mp4. I'll check on it...
    Quote Quote  
  6. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    Just a thought.. you need to have mediainfo in same folder as videos. You should get
    Encoded date=
    Recoded Date=
    Tagged Date=

    Part of the media info output will write these lines even if they dates are blank. Since they are not shown in uour output, im assuming media info didnt run.
    Quote Quote  
  7. Member
    Join Date
    Jul 2009
    Location
    Australia
    Search Comp PM
    Strangely, MediaInfo does not export well to text files. I tried the following in a command line:
    Code:
    mediainfo --Output=$'General;File Name: %FileName%\\r\\n\\nDimensions: %Width%x%Height%\\r\\n' "Tape 20 - Clip 001.avi"
    Which opens the MediaInfo GUI and shows all info about the file, however this produces an empty text file:
    Code:
    mediainfo --Output=$'General;File Name: %FileName%\\r\\n\\nDimensions: %Width%x%Height%\\r\\n' "Tape 20 - Clip 001.avi" >> test.txt
    This code creates an empty text file as well:
    Code:
    MediaInfo --help >> test.txt
    |
    +-- Julian Milano
    |
    Quote Quote  
  8. Member
    Join Date
    Jul 2009
    Location
    Australia
    Search Comp PM
    I put MediaInfo in the same folder as the video files and still no output. I think the latest MediaInfo may not export well?
    |
    +-- Julian Milano
    |
    Quote Quote  
  9. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    If the media gui opens from a script entry, it usually means only the mediainfo part worked. The script i showed works without opening gui. To actually see what goes on , remove echo off lines and add "pause" without quotes as an extra line. This will show everything that happens in a cmd screen that will remain open. You are using windows correct? Just wondered where you got the strange script line.
    Quote Quote  
  10. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    To reiterate, create cmd file wth my script inside. Place it in your videos folder as eell as the mediainfo file. Drag a video and drop it on the cmd icon. A dates.txt file should be created in the videos folder.
    Quote Quote  
  11. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    What is the byte count of your mediaingo file. There is a gui media info and a command line gui that can be downloaded from the media info site. May need the command line version. Hard for me to tell since most of my programs use the cli version that i named the same as the gui.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!