Hello,
Now I noticed that both my iPhone 6s and Galaxy Note 3 create some meta data in my videos including GPS data. I read somewhere in this forum that video uses XMP.
- How can we make a good use of the data stored by phones in the videos and create a good meta that can be read by Flickr?
- Can we copy this metadata and rewrite them back at XMP format?
- How can we make a good use of the GPS data in the video to create standard GPS metadata that can be read by other applications?
- Any more idea?
Usually, I do the following for each video I have
exiftool -overwrite_original "-alldates<filename" ./
exiftool '-TrackCreateDate<CreateDate' '-MediaCreateDate<CreateDate' '-FileModifyDate<CreateDate' '-MediaModifyDate<CreateDate' '-TrackModifyDate<CreateDate' '-xmp:DateTimeOriginal<CreateDate' '-xmp:CreateDate<CreateDate' '-xmp:ModifyDate<CreateDate' '-xmp:dateTimeOriginal<${DateTimeOriginal}+03:00' '-xmp:CreateDate<${CreateDate}+03:00' '-xmp:ModifyDate<${CreateDate}+03:00' ./
exiftool -P -d '%Y%m%d_%H%M%S' \
'-filename<${CreateDate}%-c.%e' \
'-filename<${DateTimeOriginal}%-c.%e' \
$@ -ext mov -ext 3gp -ext mp4 -ext avi -r .
Below my sample MP4 and Mov metadata
Galaxy Note 3 .mp4
QuoteExifTool Version Number : 9.46
File Name : Note3.mp4
Directory : .
File Size : 2.3 MB
File Modification Date/Time : 2017:08:18 23:02:22+03:00
File Access Date/Time : 2017:09:19 19:32:40+03:00
File Inode Change Date/Time : 2017:09:19 19:33:39+03:00
File Permissions : rwxrwxrwx
File Type : MP4
MIME Type : video/mp4
Major Brand : MP4 v2 [ISO 14496-14]
Minor Version : 0.0.0
Compatible Brands : isom, mp42
Movie Data Size : 2450943
Movie Data Offset : 32
Movie Header Version : 0
Create Date : 2017:08:18 20:02:22
Modify Date : 2017:08:18 20:02:22
Time Scale : 1000
Duration : 1.14 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
Play Mode : SEQ_PLAY
GPS Coordinates : 18 deg 12' 38.16" N, 42 deg 30' 28.44" E
Com Android Version : 7.0
Track Header Version : 0
Track Create Date : 2017:08:18 20:02:22
Track Modify Date : 2017:08:18 20:02:22
Track ID : 1
Track Duration : 1.14 s
Track Layer : 0
Track Volume : 0.00%
Image Width : 1920
Image Height : 1080
Graphics Mode : srcCopy
Op Color : 0 0 0
Compressor ID : avc1
Source Image Width : 1920
Source Image Height : 1080
X Resolution : 72
Y Resolution : 72
Bit Depth : 24
Pixel Aspect Ratio : 65536:65536
Color Representation : nclx 1 1 1
Video Frame Rate : 29.902
Matrix Structure : 1 0 0 0 1 0 0 0 1
Media Header Version : 0
Media Create Date : 2017:08:18 20:02:22
Media Modify Date : 2017:08:18 20:02:22
Media Time Scale : 48000
Media Duration : 1.07 s
Handler Type : Audio Track
Handler Description : SoundHandle
Balance : 0
Audio Format : mp4a
Audio Channels : 2
Audio Bits Per Sample : 16
Audio Sample Rate : 48000
Avg Bitrate : 17.2 Mbps
GPS Latitude : 18 deg 12' 38.16" N
GPS Longitude : 42 deg 30' 28.44" E
GPS Position : 18 deg 12' 38.16" N, 42 deg 30' 28.44" E
Image Size : 1920x1080
Rotation : 90
iPhone .mov
QuoteExifTool Version Number : 9.46
File Name : iPhone.mov
Directory : .
File Size : 8.7 MB
File Modification Date/Time : 2017:09:17 21:35:57+03:00
File Access Date/Time : 2017:09:19 19:32:48+03:00
File Inode Change Date/Time : 2017:09:19 19:33:27+03:00
File Permissions : rwxrwxrwx
File Type : MOV
MIME Type : video/quicktime
Major Brand : Apple QuickTime (.MOV/QT)
Minor Version : 0.0.0
Compatible Brands : qt
Movie Data Size : 9125700
Movie Data Offset : 36
Movie Header Version : 0
Create Date : 2017:08:24 08:11:20
Modify Date : 2017:08:24 08:11:25
Time Scale : 600
Duration : 4.64 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 : 5
Track Header Version : 0
Track Create Date : 2017:08:24 08:11:20
Track Modify Date : 2017:08:24 08:11:25
Track ID : 1
Track Duration : 4.64 s
Track Layer : 0
Track Volume : 100.00%
Image Width : 1920
Image Height : 1080
Clean Aperture Dimensions : 1920x1080
Production Aperture Dimensions : 1920x1080
Encoded Pixels Dimensions : 1920x1080
Graphics Mode : ditherCopy
Op Color : 32768 32768 32768
Compressor ID : avc1
Source Image Width : 1920
Source Image Height : 1080
X Resolution : 72
Y Resolution : 72
Compressor Name : H.264
Bit Depth : 24
Video Frame Rate : 29.978
Balance : 0
Audio Format : mp4a
Audio Channels : 1
Audio Bits Per Sample : 16
Audio Sample Rate : 44100
Purchase File Format : mp4a
Matrix Structure : 1 0 0 0 1 0 0 0 1
Media Header Version : 0
Media Create Date : 2017:08:24 08:11:20
Media Modify Date : 2017:08:24 08:11:25
Media Time Scale : 600
Media Duration : 4.64 s
Media Language Code : und
Gen Media Version : 0
Gen Flags : 0 0 0
Gen Graphics Mode : ditherCopy
Gen Op Color : 32768 32768 32768
Gen Balance : 0
Handler Class : Data Handler
Handler Vendor ID : Apple
Handler Description : Core Media Data Handler
Other Format : mebx
XMP Toolkit : Image::ExifTool 9.46
GPS Latitude : 21 deg 27' 57.28" N
GPS Longitude : 39 deg 14' 35.64" E
GPS Map Datum : WGS-84
GPS Date/Time : 2017:08:11 13:56:28Z
GPS Version ID : 2.2.0.0
Handler Type : Metadata Tags
Make : Apple
Model : iPhone 6s Plus
Software : 10.3.3
Creation Date : 2017:08:24 11:11:20+03:00
Avg Bitrate : 15.7 Mbps
GPS Latitude Ref : North
GPS Longitude Ref : East
Image Size : 1920x1080
Rotation : 0
GPS Position : 21 deg 27' 57.28" N, 39 deg 14' 35.64" E
I doubt this is stored in XMP. Use the -G1 option when extracting to see where the metadata is stored.
- Phil
.mov
Quote[ExifTool] ExifTool Version Number : 9.46
[System] File Name : iPhone.mov
[System] Directory : .
[System] File Size : 8.7 MB
[System] File Modification Date/Time : 2017:09:17 21:35:57+03:00
[System] File Access Date/Time : 2017:09:19 19:32:48+03:00
[System] File Inode Change Date/Time : 2017:09:19 19:59:58+03:00
[System] File Permissions : rwxrwxrwx
[File] File Type : MOV
[File] MIME Type : video/quicktime
[QuickTime] Major Brand : Apple QuickTime (.MOV/QT)
[QuickTime] Minor Version : 0.0.0
[QuickTime] Compatible Brands : qt
[QuickTime] Movie Data Size : 9125700
[QuickTime] Movie Data Offset : 36
[QuickTime] Movie Header Version : 0
[QuickTime] Create Date : 2017:08:24 08:11:20
[QuickTime] Modify Date : 2017:08:24 08:11:25
[QuickTime] Time Scale : 600
[QuickTime] Duration : 4.64 s
[QuickTime] Preferred Rate : 1
[QuickTime] Preferred Volume : 100.00%
[QuickTime] Preview Time : 0 s
[QuickTime] Preview Duration : 0 s
[QuickTime] Poster Time : 0 s
[QuickTime] Selection Time : 0 s
[QuickTime] Selection Duration : 0 s
[QuickTime] Current Time : 0 s
[QuickTime] Next Track ID : 5
[QuickTime] Handler Type : Metadata Tags
[QuickTime] Make : Apple
[QuickTime] Model : iPhone 6s Plus
[QuickTime] Software : 10.3.3
[QuickTime] Creation Date : 2017:08:24 11:11:20+03:00
[Track1] Track Header Version : 0
[Track1] Track Create Date : 2017:08:24 08:11:20
[Track1] Track Modify Date : 2017:08:24 08:11:25
[Track1] Track ID : 1
[Track1] Track Duration : 4.64 s
[Track1] Track Layer : 0
[Track1] Track Volume : 100.00%
[Track1] Image Width : 1920
[Track1] Image Height : 1080
[Track1] Clean Aperture Dimensions : 1920x1080
[Track1] Production Aperture Dimensions : 1920x1080
[Track1] Encoded Pixels Dimensions : 1920x1080
[Track1] Graphics Mode : ditherCopy
[Track1] Op Color : 32768 32768 32768
[Track1] Compressor ID : avc1
[Track1] Source Image Width : 1920
[Track1] Source Image Height : 1080
[Track1] X Resolution : 72
[Track1] Y Resolution : 72
[Track1] Compressor Name : H.264
[Track1] Bit Depth : 24
[Track1] Video Frame Rate : 29.978
[Track2] Balance : 0
[Track2] Audio Format : mp4a
[Track2] Audio Channels : 1
[Track2] Audio Bits Per Sample : 16
[Track2] Audio Sample Rate : 44100
[Track2] Purchase File Format : mp4a
[Track4] Matrix Structure : 1 0 0 0 1 0 0 0 1
[Track4] Media Header Version : 0
[Track4] Media Create Date : 2017:08:24 08:11:20
[Track4] Media Modify Date : 2017:08:24 08:11:25
[Track4] Media Time Scale : 600
[Track4] Media Duration : 4.64 s
[Track4] Media Language Code : und
[Track4] Gen Media Version : 0
[Track4] Gen Flags : 0 0 0
[Track4] Gen Graphics Mode : ditherCopy
[Track4] Gen Op Color : 32768 32768 32768
[Track4] Gen Balance : 0
[Track4] Handler Class : Data Handler
[Track4] Handler Vendor ID : Apple
[Track4] Handler Description : Core Media Data Handler
[Track4] Other Format : mebx
[XMP-x] XMP Toolkit : Image::ExifTool 9.46
[XMP-exif] GPS Latitude : 21 deg 27' 57.28" N
[XMP-exif] GPS Longitude : 39 deg 14' 35.64" E
[XMP-exif] GPS Map Datum : WGS-84
[XMP-exif] GPS Date/Time : 2017:08:11 13:56:28Z
[XMP-exif] GPS Version ID : 2.2.0.0
[Composite] Avg Bitrate : 15.7 Mbps
[Composite] GPS Latitude Ref : North
[Composite] GPS Longitude Ref : East
[Composite] Image Size : 1920x1080
[Composite] Rotation : 0
[Composite] GPS Position : 21 deg 27' 57.28" N, 39 deg 14' 35.64" E
.mp4
Quote[ExifTool] ExifTool Version Number : 9.46
[System] File Name : Note3.mp4
[System] Directory : .
[System] File Size : 2.3 MB
[System] File Modification Date/Time : 2017:08:18 23:02:22+03:00
[System] File Access Date/Time : 2017:09:19 19:32:40+03:00
[System] File Inode Change Date/Time : 2017:09:19 19:59:17+03:00
[System] File Permissions : rwxrwxrwx
[File] File Type : MP4
[File] MIME Type : video/mp4
[QuickTime] Major Brand : MP4 v2 [ISO 14496-14]
[QuickTime] Minor Version : 0.0.0
[QuickTime] Compatible Brands : isom, mp42
[QuickTime] Movie Data Size : 2450943
[QuickTime] Movie Data Offset : 32
[QuickTime] Movie Header Version : 0
[QuickTime] Create Date : 2017:08:18 20:02:22
[QuickTime] Modify Date : 2017:08:18 20:02:22
[QuickTime] Time Scale : 1000
[QuickTime] Duration : 1.14 s
[QuickTime] Preferred Rate : 1
[QuickTime] Preferred Volume : 100.00%
[QuickTime] Preview Time : 0 s
[QuickTime] Preview Duration : 0 s
[QuickTime] Poster Time : 0 s
[QuickTime] Selection Time : 0 s
[QuickTime] Selection Duration : 0 s
[QuickTime] Current Time : 0 s
[QuickTime] Next Track ID : 3
[QuickTime] Play Mode : SEQ_PLAY
[QuickTime] GPS Coordinates : 18 deg 12' 38.16" N, 42 deg 30' 28.44" E
[QuickTime] Com Android Version : 7.0
[Track1] Track Header Version : 0
[Track1] Track Create Date : 2017:08:18 20:02:22
[Track1] Track Modify Date : 2017:08:18 20:02:22
[Track1] Track ID : 1
[Track1] Track Duration : 1.14 s
[Track1] Track Layer : 0
[Track1] Track Volume : 0.00%
[Track1] Image Width : 1920
[Track1] Image Height : 1080
[Track1] Graphics Mode : srcCopy
[Track1] Op Color : 0 0 0
[Track1] Compressor ID : avc1
[Track1] Source Image Width : 1920
[Track1] Source Image Height : 1080
[Track1] X Resolution : 72
[Track1] Y Resolution : 72
[Track1] Bit Depth : 24
[Track1] Pixel Aspect Ratio : 65536:65536
[Track1] Color Representation : nclx 1 1 1
[Track1] Video Frame Rate : 29.902
[Track2] Matrix Structure : 1 0 0 0 1 0 0 0 1
[Track2] Media Header Version : 0
[Track2] Media Create Date : 2017:08:18 20:02:22
[Track2] Media Modify Date : 2017:08:18 20:02:22
[Track2] Media Time Scale : 48000
[Track2] Media Duration : 1.07 s
[Track2] Handler Type : Audio Track
[Track2] Handler Description : SoundHandle
[Track2] Balance : 0
[Track2] Audio Format : mp4a
[Track2] Audio Channels : 2
[Track2] Audio Bits Per Sample : 16
[Track2] Audio Sample Rate : 48000
[Composite] Avg Bitrate : 17.2 Mbps
[Composite] GPS Latitude : 18 deg 12' 38.16" N
[Composite] GPS Longitude : 42 deg 30' 28.44" E
[Composite] GPS Position : 18 deg 12' 38.16" N, 42 deg 30' 28.44" E
[Composite] Image Size : 1920x1080
[Composite] Rotation : 90
In your .mov file the GPS is stored in XMP, and ExifTool is able to write this. However, ExifTool can't write the QuickTime GPS used in your .mp4 file.
- Phil
They are also written in the composite
Quote[Composite] Avg Bitrate : 17.2 Mbps
[Composite] GPS Latitude : 18 deg 12' 38.16" N
[Composite] GPS Longitude : 42 deg 30' 28.44" E
[Composite] GPS Position : 18 deg 12' 38.16" N, 42 deg 30' 28.44" E
[Composite] Image Size : 1920x1080
[Composite] Rotation : 90
How can I copy the GPS data from QuickTime to XMP?
Thx
This should do it:
exiftool "-xmp:GPSLongitude<GPSLongitude" "-xmp:GPSLatitude<GPSLatitude"