Unable to change DateTimeOriginal on 3GP video files

Started by bhall7, January 07, 2018, 12:37:42 AM

Previous topic - Next topic

bhall7

Hello,

I'm trying to change the DateTimeOriginal value to July 18, 2009. I tried the following command:
exiftool '-datetimeoriginal=2009:07:18 12:00:00' 07-18-09_1116.3gp

But, this only set the DateTimeOriginal value to right now (today's date at the time the command was issued).

Then, I tried offsetting the DateTimeOriginal doing the following command:
exiftool "-DateTimeOriginal-=8:5:19 12:00:0" 07-18-09_1116.3gp

But, like above, it just set the DateTimeOriginal value to right now.

Is there something with the 3GP file format that is causing these commands to not work properly?

Thanks!

For reference, here is the current metadata of the file:
ExifTool Version Number         : 10.72
File Name                       : 07-18-09_1116.3gp
Directory                       : .
File Size                       : 1020 kB
File Modification Date/Time     : 2018:01:06 22:25:01-07:00
File Access Date/Time           : 2018:01:06 22:25:14-07:00
File Inode Change Date/Time     : 2018:01:06 22:25:01-07:00
File Permissions                : rwxrwxrwx
File Type                       : 3GP
File Type Extension             : 3gp
MIME Type                       : video/3gpp
Major Brand                     : 3GPP Media (.3GP) Release 4
Minor Version                   : 0.2.0
Compatible Brands               : 3gp4
Movie Data Size                 : 1037508
Movie Data Offset               : 28
Movie Header Version            : 0
Create Date                     : 2036:01:01 14:52:23
Modify Date                     : 2036:01:01 14:52:23
Time Scale                      : 1000
Duration                        : 20.00 s
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 2036:01:01 14:52:27
Track Modify Date               : 2036:01:01 14:52:27
Track ID                        : 1
Track Duration                  : 20.00 s
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 320
Image Height                    : 240
Video Frame Rate                : 15
Compressor ID                   : s263
Source Image Width              : 352
Source Image Height             : 288
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2036:01:01 14:52:30
Media Modify Date               : 2036:01:01 14:52:30
Media Time Scale                : 48000
Media Duration                  : 20.00 s
Media Language Code             : und
Handler Type                    : Audio Track
Handler Description             : soun
Audio Format                    : samr
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 48000
Encoder Vendor                  : MOTO
Encoder Version                 : 0
Balance                         : 0
XMP Toolkit                     : Image::ExifTool 10.72
Artwork Circa Date Created      : 0::
Date/Time Original              : 2001:01:29 22:12:41-07:00
Avg Bitrate                     : 415 kbps
Image Size                      : 320x240
Megapixels                      : 0.077
Rotation                        : 0


StarGeek

What are you using to read the value of DateTimeOriginal?  Something other than exiftool?  Because it looks like in that file, the DateTimeOriginal value might be XMP and Adobe software is the only software I've seen that will read XMP data in a video file.

On the other had, the fact that it's being set to the current time leads me to think that whatever you're using to read the timestamp is reading the FileModifyDate value, which will be set to current time whenever a file is opened for write access (even if nothing is written).  Try adding the -P option.  The will prevent FileModifyDate from changing.  If the timestamp doesn't change after that, then your program is reading FileModifyDate, not DateTimeOriginal. 

Actually, taking a quick guesstimate based upon the FileModifyDate, the time shift you use, and your target DateTimeOriginal, and it looks like that's where the time is being picked up from.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Based on what StarGeek says, try this command:

exiftool "-filemodifydate=2009:07:18 12:00:00" 07-18-09_1116.3gp

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

bhall7

Awesome! That worked! Thanks so much! BTW, yes, I was using exiftool to read the EXIF data from the file.

The command that worked for me to modify the date was:

exiftool "-filemodifydate=2009:07:18 12:00:00" 07-18-09_1116.3gp