LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-07-2011, 11:50 AM   #1
latitudehopper
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Rep: Reputation: Disabled
BASH to find pics and vids with no date taken exif


Is there a script to do this? I have shotwell and want to find files that are going to cause problems with automatic sorting.

Last edited by latitudehopper; 08-07-2011 at 12:03 PM.
 
Old 08-07-2011, 12:48 PM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958
A script to do what? Your terse title line and post do not make your desired goal clear at all.

Please try again and explain in more detail. Give us some background about your environment, your media, what data you have and don't have, and some idea how you would like to proceed.
 
Old 08-07-2011, 12:58 PM   #3
latitudehopper
LQ Newbie
 
Registered: Aug 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sorry, I thought I had been clear.

I want to find pictures and videos that have no date or time recorded information within the file. Not date modified or date accessed but date taken. I believe this is part of the EXIF header.

SO, how can I find all files within a folder and its children that are missing this information?
 
Old 08-08-2011, 04:35 AM   #4
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958Reputation: 1958
That's still not enough to go on.

What is your distribution? Your desktop environment?

What exactly are these files? What formats? Where do they come from? How are they being stored?

Do you want to be able to find files according to specific dates/times, or ranges, just extract the data from all files, or what?

What do you want the script to do when you've found the matching files, list them, rename them, or what?

In short, the only person here who knows what you want right now is you. You need to define exactly what you want from start to finish before we can really help you. I suggest you read the big red link in my signature, then follow it up with this page for a more detailed treatise: http://www.catb.org/~esr/faqs/smart-questions.html


Anyway, reading exif data from images is a relatively simple operation. Videos, however, don't generally store "exif" data; each format has a different way to handle its metadata. We'd need to determine whether the files even contain the dates you want first.

But unless it's just a simple operation, I don't think anyone will want to write a whole script for you. We can guide you along, but you'll have to do the bulk of the work yourself. Let us know if you need help getting started.

If it's just simple file renaming you want, you might take a look at some of the various renaming tools out there. I know krename can read exif data, for example.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Batch: Stripping EXIF metadata + Preserving of the original date Tryum Linux - General 3 02-24-2011 01:45 PM
search recursively by exif date? rioguia Programming 6 02-21-2010 06:49 AM
Sorting photos into folders based on exif date SuperJediWombat! Programming 7 05-16-2009 07:53 PM
bash code to recursively remove EXIF info leosgb Programming 4 10-25-2007 01:31 AM
Any programs to rename a image to it's EXIF date ? CRego3D Linux - Software 1 11-08-2004 03:25 PM


All times are GMT -5. The time now is 11:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration