GithubHelp home page GithubHelp logo

exiforg's Introduction

exiforg

An tiny organizational tool for media files

Description

Assists in organizing photos when they are manually pulled off your camera. Takes a set of files and moves them into date directories/partitions. exiforg now handles these filetypes:

  • JPG, DNG, MTS, M4V

Other filetypes may be supported if exiftool can get the creation datetime.

Usage

exiforg [-m] -f filespec
  -f filespec   Specifies files to be affected. You must escape the filespec with a slash e.g. \*.jpg
  -m            Optional. Specifies file should be moved into dated dir. 

Say you have a dir of new MTS files:

/Volumes/CAVE3/AVCHD/00000.MTS
/Volumes/CAVE3/AVCHD/00001.MTS
/Volumes/CAVE3/AVCHD/00002.MTS

And you want the OS modified time to reflect the actual time the movie was recorded in the EXIF data. You just run this command:

exiforg -f \*.MTS

If you want the files moved into a dated directory, YYYY.MM.DD, just specify -m:

exiforg -f \*.MTS

Your new layout will be:

/Volumes/CAVE3/AVCHD/2012.12.23/00000.MTS
/Volumes/CAVE3/AVCHD/2012.12.23/00001.MTS
/Volumes/CAVE3/AVCHD/2012.12.23/00002.MTS

Say you Clear the movies from your camera, and take 3 more on the same day. My camera doesn't increment the numbers if I clear pictures off the camera. So, I run the possibility of overwriting files.

/Volumes/CAVE3/AVCHD/00000.MTS
/Volumes/CAVE3/AVCHD/00001.MTS
/Volumes/CAVE3/AVCHD/00002.MTS

exiforg doesn't overwrite files during the move. If the dest file exists, the date & time stamp is appended to the dest file, like so:

exiforg.sh -f \*.MTS -m

Yields:

/Volumes/CAVE3/AVCHD/2012.12.23/00000.MTS
/Volumes/CAVE3/AVCHD/2012.12.23/00001.MTS
/Volumes/CAVE3/AVCHD/2012.12.23/00002.MTS
/Volumes/CAVE3/AVCHD/2012.12.23/00000-20121223155456.MTS
/Volumes/CAVE3/AVCHD/2012.12.23/00001-20121223155600.MTS
/Volumes/CAVE3/AVCHD/2012.12.23/00002-20121223155910.MTS

If you do this AGAIN, then the files with the timestamp will get overwritten. But they should be the same file so it should not matter. A true duplicate.

This all works for DNG files. For M4V files, I had to use a different tag, but it works.

I'd run it on some test files before risking your real files, until you get what it's doing.

Supported File Types

Supports Adobe DNG, MTS, and M4V files. Depends on the excellent [exiftool](http://www.sno.phy.queensu.ca/~phil/exiftool/ exiftool) by Phil Harvey.

Contact

Report problems to nick at primordia dot com

exiforg's People

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.