Copying all metadata from one video to another

Started by esbowman, August 27, 2019, 12:11:17 AM

Previous topic - Next topic

esbowman

Problem:

Working with video from a GoPro Fusion Camera. This is a camera that shoots 360, and uses a front and back fisheye lens which you then stitch together using the GoPro Fusion Studio software. We are fixing a few things in post using After Effects and rendering this footage out to an mp4. Our goal is to use this retouched fisheye footage in GoPro's Fusion Studio software for stitching and image stabilization. However, it is quite picky regarding the metadata and streams found in the file.  We need to copy every piece of metadata from the source footage to this retouched video so that we can import it back into the GoPro Fusion software.

We tried ffmpeg first, taking two input files (source video and fixed video) and copying the video stream and other streams to a new mp4 file. We are able to get the 5 streams in the file, but the metadata is simply not copying over with ffmpeg. We then turned to ExifTool using the following commands:

exiftool -ee source.mp4 output.mp4

exiftool -tagsFromFile source.mp4 output.mp4

There are still a ton of discrepancies, and we are trying to figure out what we can do to fix this issue and have all the metadata brought over. I would really appreciate a second set of eyes on what we are trying to achieve, and look forward to any suggestions you might have. The following code is what we see listed for each file via ffmpeg and ExifTool.

Thanks so much!

The source file metadata as listed by ExifTool is:


[ExifTool]      ExifToolVersion                 : 11.63
[System]        FileName                        : GF120010.source.mp4
[System]        Directory                       : .
[System]        FileSize                        : 2.2 GB
[System]        FileModifyDate                  : 2019:08:18 12:34:48-05:00
[System]        FileAccessDate                  : 2019:08:26 11:04:30-05:00
[System]        FileCreateDate                  : 2019:08:20 16:41:15-05:00
[System]        FilePermissions                 : rw-rw-rw-
[File]          FileType                        : MP4
[File]          FileTypeExtension               : mp4
[File]          MIMEType                        : video/mp4
[QuickTime]     MajorBrand                      : MP4 v1 [ISO 14496-1:ch13]
[QuickTime]     MinorVersion                    : 2013.10.18
[QuickTime]     CompatibleBrands                : mp41
[QuickTime]     MovieDataSize                   : 2379448801
[QuickTime]     MovieDataOffset                 : 28
[QuickTime]     MovieHeaderVersion              : 0
[QuickTime]     CreateDate                      : 2019:08:18 12:27:46
[QuickTime]     ModifyDate                      : 2019:08:18 12:27:46
[QuickTime]     TimeScale                       : 90000
[QuickTime]     Duration                        : 0:07:00
[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                     : 6
[UserData]      FirmwareVersion                 : FS1.04.01.80.00
[UserData]      LensSerialNumber                : NAF8022700502463
[UserData]      SerialNumberHash                : b063d35758aeb91844f9bada2b3aa00f
[GoPro]         DeviceName                      : Geometry Calibrations
[GoPro]         DeviceName                      : IMU Calibrations
[GoPro]         CameraTemperature               : 28.224609375 C
[GoPro]         DeviceName                      : Back Lens
[GoPro]         DeviceName                      : Front Lens
[Track1]        TrackHeaderVersion              : 0
[Track1]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track1]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track1]        TrackID                         : 1
[Track1]        TrackDuration                   : 0:07:00
[Track1]        TrackLayer                      : 0
[Track1]        TrackVolume                     : 0.00%
[Track1]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track1]        ImageWidth                      : 2704
[Track1]        ImageHeight                     : 2624
[Track1]        TimeCode                        : 3
[Track1]        MediaHeaderVersion              : 0
[Track1]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track1]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track1]        MediaTimeScale                  : 90000
[Track1]        MediaDuration                   : 0:07:00
[Track1]        HandlerClass                    : Media Handler
[Track1]        HandlerType                     : Video Track
[Track1]        HandlerDescription              : GoPro AVC
[Track1]        GraphicsMode                    : srcCopy
[Track1]        OpColor                         : 0 0 0
[Track1]        CompressorID                    : avc1
[Track1]        SourceImageWidth                : 2704
[Track1]        SourceImageHeight               : 2624
[Track1]        XResolution                     : 72
[Track1]        YResolution                     : 72
[Track1]        CompressorName                  : GoPro AVC encoder
[Track1]        BitDepth                        : 24
[Track1]        ColorRepresentation             : nclx 1 1 1
[Track1]        VideoFrameRate                  : 29.97
[Track2]        TrackHeaderVersion              : 0
[Track2]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track2]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track2]        TrackID                         : 2
[Track2]        TrackDuration                   : 0:07:00
[Track2]        TrackLayer                      : 0
[Track2]        TrackVolume                     : 39.06%
[Track2]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track2]        TimeCode                        : 3
[Track2]        MediaHeaderVersion              : 0
[Track2]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track2]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track2]        MediaTimeScale                  : 48000
[Track2]        MediaDuration                   : 0:07:00
[Track2]        HandlerClass                    : Media Handler
[Track2]        HandlerType                     : Audio Track
[Track2]        HandlerDescription              : GoPro AAC
[Track2]        Balance                         : 0
[Track2]        AudioFormat                     : mp4a
[Track2]        AudioChannels                   : 2
[Track2]        AudioBitsPerSample              : 16
[Track2]        AudioSampleRate                 : 48000
[Track3]        TrackHeaderVersion              : 0
[Track3]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track3]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track3]        TrackID                         : 3
[Track3]        TrackDuration                   : 0:07:00
[Track3]        TrackLayer                      : 0
[Track3]        TrackVolume                     : 0.00%
[Track3]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track3]        ImageWidth                      : 2704
[Track3]        ImageHeight                     : 16
[Track3]        MediaHeaderVersion              : 0
[Track3]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track3]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track3]        MediaTimeScale                  : 90000
[Track3]        MediaDuration                   : 0:07:00
[Track3]        HandlerClass                    : Media Handler
[Track3]        HandlerType                     : Time Code
[Track3]        HandlerDescription              : GoPro TCD
[Track3]        GenMediaVersion                 : 0
[Track3]        GenFlags                        : 0 0 0
[Track3]        GenGraphicsMode                 : ditherCopy
[Track3]        GenOpColor                      : 32768 32768 32768
[Track3]        GenBalance                      : 0
[Track3]        TextFont                        : Unknown (21)
[Track3]        TextFace                        : Plain
[Track3]        TextSize                        : 10
[Track3]        TextColor                       : 0 0 0
[Track3]        BackgroundColor                 : 65535 65535 65535
[Track3]        FontName                        : Helvetica
[Track3]        OtherFormat                     : tmcd
[Track4]        TrackHeaderVersion              : 0
[Track4]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track4]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track4]        TrackID                         : 4
[Track4]        TrackDuration                   : 0:07:00
[Track4]        TrackLayer                      : 0
[Track4]        TrackVolume                     : 0.00%
[Track4]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track4]        MediaHeaderVersion              : 0
[Track4]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track4]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track4]        MediaTimeScale                  : 1000
[Track4]        MediaDuration                   : 0:07:00
[Track4]        HandlerClass                    : Media Handler
[Track4]        HandlerType                     : NRT Metadata
[Track4]        HandlerDescription              : GoPro MET
[Track4]        GenMediaVersion                 : 0
[Track4]        GenFlags                        : 0 0 0
[Track4]        GenGraphicsMode                 : srcCopy
[Track4]        GenOpColor                      : 0 0 0
[Track4]        GenBalance                      : 0
[Track4]        MetaFormat                      : gpmd
[Track4]        Warning                         : [minor] The ExtractEmbedded option may find more tags in the movie data
[Track5]        TrackHeaderVersion              : 0
[Track5]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track5]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track5]        TrackID                         : 5
[Track5]        TrackDuration                   : 0:07:00
[Track5]        TrackLayer                      : 0
[Track5]        TrackVolume                     : 0.00%
[Track5]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track5]        MediaHeaderVersion              : 0
[Track5]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track5]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track5]        MediaTimeScale                  : 90000
[Track5]        MediaDuration                   : 0:07:00
[Track5]        HandlerClass                    : Media Handler
[Track5]        HandlerType                     : NRT Metadata
[Track5]        HandlerDescription              : GoPro SOS
[Track5]        GenMediaVersion                 : 0
[Track5]        GenFlags                        : 0 0 0
[Track5]        GenGraphicsMode                 : srcCopy
[Track5]        GenOpColor                      : 0 0 0
[Track5]        GenBalance                      : 0
[Track5]        MetaFormat                      : fdsc
[Composite]     ImageSize                       : 2704x2624
[Composite]     Megapixels                      : 7.1
[Composite]     AvgBitrate                      : 45.3 Mbps
[Composite]     Rotation                        : 0


Source file as listed by ffmpeg:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GF120010.source.mp4':
  Metadata:
    major_brand     : mp41
    minor_version   : 538120216
    compatible_brands: mp41
    creation_time   : 2019-08-18T12:27:46.000000Z
    firmware        : FS1.04.01.80.00
  Duration: 00:07:00.42, start: 0.000000, bitrate: 45287 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 2704x2624 [SAR 1:1 DAR 169:164], 44954 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro AVC
      encoder         : GoPro AVC encoder
      timecode        : 12:52:47:11
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro AAC
      timecode        : 12:52:47:11
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro TCD
      timecode        : 12:52:47:11
    Stream #0:3(eng): Data: none (gpmd / 0x646D7067), 184 kb/s (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro MET
    Stream #0:4(eng): Data: none (fdsc / 0x63736466), 9 kb/s (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro SOS


The video file rendered from After Effects (metadata copied using ExifTool) has the following metadata as listed by ExifTool:


[ExifTool]      ExifToolVersion                 : 11.63
[System]        FileName                        : GF120010.mp4
[System]        Directory                       : .
[System]        FileSize                        : 2.5 GB
[System]        FileModifyDate                  : 2019:08:26 23:28:26-05:00
[System]        FileAccessDate                  : 2019:08:26 23:28:26-05:00
[System]        FileCreateDate                  : 2019:08:26 22:57:35-05:00
[System]        FilePermissions                 : rw-rw-rw-
[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]     MovieHeaderVersion              : 0
[QuickTime]     CreateDate                      : 2019:08:18 12:27:46
[QuickTime]     ModifyDate                      : 2019:08:18 12:27:46
[QuickTime]     TimeScale                       : 1000
[QuickTime]     Duration                        : 0:07:00
[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                     : 6
[QuickTime]     HandlerType                     : Metadata
[QuickTime]     HandlerVendorID                 : Apple
[QuickTime]     HandlerType                     : Metadata Tags
[QuickTime]     MovieDataSize                   : 2646726722
[QuickTime]     MovieDataOffset                 : 375788
[Track1]        TrackHeaderVersion              : 0
[Track1]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track1]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track1]        TrackID                         : 1
[Track1]        TrackDuration                   : 0:07:00
[Track1]        TrackLayer                      : 0
[Track1]        TrackVolume                     : 0.00%
[Track1]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track1]        ImageWidth                      : 2704
[Track1]        ImageHeight                     : 2624
[Track1]        TimeCode                        : 3
[Track1]        MediaHeaderVersion              : 0
[Track1]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track1]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track1]        MediaTimeScale                  : 30000
[Track1]        MediaDuration                   : 0:07:00
[Track1]        MediaLanguageCode               : eng
[Track1]        HandlerType                     : Video Track
[Track1]        HandlerDescription              : GoPro AVC
[Track1]        GraphicsMode                    : srcCopy
[Track1]        OpColor                         : 0 0 0
[Track1]        CompressorID                    : avc1
[Track1]        SourceImageWidth                : 2704
[Track1]        SourceImageHeight               : 2624
[Track1]        XResolution                     : 72
[Track1]        YResolution                     : 72
[Track1]        BitDepth                        : 24
[Track1]        VideoFrameRate                  : 29.97
[Track2]        TrackHeaderVersion              : 0
[Track2]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track2]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track2]        TrackID                         : 2
[Track2]        TrackDuration                   : 0:07:00
[Track2]        TrackLayer                      : 0
[Track2]        TrackVolume                     : 100.00%
[Track2]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track2]        MediaHeaderVersion              : 0
[Track2]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track2]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track2]        MediaTimeScale                  : 48000
[Track2]        MediaDuration                   : 0:07:00
[Track2]        MediaLanguageCode               : eng
[Track2]        HandlerType                     : Audio Track
[Track2]        HandlerDescription              : GoPro AAC
[Track2]        Balance                         : 0
[Track2]        AudioFormat                     : mp4a
[Track2]        AudioChannels                   : 2
[Track2]        AudioBitsPerSample              : 16
[Track2]        AudioSampleRate                 : 48000
[Track3]        TrackHeaderVersion              : 0
[Track3]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track3]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track3]        TrackID                         : 3
[Track3]        TrackDuration                   : 0:07:00
[Track3]        TrackLayer                      : 0
[Track3]        TrackVolume                     : 0.00%
[Track3]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track3]        MediaHeaderVersion              : 0
[Track3]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track3]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track3]        MediaTimeScale                  : 29
[Track3]        MediaDuration                   : 0:07:00
[Track3]        MediaLanguageCode               : eng
[Track3]        HandlerType                     : Time Code
[Track3]        HandlerDescription              : GoPro TCD
[Track3]        OtherFormat                     : tmcd
[Track4]        TrackHeaderVersion              : 0
[Track4]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track4]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track4]        TrackID                         : 4
[Track4]        TrackDuration                   : 0:07:00
[Track4]        TrackLayer                      : 0
[Track4]        TrackVolume                     : 0.00%
[Track4]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track4]        MediaHeaderVersion              : 0
[Track4]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track4]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track4]        MediaTimeScale                  : 1000
[Track4]        MediaDuration                   : 0:07:00
[Track4]        MediaLanguageCode               : eng
[Track4]        HandlerType                     : NRT Metadata
[Track4]        HandlerDescription              : GoPro MET
[Track4]        GenMediaVersion                 : 0
[Track4]        GenFlags                        : 0 0 0
[Track4]        GenGraphicsMode                 : ditherCopy
[Track4]        GenOpColor                      : 32768 32768 32768
[Track4]        GenBalance                      : 0
[Track4]        MetaFormat                      : gpmd
[Track4]        Warning                         : [minor] The ExtractEmbedded option may find more tags in the movie data
[Track5]        TrackHeaderVersion              : 0
[Track5]        TrackCreateDate                 : 2019:08:18 12:27:46
[Track5]        TrackModifyDate                 : 2019:08:18 12:27:46
[Track5]        TrackID                         : 5
[Track5]        TrackDuration                   : 0:07:00
[Track5]        TrackLayer                      : 0
[Track5]        TrackVolume                     : 0.00%
[Track5]        MatrixStructure                 : 1 0 0 0 1 0 0 0 1
[Track5]        MediaHeaderVersion              : 0
[Track5]        MediaCreateDate                 : 2019:08:18 12:27:46
[Track5]        MediaModifyDate                 : 2019:08:18 12:27:46
[Track5]        MediaTimeScale                  : 90000
[Track5]        MediaDuration                   : 0:07:00
[Track5]        MediaLanguageCode               : eng
[Track5]        HandlerType                     : NRT Metadata
[Track5]        HandlerDescription              : GoPro SOS
[Track5]        GenMediaVersion                 : 0
[Track5]        GenFlags                        : 0 0 0
[Track5]        GenGraphicsMode                 : ditherCopy
[Track5]        GenOpColor                      : 32768 32768 32768
[Track5]        GenBalance                      : 0
[Track5]        MetaFormat                      : gpmd
[ItemList]      Encoder                         : Lavf58.12.100
[UserData]      SerialNumberHash                : b063d35758aeb91844f9bada2b3aa00f
[UserData]      FirmwareVersion                 : FS1.04.01.80.00
[UserData]      LensSerialNumber                : NAF8022700502463
[Keys]          Balance                         : 0
[XMP-x]         XMPToolkit                      : Image::ExifTool 11.63
[XMP-iptcExt]   AudioBitsPerSample              : 16
[XMP-LImage]    MinorVersion                    : 2013.10.18
[XMP-exifEX]    LensSerialNumber                : NAF8022700502463................................
[XMP-tiff]      ImageHeight                     : 2624
[XMP-tiff]      ImageWidth                      : 2704
[XMP-tiff]      XResolution                     : 72
[XMP-tiff]      YResolution                     : 72
[XMP-xmp]       CreateDate                      : 2019:08:18 12:27:46
[XMP-xmp]       ModifyDate                      : 2019:08:18 12:27:46
[XMP-xmpDM]     AudioSampleRate                 : 48000
[XMP-xmpDM]     VideoFrameRate                  : 29.97
[XMP-xmpTPg]    FontName                        : Helvetica
[Composite]     ImageSize                       : 2704x2624
[Composite]     Megapixels                      : 7.1
[Composite]     AvgBitrate                      : 50.4 Mbps
[Composite]     Rotation                        : 0


After Effects file as listed by ffmpeg:

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GF120010.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2019-08-18T12:27:46.000000Z
    encoder         : Lavf58.12.100
    com.apple.quicktime.player.movie.audio.balance: 0
  Duration: 00:07:00.42, start: 0.000000, bitrate: 50370 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 2704x2624, 50040 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro AVC
      timecode        : 12:52:47:11
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro AAC
    Stream #0:2(eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro TCD
      timecode        : 12:52:47:11
    Stream #0:3(eng): Data: none (gpmd / 0x646D7067), 184 kb/s (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro MET
    Stream #0:4(eng): Data: none (gpmd / 0x646D7067), 9 kb/s (default)
    Metadata:
      creation_time   : 2019-08-18T12:27:46.000000Z
      handler_name    :         GoPro SOS

StarGeek

I'm guessing that this was your SuperUser post.

One thing to try is to make sure exiftool copies all the tags into the exact same place as the source (FAQ #9).  So try
exiftool -tagsFromFile source.mp4 -All:All output.mp4

I probably won't be much help beyond that, so hopefully someone else with more experience with video might chime in.

I'd also suggest using
exiftool -G1 -a -s FILE.mp4
to list the data with, as that will show where the data is located and also show all the data in the case of duplicate tags.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

esbowman

#2
You are correct, that is my post. :)

I really appreciate the suggestions, and will give that a try now.

* Edited my first post to reflect the results after your command suggestion.

StarGeek

Lot of interesting data there that I haven't come across before, but then I don't do much in the way of video.

One example of data getting copied to a different place is FontName.  In your original, it's in Track3 but it ends up in XMP-xmpTPg in the second.  To be honest, some of this is probably beyond the ability of exiftool to copy, but try the command I suggested and see.  You might get more eyes on the problem in a few hours.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

Phil Harvey

The most obvious is the GoPro metadata that seems to be removed by After Effects.  Unfortunately ExifTool can not create proprietary metadata like this in videos.

- 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 ($).

esbowman

Quote from: Phil Harvey on August 27, 2019, 07:29:15 AM
The most obvious is the GoPro metadata that seems to be removed by After Effects.  Unfortunately ExifTool can not create proprietary metadata like this in videos.

- Phil

That's exactly what I was thinking as well. My gut tells me that this proprietary metadata is our roadblock right now. This guy has an extensive article on the subject, regarding getting the files to re-import into GoPro's Quik software. http://coderunner.io/how-to-compress-gopro-movies-and-keep-metadata/

This has helped us recreate the individual streams (other than the video stream) but I'm noticing that Fusion Studio still does not allow the importing. Supposedly this is possible via a Facebook discussion and one of the devs from GoPro. He mentions a tool that he used to inject the metadata or info into the video header...not sure what that is, but was hopeful it was ExifTool.

dbrillha

#6
I'm trying to TRIM my GoPro Hero 11 Black videos while retaining the 2 extra GoPro streams (GoPRo TCD: time code:/tmcd and GoPro MET: telemetry/gpmd).

I was able to get REALLY close. This does everything I want - preserving the resolution, encoder, framerate and even preserving the MET/gpmd stream. The only issue is this command strips the TCD/tmcd stream.

Here is the command that works for me using the latest ffmped, as an example that trims a 30 sec segment.

ffmpeg -i Original.MP4 -ss 1:30 -to 2:00 ^
    -copy_unknown -map_metadata 0 -c copy -map 0:u ^
    Test.MP4

Tim's great post from 2018 is outdated and I can't seem to figure out the "handler" options to get ffmpeg to keep the TCD stream in the output file.
https://coderunner.io/how-to-compress-gopro-movies-and-keep-metadata/

Here are the ffprobe lines. Stream #0:3 works. Stream #0:2 is stripped. Thanks!!

  Stream #0:2[0x3](eng): Data: none (tmcd / 0x64636D74) (default)
    Metadata:
      creation_time  : 2023-08-11T13:57:46.000000Z
      handler_name    : GoPro TCD
      timecode        : 09:57:10:23
  Stream #0:3[0x4](eng): Data: bin_data (gpmd / 0x646D7067), 57 kb/s (default)
    Metadata:
      creation_time  : 2023-08-11T13:57:46.000000Z
      handler_name    : GoPro MET

Anyone have an idea of the additional options?