LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-16-2010, 02:22 PM   #1
Rockgod1969
Member
 
Registered: Jan 2007
Posts: 54

Rep: Reputation: 15
How do I Change the Creation Date of .mpg or .avi Videos in Digikam?


Hello I am using Ubuntu 9.10 and have been using digikam to get my photos and videos in order. A lot of the creation dates are messed up, but I have been using the "adjust time and date" tool in Digikam to ge the photos set to their correct creation date.

However, when I try to do that on a .mpg or .avi I get an error that reads "Unable to adjust metadata in ****.mpg" I've tried opening the videos in other programs, like avidemux and cinelerra, I even tried opening the properties section of the videos. I haven't been able to find a way to modify the creation date of videos.

Is there a way to change the creation date of videos on Ubuntu? I would prefer to use digikam, but at this point I'm open to anything. Do I need to download a plugin? A program? Use a command line command?
 
Old 02-17-2010, 06:58 AM   #2
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,590

Rep: Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228
File creation time can be changed with the touch command "man touch". However, if you are talking about video file meta data, I don't know. It is worth noting that there are plenty of tools for modifying the meta data of still image files (for example I often use exiv2), I think with a bit of googling you could probably find something for video files.

Cheers,

Evo2.
 
Old 02-17-2010, 08:45 PM   #3
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.6, Centos 5.10
Posts: 16,324

Rep: Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041Reputation: 2041
There may be a metadata 'creation date' inside the file, but at the Unix level, there's no such thing as creation date.
Quote:
Three fields in the inode structure contain the last access, change, and modification times: atime, ctime, and mtime. The atime field is updated each time the pointer to the file's data blocks is followed and the file's data is read. The mtime field is updated each time the file's data changes. The ctime field is updated each time the file's inode changes. The ctime is not creation time; there is no way under standard Unix to find a file's creation time.
Perl Cookbook - Chap 9 - Directories.
 
Old 02-17-2010, 09:27 PM   #4
evo2
Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and Scientific Linux
Posts: 5,590

Rep: Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228Reputation: 1228
Quote:
Originally Posted by chrism01 View Post
at the Unix level, there's no such thing as creation date.
Oops, true. Guess I was thinking of the modification time.

Evo2.
 
Old 02-19-2010, 12:39 AM   #5
Rockgod1969
Member
 
Registered: Jan 2007
Posts: 54

Original Poster
Rep: Reputation: 15
Well I found a sorta fix for this. It turns out that digikam was giving me the error message, but was changing the date anyway. However I suspect that if I used a similar program, the dates would not transfer over as it is not part of the metadata for the file but rather a part of the digikam wrapper for it or whatever.
 
  


Reply

Tags
date, digikam, metadata, videos


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
images creation date newer than last modified date fenrisW0lf Linux - Newbie 3 07-28-2009 06:04 PM
AVI to Mpg Maurice Arthur MEPIS 4 09-07-2008 08:32 PM
How to play .mpg videos in linux balanagireddy Linux - Newbie 2 06-18-2004 09:26 AM
How Do I Watch Videos .MPG? funkenbooty Linux - Newbie 9 07-24-2003 11:42 AM
Converting avi to mpg OR creating an SVCD from an avi MasterC Linux - Software 5 03-28-2003 06:42 AM


All times are GMT -5. The time now is 10:30 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration