ExifTool Forum

ExifTool => The "exiftool" Application => Topic started by: redclawkefar on November 03, 2011, 06:16:24 PM

Title: mts to jpg stills using exiftool....
Post by: redclawkefar on November 03, 2011, 06:16:24 PM
so, i was wondering, and forgive me if this has been posted before, can the exiftool convert an MTS video file to jpg's and each jpg have the exif information embedded?

from what i've read so far, it sounds like it should be able to do it but i don't seem to get the right command-line arguments.

i'm using the windows cmd line version for eventual batch processing.

thanks for any input.
mark
Title: Re: mts to jpg stills using exiftool....
Post by: Phil Harvey on November 03, 2011, 09:26:38 PM
Hi Mark,

No.  ExifTool doesn't do any image manipulation of any kind.  It operates on metadata only.  You can use it to transfer metadata from an MTS video to a JPG, but you can't create the JPG image.

- Phil
Title: Re: mts to jpg stills using exiftool....
Post by: redclawkefar on November 04, 2011, 04:18:09 PM
ahhh ok. now i got it.

so, i've refined my method... now i'm dumping the video file to jpg's and from there writing the meta data from the video files (mts etc).

it's not filling in all data but that's to be expected.

thanks for the help.
m
Title: Re: mts to jpg stills using exiftool....
Post by: Chris75 on May 09, 2012, 07:23:22 AM
Dear both,

How is it possible to dump jpgs from the mts/avchd video via exiftool?

And how can I split the gps logfile from the video?
For this I have tried the following commands but it didn't work.
exiftool -ee -p '$gpslatitude, $gpslongitude, $gpstimestamp, $DateTimeOriginal' 00000.MTS
exiftool -ee -p '$gpslatitude, $gpslongitude, $gpstimestamp, $DateTimeOriginal' 00000.MTS 2>&1 | tee 00000.MTS.info

Any idea on this?

Thanks & best regards,
Chris
Title: Re: mts to jpg stills using exiftool....
Post by: Phil Harvey on May 09, 2012, 08:00:39 AM
Hi Chris,

ExifTool can not generate JPEG images from MTS video.  You need another tool to do this.

Your command should work if the MTS video has GPS embedded in the MDPM section of the H264 video:

> exiftool -ee -p '$gpslatitude, $gpslongitude, $gpstimestamp, $DateTimeOriginal' ../pics/SonyDSC-HX7V.mts
34.950216 N, 136.819428 E, 05:38:09, 2011:02:03 14:38:51+09:00
34.950216 N, 136.819428 E, 05:38:09, 2011:02:03 14:38:51+09:00
34.950216 N, 136.819428 E, 05:38:09, 2011:02:03 14:38:52+09:00


- Phil
Title: Re: mts to jpg stills using exiftool....
Post by: Chris75 on May 09, 2012, 08:58:03 AM
Hi Phil,

Thanks for prompt reply and info. Now I've understood the whole post and functionality.

Cheers,
Chris
Title: Re: mts to jpg stills using exiftool....
Post by: Chris75 on May 09, 2012, 09:17:38 AM
Hi Phil,

I have one additional question...
What's the easiest way to write these coordinates into a gpx or nmea file?

Thanks,
Chris
Title: Re: mts to jpg stills using exiftool....
Post by: Phil Harvey on May 09, 2012, 10:52:12 AM
Hi Chris,

See the reverse geotagging (https://exiftool.org/geotag.html#Reverse) section of the Geotag documentation for examples of creating a GPX file.

- Phil