ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: emes on June 01, 2021, 05:05:18 PM

Title: Copy makernotes from mov files
Post by: emes on June 01, 2021, 05:05:18 PM
I have some repaired .mov files that are missing the maker notes. I'm trying to restore them using -tagsFromFile from a valid .mov taken with the same camera, but exiftool will not transfer them (either with -all:all or -makernotes etc). If I try to transfer to a plain .jpg they will transfer, just not to the .mov. The target file is *valid* (will play on a computer) but it will not play on the camera itself apparently because it is missing the makernotes.

Here's the output from exiftool -tagsFromfile ftyp.mov -makernotes -make -model mdat.mov -v100'


Setting new values from ftyp.mov
Writing ExifIFD:MakerNoteCanon if tag exists
Writing ExifIFD:MakerNoteCanon
Writing MIE-Camera:Make
Writing PNG:Make
Writing Keys:Make if tag exists
Writing UserData:Make if tag exists
Writing UserData:Make
Writing CanonRaw:Make if tag exists
Writing DJI:Make if tag exists
Writing XMP-pmi:Make if tag exists
Writing XMP-tiff:Make if tag exists
Writing IFD0:Make
Writing IFD0:Make
Writing MIE-Camera:Make
Writing PNG:Make
Writing Keys:Make if tag exists
Writing UserData:Make if tag exists
Writing UserData:Make
Writing CanonRaw:Make if tag exists
Writing DJI:Make if tag exists
Writing XMP-pmi:Make if tag exists
Writing XMP-tiff:Make if tag exists
Writing IFD0:Make
Writing IFD0:Make
Writing MIE-Camera:Model
Writing PNG:Model
Writing Keys:Model if tag exists
Writing UserData:Model if tag exists
Writing UserData:Model if tag exists
Writing UserData:Model if tag exists
Writing UserData:Model if tag exists
Writing UserData:Model
Writing CanonRaw:Model if tag exists
Writing Pentax:Model if tag exists
Writing Sigma:Model if tag exists
Writing XMP-GDepth:Model if tag exists
Writing XMP-pmi:Model if tag exists
Writing XMP-tiff:Model if tag exists
Writing IFD0:Model
Writing IFD0:Model
Writing MIE-Camera:Model
Writing PNG:Model
Writing Keys:Model if tag exists
Writing UserData:Model if tag exists
Writing UserData:Model if tag exists
Writing UserData:Model if tag exists
Writing UserData:Model if tag exists
Writing UserData:Model
Writing CanonRaw:Model if tag exists
Writing Pentax:Model if tag exists
Writing Sigma:Model if tag exists
Writing XMP-GDepth:Model if tag exists
Writing XMP-pmi:Model if tag exists
Writing XMP-tiff:Model if tag exists
Writing IFD0:Model
Writing IFD0:Model
======== mdat.mov
Rewriting mdat.mov...
  FileType = MOV
  FileTypeExtension = MOV
  MIMEType = video/quicktime
  Editing tags in: ExifIFD IFD0 Keys MIE-Camera MOV MakerNotes Movie PNG UserData XMP
  Creating tags in: ExifIFD IFD0 MIE-Camera MOV Movie PNG UserData XMP
  Rewriting Movie
  Rewriting MovieHeader
  Rewriting Track
  Rewriting TrackHeader
  Rewriting Media
  Rewriting MediaHeader
  Rewriting MediaInfo
  Rewriting DataInfo
  Rewriting DataRef
  Rewriting SampleTable
  Rewriting Track
  Rewriting TrackHeader
  Rewriting Media
  Rewriting MediaHeader
  Rewriting MediaInfo
  Rewriting DataInfo
  Rewriting DataRef
  Rewriting SampleTable
  Creating UserData
  Creating XMP
    + XMP-tiff:Make = 'Canon'
    + XMP-tiff:Model = 'Canon IXUS 185 '
    + UserData:Make = 'Canon'
    + UserData:Model = 'Canon IXUS 185 '
    1 image files updated


Thanks!
Title: Re: Copy makernotes from mov files
Post by: StarGeek on June 01, 2021, 05:08:28 PM
Makernotes are contained in the EXIF block but the problem is that the video standards don't allow for an EXIF block.  That doesn't stop the camera companies from forcing it into the file.  But since it's non-standard, exiftool can't embed this data.
Title: Re: Copy makernotes from mov files
Post by: emes on June 01, 2021, 06:12:06 PM
Thanks. Is there anyway around that? Does adding an EXIF to a .mov require special handling or it's just that exiftool will block the writing, and I could turn that off in the source code.
Title: Re: Copy makernotes from mov files
Post by: StarGeek on June 01, 2021, 06:19:43 PM
I know of no program that will copy EXIF or MakerNotes in video files.  It's not exiftool blocking anything, it's just doesn't know how to write it because there's no standard to follow to embed it.

I suspect that different cameras probably embeds the data in different ways, but that's just my guess.
Title: Re: Copy makernotes from mov files
Post by: Phil Harvey on June 01, 2021, 07:23:09 PM
Quote from: StarGeek on June 01, 2021, 06:19:43 PM
I suspect that different cameras probably embeds the data in different ways, but that's just my guess.

Exactly.
Title: Re: Copy makernotes from mov files
Post by: emes on June 02, 2021, 02:32:28 AM
Ideally, exiftool could just follow the layout used by the source file and duplicate it in the target file, but I can see how that could get complicated fast.