Preserve Video date creation info after convert

Discussion in 'Digital Video' started by pixelmac, Oct 10, 2012.

  1. pixelmac macrumors newbie


    Aug 28, 2006

    How can I batch convert videos and preserve creation dates.
    I have a big collection of family video that I want to convert, but preserving the dates is crucial for sorting by date after.

    Any ideas if the creation date can be transfered to the video EXIF of similar ?


  2. Menneisyys2 macrumors 603

    Jun 7, 2011
    If you plan to use HandBrake and can compile its sources yourself, you'll want to read .. Unfortunately, there still isn't a "preserve original filedate" checkbox in the current HB version.

    Also, for other tools, take a look at . I haven't myself checked out BulkFileChanger there - hope it knows what you need.
  3. DisMyMac macrumors 65816


    Sep 30, 2009
    Maybe it's a broader UNIX question. I'd ask a coding forum for help.
  4. ytk macrumors regular

    Jul 8, 2010
    You can use the touch command from the Terminal to modify the creation date. The format of the command is:
    touch -mt [[CC]YY]MMDDhhmm[.SS]]
    So to set the creation date of the file to Jan. 24th, 1984 at 5:30PM, you'd use:
    touch -mt 198401241730
    Be careful, though—you can only set creation dates backwards, not forwards, so if you accidentally set them too early you won't be able to change them (without making a new copy of the file, anyway).

    As for how to do it in batch? Well, you could write a shell script to do it. You might also have some luck with Automator. The exact method kind of depends on how you're naming your files as you convert them. Basically, you want to be able to match up the old files to the new files, then read the dates off the old files and apply them to the new files using touch.
  5. kryten2, Oct 10, 2012
    Last edited: Oct 10, 2012

    kryten2 macrumors 6502a

    Mar 17, 2012
    If you want to preserve creation dates you might want to take a look at the -r option of the touch command.

    From the touch man page :

    Info : Applescript for matching creation date on two files
  6. Menneisyys2 macrumors 603

    Jun 7, 2011
    I've just found a much easier way of this:

    1, get HandBrakeBatch from

    2, go to Preferences and enable the "Keep original file creation and modification dates" checkbox in the default "General" tab:


    3, drag-and-drop your source files to the list

    4, start converting.

Share This Page