Recent Posts

Pages: [1] 2 3 ... 10
1
Newbies / Re: Extracting GPS Information from .MP4?
« Last post by leonard_zh on March 24, 2019, 09:48:05 PM »
That's awesome! Thank you a lot!
2
Newbies / Re: Extracting GPS Information from .MP4?
« Last post by StarGeek on March 24, 2019, 07:57:19 PM »
Just add the -ee (extractEmbedded) option to get all the data in readable format.  If you want to limit the output to just the GPS data, add -GPS*.

To get it in a useful geo track file, such as gpx or kml, download the appropriate format file from github and drop it in the same directory as exiftool.  You can then run
exiftool -p gpx.fmt FILE.mp4 > out.gpx
and exiftool with create a geotrack.  Replace gpx.fmt with kml.fmt if you want a kml type geotrack.

See Inverse Geotagging for more details.
3
Newbies / Re: Extracting GPS Information from .MP4?
« Last post by leonard_zh on March 24, 2019, 05:44:21 PM »
Hi Phil,
thanks for all great work you've done for this software. I am going to extract GPS information from my dashcam mp4. I can see there is a GPS data list in binary format through the example output command. Could you help me to give some clue on how to extract the GPS information in a readable format like in txt?
Here attaches the mp4 file:
https://drive.google.com/file/d/1GtClFYWwzVx9hjzjddbemcE2HQxPspDQ/view?usp=sharing

Thanks!

---- ExifTool ----
ExifTool Version Number         : 11.32
Warning                         : [minor] The ExtractEmbedded option may find more tags in the movie data
---- System ----
File Name                       : 2019_0324_163821_007.MP4
Directory                       : D:/Data/DashCam
File Size                       : 253 MB
File Modification Date/Time     : 2019:03:24 16:40:04-04:00
File Access Date/Time           : 2019:03:24 17:34:42-04:00
File Creation Date/Time         : 2019:03:24 17:34:42-04:00
File Permissions                : rw-rw-rw-
---- File ----
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
---- QuickTime ----
Major Brand                     : MP4 v2 [ISO 14496-14]
Minor Version                   : 0.0.0
Compatible Brands               : isom, avc1, mp42
Movie Data Size                 : 265579344
Movie Data Offset               : 7616
Movie Header Version            : 0
Create Date                     : 2019:03:24 16:40:03
Modify Date                     : 2019:03:24 16:40:03
Time Scale                      : 60000
Duration                        : 0:01:44
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
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
Format                          : NOVATEK
Information                     : DEMO1
GPS Data List                   : (Binary data 832 bytes, use -b option to extract)
---- Kodak ----
Duration                        : 0:01:43
Kodak Version                   : 3.01.051
Thumbnail Image                 : (Binary data 7528 bytes, use -b option to extract)
---- Track1 ----
Track Header Version            : 0
Track Create Date               : 2019:03:24 16:40:03
Track Modify Date               : 2019:03:24 16:40:03
Track ID                        : 1
Track Duration                  : 0:01:44
Track Layer                     : 0
Track Volume                    : 0.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 2560
Image Height                    : 1440
Media Header Version            : 0
Media Create Date               : 2019:03:24 16:40:03
Media Modify Date               : 2019:03:24 16:40:03
Media Time Scale                : 60000
Media Duration                  : 0:01:44
Handler Class                   : Media Handler
Handler Type                    : Video Track
Handler Description             : VideoHandler
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Handler Class                   : Data Handler
Handler Type                    : URL
Handler Description             : DataHandler
Compressor ID                   : avc1
Source Image Width              : 2560
Source Image Height             : 1440
X Resolution                    : 72
Y Resolution                    : 72
Compressor Name                 : h264
Bit Depth                       : 24
AVC Configuration               : (Binary data 36 bytes, use -b option to extract)
Video Frame Rate                : 30
Sync Sample Table               : (Binary data 840 bytes, use -b option to extract)
Sample To Chunk                 : (Binary data 20 bytes, use -b option to extract)
Sample Sizes                    : (Binary data 12436 bytes, use -b option to extract)
Chunk Offset                    : (Binary data 12432 bytes, use -b option to extract)
---- Track2 ----
Track Header Version            : 0
Track Create Date               : 2019:03:24 16:40:03
Track Modify Date               : 2019:03:24 16:40:03
Track ID                        : 2
Track Duration                  : 0:01:44
Track Layer                     : 0
Track Volume                    : 100.00%
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2019:03:24 16:40:03
Media Modify Date               : 2019:03:24 16:40:03
Media Time Scale                : 32000
Media Duration                  : 0:01:44
Handler Class                   : Media Handler
Handler Type                    : Audio Track
Handler Description             : SoundHandler
Balance                         : 0
Handler Class                   : Data Handler
Handler Type                    : URL
Handler Description             : DataHandler
Audio Format                    : mp4a
Audio Channels                  : 1
Audio Bits Per Sample           : 16
Audio Sample Rate               : 32000
Unknown esds                    : (Binary data 31 bytes, use -b option to extract)
Time To Sample Table            : (Binary data 16 bytes, use -b option to extract)
Sample To Chunk                 : (Binary data 20 bytes, use -b option to extract)
Sample Sizes                    : (Binary data 12952 bytes, use -b option to extract)
Chunk Offset                    : (Binary data 12948 bytes, use -b option to extract)
---- Composite ----
Avg Bitrate                     : 20.5 Mbps
Image Size                      : 2560x1440
Megapixels                      : 3.7
Rotation                        : 0
4
Install Problems / Re: More Win10 Problems
« Last post by Phil Harvey on March 24, 2019, 04:50:54 PM »
Odd.  ExifTool shouldn't be trying to write anything into the directory of the executable.

- Phil
5
Newbies / Re: Setting "Date taken" attribute of JPEG Image, from the File name.
« Last post by StarGeek on March 24, 2019, 12:44:23 PM »
I notice I incorrectly listed the command, as I forgot the opening BBcode.  That's now been corrected.

Note: Here +05:30 for timezone.

Just so you know, the addition of the time zone won't be saved, as that particular tag doesn't hold the time zone.  To place to write the time zone so that it matches up with DateTimeOriginal is OffsetTimeOriginal.
6
Newbies / Re: exiftool video performance
« Last post by Hayo Baan on March 24, 2019, 07:18:06 AM »
HayoBaan's matchDateTime script.  He's a mod here so he might chime in as to the speed.

matchDateTime will really only update metadata that isn't updatable by exiftool and it too reads and writes the whole file, so this won't help in your case either.

Perhaps best is to (temporarily) copy the files to a local disk, make the necessary changes, and then write them all back.
7
Thank you so much for your information.

It worked!

Best regards,

zuiko3000
8
I found this and It worked!

Code: [Select]
exiftool
"-datetimeoriginal<
${filename;$_=substr($_,14,4)}:
${filename;$_=substr($_,11,2)}:
${filename;$_=substr($_,8,2)}:
${filename;$_=substr($_,19,2)}:
${filename;$_=substr($_,22,2)}:
${filename;$_=substr($_,25,2)}
+05:30" photo_1@11-02-2018_22-21-16.jpg"

Note: Here +05:30 for timezone.
9
Newbies / Re: Setting "Date taken" attribute of JPEG Image, from the File name.
« Last post by StarGeek on March 24, 2019, 03:27:24 AM »
Normally, FAQ #5, paragraph 3 would be the answer, but in your case, you have a number in the file name before the date and the date itself isn't in a YearMonthDay sequence.  So some reordering of the numbers will be necessary.

Try this on a test file to see if it works for you
exiftool "-AllDates<${filename;s/.*@(\d\d)-(\d\d)-(\d{4})(.*)/$3 $1 $2 $4/}" FileOrDir

This command will strip away everything up to and including the @ sign, then match and reorder the dates, and then match the rest of the filename.  This should make sure the numbers are in YYYY MM DD HH mm SS order.  Exiftool will ignore any extra characters when assigning the timestamp, as mentioned in FAQ 5.  If any file does not match this pattern, the results will not be correct.

This command will create backup files.  Add the Overwrite_Original option to prevent that.  Add the -r option to recurse into subdirectories.
10
Newbies / Setting "Date taken" attribute of JPEG Image, from the File name.
« Last post by tharindusathis on March 24, 2019, 03:10:41 AM »
I have set of JPEG image files which don't have values in "Date taken" attribute. But the JPEG file has the date of image taken.

E.g.:  my_image_1@11-02-2018_22-21-16.jpg
Here Image taken date is 2018/02/11 and time is 22:21:16.

What I need is to set the "Date taken" attribute of all photos (I need to do it for all photos at once). Is it possible to do with this tool? Can you please explain me the method?

Note: I'm very new to this toll and I appreciate your help to do my work. Thank you.
Pages: [1] 2 3 ... 10