Preserve Video date creation info after convert

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

  1. pixelmac macrumors newbie

    pixelmac

    Joined:
    Aug 28, 2006
    #1
    Hello,

    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 ?

    Sincerely

    Pixelmac
     
  2. Menneisyys2 macrumors 603

    Joined:
    Jun 7, 2011
    #2
    If you plan to use HandBrake and can compile its sources yourself, you'll want to read https://reviews.handbrake.fr/r/55/diff/1/ .. Unfortunately, there still isn't a "preserve original filedate" checkbox in the current HB version.

    Also, for other tools, take a look at http://superuser.com/questions/4828...keeping-the-original-time-stamp-creatuib-date . I haven't myself checked out BulkFileChanger there - hope it knows what you need.
     
  3. DisMyMac macrumors 65816

    DisMyMac

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

    Joined:
    Jul 8, 2010
    #4
    You can use the touch command from the Terminal to modify the creation date. The format of the command is:
    Code:
    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:
    Code:
    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

    Joined:
    Mar 17, 2012
    Location:
    Belgium
    #5
    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

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

    1, get HandBrakeBatch from http://www.osomac.com/apps/osx/handbrake-batch/

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

    [​IMG]

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

    4, start converting.
     

Share This Page