Copying Dates from .MTS to .mp4

Started by newt, January 28, 2019, 07:00:44 PM

Previous topic - Next topic

newt

Hi everyone,

This is probably a really simple problem, but I haven't come across the solution yet so would appreciate any help.

I am wanting to copy all the exif data from a .MTS (video) file to a .mp4 file. So I try the following:
exiftool -tagsFromFile "00197.MTS" -time:all "00197.mp4"

Which gives me a warning, but says it worked:

Warning: [minor] The ExtractEmbedded option may find more tags in the video data - 00197.MTS
    1 image files updated


But then I check the attributes of the .mp4 file:

exiftool 00197.mp4
...
File Modification Date/Time     : 2019:01:28 15:46:17-08:00
File Access Date/Time           : 2019:01:28 15:46:17-08:00
File Inode Change Date/Time     : 2019:01:28 15:46:17-08:00
...

# whereas .MTS is

exiftool 00197.MTS
...
File Modification Date/Time     : 2013:08:25 13:17:12-07:00
File Access Date/Time           : 2019:01:28 15:29:31-08:00
File Inode Change Date/Time     : 2018:09:14 09:35:16-07:00
...


So you can see that the times are not being copied over. (and the current time is being put there)
What am I doing wrong?

Thank you  :)

StarGeek

The file system dates are marked as Unsafe for general purpose copying and must be explicitly copied with -FileModifyDate -FileCreateDateFileAccessDate cannot be copied, but I believe it will be set to the same time as FileCreateDate.  It's pretty much a useless timestamp anyway.

The warning can be safely ignore.  It's just letting you there might be more data embedded in the video stream. You can use the -m (ignoreMinorErrors) option to suppress it if desired.
* 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).

newt


Dunlop

#3
Thank you for sharing this, It will surely help a lot. Had problems with this my self. Last week I tried to create something like a converter [possible spam URL removed]. Converting MTS to MP4 was no easy job for me. Luckily I found this post to explain it a little better. Thank you again

PH Edit: Removed possible spam URL.