Main Menu

*.mp4 GPS

Started by dgood, September 10, 2018, 06:07:23 PM

Previous topic - Next topic

dgood

Are there any writeable GPS tags for MP4 files? I couldn't seem to find any in the QuickTime spec? If there are none, how do folks generally handle video metadata. Apologies for the noob question, I'm just beginning to toy around with video.
https://www.exiftool.org/TagNames/QuickTime.html

StarGeek

You can set XMP gps tags with exiftool.  Adobe products will read that, but I'm not sure about any other program.  Writing metadata in videos has poor software support in general.
"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

dgood

It seems odd that not even datetime tags are writeable. Is it possible write these tags via a config file?
Track Create Date
Track Modify Date
Media Create Date
Media Modify Date

StarGeek

Not with a config file.  Phil has mentioned in the past there is difficulty in dealing with the data in video files.  See Commentary on Meta Information Formats for some of his comments.  There are others spread through this forum.

Hayo Baan has a perl script that can change some timestamps.  He may pop in to clarify.

You might also try ffmpeg.  Here's a StackOverflow answer that might help.
"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

dgood

I was able to change the Track Create Date, Track Modify Date, Media Create Date and Media Modify Dateby using this line:
...and thanks, @stargeek for your help. It was really considerate of you to search stackoverflow. I appreciate it.

exiftool '-*date<filename' -wm w FILE


---- ExifTool ----
ExifTool Version Number         : 10.86
---- System ----
File Name                       : 2018-02-02 13.21.34.mp4
Directory                       : /Users/name/Desktop
File Size                       : 3.6 MB
File Modification Date/Time     : 2018:09:10 20:48:15-06:00
File Access Date/Time           : 2018:09:10 20:51:11-06:00
File Inode Change Date/Time     : 2018:09:10 20:48:15-06:00
File Permissions                : rw-r--r--
---- File ----
File Type                       : MP4
File Type Extension             : mp4
MIME Type                       : video/mp4
---- QuickTime ----
Major Brand                     : MP4 v2 [ISO 14496-14]
Minor Version                   : 0.0.1
Compatible Brands               : mp41, mp42, isom
Movie Header Version            : 0
Create Date                     : 2018:02:02 13:21:34
Modify Date                     : 2018:02:02 13:21:34
Time Scale                      : 30000
Duration                        : 7.54 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
Unknown Thumbnail               : (Binary data 9121 bytes, use -b option to extract)
Description                     : This video is about My Movie
Title                           : My Movie
Movie Data Size                 : 3730298
Movie Data Offset               : 13366
---- Track1 ----
Track Header Version            : 0
Track Create Date               : 2018:02:02 13:21:34
Track Modify Date               : 2018:02:02 13:21:34
Track ID                        : 1
Track Duration                  : 7.54 s
Track Layer                     : 0
Track Volume                    : 100.00%
Balance                         : 0
Audio Format                    : mp4a
Audio Channels                  : 2
Audio Bits Per Sample           : 16
Audio Sample Rate               : 48000
---- Track2 ----
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Image Width                     : 960
Image Height                    : 540
Media Header Version            : 0
Media Create Date               : 2018:02:02 13:21:34
Media Modify Date               : 2018:02:02 13:21:34
Media Time Scale                : 30000
Media Duration                  : 7.54 s
Media Language Code             : und
Handler Type                    : Video Track
Handler Description             : Core Media Video
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 960
Source Image Height             : 540
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Color Representation            : nclx 1 1 1
Video Field Order               : Progressive; 0
Pixel Aspect Ratio              : 1:1
Video Frame Rate                : 29.97
---- Composite ----
Avg Bitrate                     : 3.96 Mbps
Image Size                      : 960x540
Megapixels                      : 0.518
Rotation                        : 0

dgood

#5
If anyone reads this and has questions about video date & times, 100% of your questions will be answered by: this thread and this thread.
The first one is especially fun. It's old, but luckily the poster had absolutely no shame when it came to asking Phil question after question after question  :).  The second one I found helpful in documenting how to use the QuicktimeUTC API tag.


As for GPS info, i'll just write it in XMP for now.