ExifTool Forum

ExifTool => Newbies => Topic started by: reppmic on March 20, 2019, 11:33:41 AM

Title: 360 Metadata is gone into Filename after stitching
Post by: reppmic on March 20, 2019, 11:33:41 AM
Hi guys,

i have an Insta 360 one X - after I stitch my files in InstaStudio my metadata is set to "right now" and the old but real metadata is gone into the filename like :

VID_20190314_182329_00_052.mp4

VID_DATE_TIME_whatever.mp4

can you help me to batch this information back to metadata of the file? would be great!!!!
Title: Re: 360 Metadata is gone into Filename after stitching
Post by: Phil Harvey on March 20, 2019, 11:37:42 AM
ExifTool has only limited ability to write metadata to MP4 videos.  You can only write XMP and some date/time tags.  Exactly what information are you missing? (ie.  which lines from the "exiftool -a -G1 -s" output of the original do you want restored?)

- Phil
Title: Re: 360 Metadata is gone into Filename after stitching
Post by: reppmic on March 20, 2019, 11:53:36 AM
super fast reply :-) thanks :D

I mainly only want to have Date and Time (which is in Filename) -> if GPS is in would be cherry on top
is it possible to only change Date & Time?

when I enter exiftool -a -G1 -s the manual comes up

Title: Re: 360 Metadata is gone into Filename after stitching
Post by: Phil Harvey on March 20, 2019, 11:56:45 AM
You need to specify the file name in the command.  eg)

exiftool -a -G1 -s ID_20190314_182329_00_052.mp4

(assuming the file is in the current directory.  Otherwise, just drag and drop the file on the terminal window to type the full path)

Your command to set the date/time tags may be something like this:

exiftool "-quicktime:time:all<filename" DIR

- Phil
Title: Re: 360 Metadata is gone into Filename after stitching
Post by: reppmic on March 20, 2019, 12:01:52 PM
Hi, i see

system time is wrong for me because Final Cut sees only this

[System]        FileModifyDate                  : 2019:03:20 13:16:27+01:00
[System]        FileAccessDate                  : 2019:03:20 16:32:24+01:00
[System]        FileInodeChangeDate             : 2019:03:20 13:16:27+01:00

would be great to change system with :

[XMP-exif]      DateTimeOriginal                : 2019:03:14 12:43:08
[XMP-xmp]       CreateDate                      : 2019:03:14 12:43:08
[XMP-xmp]       ModifyDate                      : 2019:03:14 12:43:08



exiftool -a -G1 -s VID_20190314_124308_00_038.mp4
[ExifTool]      ExifToolVersion                 : 11.32
[System]        FileName                        : VID_20190314_124308_00_038.mp4
[System]        Directory                       : .
[System]        FileSize                        : 983 MB
[System]        FileModifyDate                  : 2019:03:20 13:16:27+01:00
[System]        FileAccessDate                  : 2019:03:20 16:32:24+01:00
[System]        FileInodeChangeDate             : 2019:03:20 13:16:27+01:00
[System]        FilePermissions                 : rwxrwxrwx
[File]          FileType                        : MP4
[File]          FileTypeExtension               : mp4
[File]          MIMEType                        : video/mp4
[QuickTime]     MajorBrand                      : MP4  Base Media v1 [IS0 14496-12:2003]
[QuickTime]     MinorVersion                    : 0.2.0
[QuickTime]     CompatibleBrands                : isom, iso2, avc1, mp41
[QuickTime]     MovieDataSize                   : 1030466164
[QuickTime]     MovieDataOffset                 : 48
[QuickTime]     MovieHeaderVersion              : 0
[QuickTime]     CreateDate                      : 2019:03:14 12:43:08
[QuickTime]     ModifyDate                      : 2019:03:14 12:43:08
[QuickTime]     TimeScale                       : 1000000
[QuickTime]     Duration                        : 0:01:19
[QuickTime]     PreferredRate                   : 1
[QuickTime]     PreferredVolume                 : 100.00%
[QuickTime]     MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[QuickTime]     PreviewTime                     : 0 s
[QuickTime]     PreviewDuration                 : 0 s
[QuickTime]     PosterTime                      : 0 s
[QuickTime]     SelectionTime                   : 0 s
[QuickTime]     SelectionDuration               : 0 s
[QuickTime]     CurrentTime                     : 0 s
[QuickTime]     NextTrackID                     : 3
[QuickTime]     HandlerType                     : Metadata
[QuickTime]     HandlerVendorID                 : Apple
[QuickTime]     Encoder                         : Lavf58.13.101
[Track1]        TrackHeaderVersion              : 0
[Track1]        TrackCreateDate                 : 2019:03:14 11:42:58
[Track1]        TrackModifyDate                 : 2019:03:14 11:42:58
[Track1]        TrackID                         : 1
[Track1]        TrackDuration                   : 0:01:19
[Track1]        TrackLayer                      : 0
[Track1]        TrackVolume                     : 0.00%
[Track1]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track1]        ImageWidth                      : 5760
[Track1]        ImageHeight                     : 2880
[Track1]        MediaHeaderVersion              : 0
[Track1]        MediaCreateDate                 : 2019:03:14 11:42:58
[Track1]        MediaModifyDate                 : 2019:03:14 11:42:58
[Track1]        MediaTimeScale                  : 90000
[Track1]        MediaDuration                   : 0:01:19
[Track1]        MediaLanguageCode               : und
[Track1]        HandlerType                     : Video Track
[Track1]        HandlerDescription              : VideoHandler
[Track1]        GraphicsMode                    : srcCopy
[Track1]        OpColor                         : 0 0 0
[Track1]        CompressorID                    : avc1
[Track1]        SourceImageWidth                : 5760
[Track1]        SourceImageHeight               : 2880
[Track1]        XResolution                     : 72
[Track1]        YResolution                     : 72
[Track1]        BitDepth                        : 24
[Track1]        Stereoscopic3D                  : Monoscopic
[Track1]        MetadataSource                  : Lavf58.13.101
[Track1]        PoseYawDegrees                  : 0
[Track1]        PosePitchDegrees                : 0
[Track1]        PoseRollDegrees                 : 0
[Track1]        ProjectionBoundsTop             : 0
[Track1]        ProjectionBoundsBottom          : 0
[Track1]        ProjectionBoundsLeft            : 0
[Track1]        ProjectionBoundsRight           : 0
[Track1]        VideoFrameRate                  : 29.97
[XMP-GSpherical] Spherical                      : true
[XMP-GSpherical] Stitched                       : true
[XMP-GSpherical] ProjectionType                 : equirectangular
[XMP-GSpherical] StereoMode                     : mono
[XMP-GSpherical] StitchingSoftware              : Insta360
[XMP-GSpherical] SourceCount                    : 2
[Track2]        TrackHeaderVersion              : 0
[Track2]        TrackCreateDate                 : 2019:03:14 11:42:58
[Track2]        TrackModifyDate                 : 2019:03:14 11:42:58
[Track2]        TrackID                         : 2
[Track2]        TrackDuration                   : 0:01:19
[Track2]        TrackLayer                      : 0
[Track2]        TrackVolume                     : 100.00%
[Track2]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track2]        MediaHeaderVersion              : 0
[Track2]        MediaCreateDate                 : 2019:03:14 11:42:58
[Track2]        MediaModifyDate                 : 2019:03:14 11:42:58
[Track2]        MediaTimeScale                  : 48000
[Track2]        MediaDuration                   : 0:01:19
[Track2]        MediaLanguageCode               : und
[Track2]        HandlerType                     : Audio Track
[Track2]        HandlerDescription              : SoundHandler
[Track2]        Balance                         : 0
[Track2]        AudioFormat                     : mp4a
[Track2]        AudioChannels                   : 2
[Track2]        AudioBitsPerSample              : 16
[Track2]        AudioSampleRate                 : 48000
[XMP-x]         XMPToolkit                      : Image::ExifTool 11.32
[XMP-exif]      DateTimeOriginal                : 2019:03:14 12:43:08
[XMP-xmp]       CreateDate                      : 2019:03:14 12:43:08
[XMP-xmp]       ModifyDate                      : 2019:03:14 12:43:08
[Composite]     AvgBitrate                      : 105 Mbps
[Composite]     ImageSize                       : 5760x2880
[Composite]     Megapixels                      : 16.6
[Composite]     Rotation                        : 0
Title: Re: 360 Metadata is gone into Filename after stitching
Post by: Phil Harvey on March 20, 2019, 12:09:22 PM
It seems that only the filesystem information has the wrong date/time?

If so, you can do this to set the filesystem modification date from the XMP CreateDate:

exiftool "-filemodifydate<createdate" DIR

But note that MacOS also has a filesystem creation date that you may need to set too.  This is not shown in the normal ExifTool output, and requires the "setfile" utility to be able to set it:

exiftool "-filecreatedate<createdate" DIR

- Phil
Title: Re: 360 Metadata is gone into Filename after stitching
Post by: reppmic on March 20, 2019, 12:18:56 PM
10000000x THANKS!

worked like it should!!!!