ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: otown on August 30, 2011, 02:58:23 PM

Title: MTS File Metadata Support
Post by: otown on August 30, 2011, 02:58:23 PM
Any idea when we'll be able to modify metadata in MTS files?

thx...
Title: Re: MTS File Metadata Support
Post by: Phil Harvey on August 31, 2011, 07:10:48 AM
I'm sorry to say that I doubt ExifTool will ever have the ability to write these files.  See this commentary (https://exiftool.org/commentary.html#AVCHD) for a few reasons why this format is at the bottom of my list.

- Phil
Title: Re: MTS File Metadata Support
Post by: camera_stephen on January 11, 2021, 06:10:58 PM
Hi Phil,

Cameras like my Sony RX100 and RX100 IV produce only MTS files for higher quality video output so I've now got a huge number that are a nightmare to manage due to the metadata.

I was wondering what would you recommend as a workflow for managing MTS files metadata given all the limitations of the format? The MTS files play fine on all the devices I use, but metadata is inconsistent and some have time offsets/errors that I can't correct with ExifTool. Any tips for wrapping the original MTS in a lossless way to allow sensible metadata to be copied into the new file and then manipulated as needed by ExifTool?

Many thanks,

Stephen
Title: Re: MTS File Metadata Support
Post by: Phil Harvey on January 11, 2021, 06:33:47 PM
There is probably a way to losslessly convert M2TS to MP4, but I don't know how.  I would recommend doing that.  M2TS does not support any metadata.

- Phil
Title: Re: MTS File Metadata Support
Post by: StarGeek on January 11, 2021, 07:38:30 PM
I did some searching around and it looks like it might be possible to losslessly convert it to mp4 with ffmpeg.  Try a command like this
ffmpeg -i movie.M2TS -vcodec copy -acodec copy out.mp4

There were a lot of links for an Apple script that would do this, but unfortunately they're all dead.
Title: Re: MTS File Metadata Support
Post by: camera_stephen on January 13, 2021, 03:43:54 AM
Thank you - let me investigate and will report back.