Main Menu

Recent posts

#1
This is great, thanks!  I've been quite busy recently but I'll add these when I get a chance.

- Phil
#2
Hello,

Thank you both guys for your answers, very useful.
So what does it change when there is a [DaylightSavingTime] like in my recent Canon camera? Is the timezone still useful? Or should the timezone be edited in consequence (like if the DST is ON, retrieve one hour on the UTC tag or not?)


Indeed, I tried to use this command that I remember having noted some time ago but it didn't work for videos taken by Canon 600D. I was hoping I could solve the issue otherwise.
When passing the 3 commands (extract, write, insert), there is "1 file updated" displayed but the time without the timezone in ExifIFD.
Here is the info. Maybe you will find why the Canon Thumbnail cannot be written.

Desktop % exiftool 20180802_130814.MOV

ExifTool Version Number         : 12.65
File Name                       : 20180802_130814.MOV
Directory                       : .
File Size                       : 198 MB
File Modification Date/Time     : 2024:05:23 01:09:54+02:00
File Access Date/Time           : 2024:05:24 21:42:00+02:00
File Inode Change Date/Time     : 2024:05:24 21:42:21+02:00
File Permissions                : -rwxrwxrwx
File Type                       : MOV
File Type Extension             : mov
MIME Type                       : video/quicktime
Major Brand                     : Apple QuickTime (.MOV/QT)
Minor Version                   : 2007.9.0
Compatible Brands               : qt  , CAEP
Compressor Version              : CanonAVC0005
Exif Byte Order                 : Little-endian (Intel, II)
Make                            : Canon
Camera Model Name               : Canon EOS 600D
Orientation                     : Horizontal (normal)
Resolution Unit                 : inches
Artist                          :
Y Cb Cr Positioning             : Co-sited
Copyright                       :
Exposure Time                   : undef
F Number                        : undef
Exposure Program                : Program AE
Sensitivity Type                : Recommended Exposure Index
Recommended Exposure Index      : 0
Exif Version                    : 0230
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 0
Aperture Value                  : 16.0
Flash                           : Off, Did not fire
Focal Length                    : 200.0 mm
Macro Mode                      : Normal
Self Timer                      : Off
Quality                         : n/a
Canon Flash Mode                : n/a
Continuous Drive                : Movie
Focus Mode                      : Manual Focus (3)
Record Mode                     : MOV
Canon Image Size                : 1920x1080 Movie
Easy Mode                       : Manual
Digital Zoom                    : None
Contrast                        : Normal
Saturation                      : Normal
Camera ISO                      : Auto
Metering Mode                   : Center-weighted average
Focus Range                     : Not Known
Canon Exposure Mode             : Program AE
Lens Type                       : Canon EF-S 18-200mm f/3.5-5.6 IS
Max Focal Length                : 200 mm
Min Focal Length                : 18 mm
Focal Units                     : 1/mm
Max Aperture                    : 5.7
Min Aperture                    : 36
Flash Activity                  : 0
Flash Bits                      : (none)
Zoom Source Width               : 0
Zoom Target Width               : 0
Manual Flash Output             : n/a
Color Tone                      : Normal
Auto ISO                        : 100
Measured EV                     : 11.38
Target Exposure Time            : 1
Exposure Compensation           : 0
White Balance                   : Auto
Slow Shutter                    : None
Shot Number In Continuous Burst : 0
Optical Zoom Code               : n/a
Camera Temperature              : 24 C
Flash Guide Number              : 0
Flash Exposure Compensation     : 0
Auto Exposure Bracketing        : Off
AEB Bracket Value               : 0
Control Mode                    : Camera Local Control
Measured EV 2                   : 11.375
Bulb Duration                   : 0
Camera Type                     : EOS High-end
ND Filter                       : n/a
Canon Image Type                : MVI:Canon EOS 600D
Canon Firmware Version          : Firmware Version 1.0.2
Canon Model ID                  : EOS Rebel T3i / 600D / Kiss X5
Frame Count                     : 845
Frame Rate                      : 25
Audio Bitrate                   : 1.54 Mbps
Video Codec                     : avc1
Thumbnail Image Valid Area      : 0 159 15 104
Bracket Mode                    : Off
Bracket Value                   : 0
Bracket Shot Number             : 0
Raw Jpg Size                    : Large
Long Exposure Noise Reduction 2 : Off
WB Bracket Mode                 : Off
WB Bracket Value AB             : 0
WB Bracket Value GM             : 0
Live View Shooting              : On
Focus Distance Upper            : 4.5 m
Focus Distance Lower            : 3.85 m
Shutter Mode                    : Mechanical
Flash Exposure Lock             : Off
Internal Serial Number          : ZC0069399
Crop Left Margin                : 0
Crop Right Margin               : 0
Crop Top Margin                 : 0
Crop Bottom Margin              : 0
Exposure Level Increments       : 1/3 Stop
ISO Expansion                   : Off
Flash Sync Speed Av             : Auto
Long Exposure Noise Reduction   : Off
High ISO Noise Reduction        : Standard
Highlight Tone Priority         : Enable
AF Assist Beam                  : Emits
Mirror Lockup                   : Disable
Shutter-AE Lock                 : AF/AE lock
Set Button When Shooting        : Normal (disabled)
LCD Display At Power On         : Display
Add Original Decision Data      : Off
Aspect Ratio                    : 3:2
Cropped Image Width             : 2592
Cropped Image Height            : 1728
Cropped Image Left              : 0
Cropped Image Top               : 0
Tone Curve                      : Standard
Sharpness                       : 3
Sharpness Frequency             : n/a
Sensor Red Level                : 0
Sensor Blue Level               : 0
White Balance Red               : 0
White Balance Blue              : 0
Color Temperature               : 5200
Picture Style                   : Auto
Digital Gain                    : 0
WB Shift AB                     : 0
WB Shift GM                     : 0
VRD Offset                      : 0
Sensor Width                    : 5344
Sensor Height                   : 3516
Sensor Left Border              : 152
Sensor Top Border               : 56
Sensor Right Border             : 5335
Sensor Bottom Border            : 3511
Black Mask Left Border          : 0
Black Mask Top Border           : 0
Black Mask Right Border         : 0
Black Mask Bottom Border        : 0
Picture Style User Def          : Auto; Auto; Auto
Picture Style PC                : None; None; None
Custom Picture Style File Name  :
Peripheral Illumination Corr    : Off
Auto Lighting Optimizer         : Off
User Comment                    :
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 160
Exif Image Height               : 120
Interoperability Index          : THM - DCF thumbnail file
Interoperability Version        : 0100
Related Image Width             : 1920
Related Image Height            : 1080
Focal Plane X Resolution        : 176.7955801
Focal Plane Y Resolution        : 201.6806723
Focal Plane Resolution Unit     : inches
Custom Rendered                 : Normal
Exposure Mode                   : Auto
Scene Capture Type              : Standard
Owner Name                      :
Serial Number                   : 143066001887
Lens Info                       : 18-200mm f/?
Lens Model                      : EF-S18-200mm f/3.5-5.6 IS
Lens Serial Number              : 0000494c79
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:2 (2 1)
Thumbnail Image                 : (Binary data 22915 bytes, use -b option to extract)
XMP Toolkit                     : XMP Core 6.0.0
Date/Time Original              : 2018:08:02 13:08:14-06:00
Movie Header Version            : 0
Create Date                     : 2018:08:02 19:08:14
Modify Date                     : 2018:08:02 19:08:14
Time Scale                      : 25000
Duration                        : 0:00:34
Preferred Rate                  : 1
Preferred Volume                : 100.00%
Preview Time                    : 0 s
Preview Duration                : 0 s
Poster Time                     : 0 s
Selection Time                  : 0 s
Selection Duration              : 0 s
Current Time                    : 0 s
Next Track ID                   : 3
Track Header Version            : 0
Track Create Date               : 2018:08:02 19:08:14
Track Modify Date               : 2018:08:02 19:08:14
Track ID                        : 1
Track Duration                  : 0:00:34
Track Layer                     : 0
Track Volume                    : 0.00%
Image Width                     : 1920
Image Height                    : 1080
Graphics Mode                   : srcCopy
Op Color                        : 0 0 0
Compressor ID                   : avc1
Source Image Width              : 1920
Source Image Height             : 1080
X Resolution                    : 72
Y Resolution                    : 72
Bit Depth                       : 24
Video Frame Rate                : 25
Matrix Structure                : 1 0 0 0 1 0 0 0 1
Media Header Version            : 0
Media Create Date               : 2018:08:02 19:08:14
Media Modify Date               : 2018:08:02 19:08:14
Media Time Scale                : 48000
Media Duration                  : 0:00:34
Balance                         : 0
Handler Class                   : Data Handler
Audio Format                    : sowt
Audio Bits Per Sample           : 16
Audio Sample Rate               : 48000
Layout Flags                    : Stereo
Audio Channels                  : 2
Handler Type                    : Metadata Tags
Creation Date                   : 2018:08:02 13:08:14-06:00
GPS Coordinates                 : 27 deg 11' 23.32" S, 109 deg 26' 32.17" W, 289.2 m Above Sea Level
User Rating                     : 0
Media Data Size                 : 197778576
Media Data Offset               : 104121
Drive Mode                      : Continuous Shooting
Lens                            : 18.0 - 200.0 mm
Shooting Mode                   : Program AE
Aperture                        : undef
Image Size                      : 1920x1080
Lens ID                         : Canon EF-S 18-200mm f/3.5-5.6 IS
Megapixels                      : 2.1
Scale Factor To 35 mm Equivalent: 1.6
Shutter Speed                   : undef
Avg Bitrate                     : 46.8 Mbps
GPS Altitude                    : 289.2 m
GPS Altitude Ref                : Above Sea Level
GPS Latitude                    : 27 deg 11' 23.32" S
GPS Longitude                   : 109 deg 26' 32.17" W
Rotation                        : 0
Lens                            : 18.0 - 200.0 mm (35 mm equivalent: 28.3 - 314.6 mm)
Circle Of Confusion             : 0.019 mm
Depth Of Field                  : 0.00 m (4.17 - 4.17 m)
Field Of View                   : 6.6 deg
Focal Length                    : 200.0 mm (35 mm equivalent: 314.6 mm)
GPS Position                    : 27 deg 11' 23.32" S, 109 deg 26' 32.17" W
Hyperfocal Distance             : Inf m


XMP Toolkit                     : XMP Core 6.0.0 => I see this in every of my videos. Is there any way to delete this? The "delete XMP Tool" option on GraphicConverter 12 does not work for this one (the "Delete every writable XMP tag/"Delete all XMP except IPTC" option doesn't work either)
Date/Time Original              : 2018:08:02 13:08:14-06:00
Movie Header Version            : 0
Create Date                     : 2018:08:02 19:08:14
Modify Date                     : 2018:08:02 19:08:14
=> There is no timezone, only the UTC time. I guess I'll have to let it as is, as Matti said, Exif is not standard in videos so this "UTC" time (instead of local here?) should not be a problem. I just wanted to know if that UTC time here in [ExifIFD] was non standard too? I am asking this question because on my most recent Canon camera, there is the timezone in this ExifIFD in case no [Keys] comes to override the whole thing. Should I rather delete only those 2 lines with a command in my 600D, or not according to you? Thank you!



Lastly, I wanted to know if that "use -b option to extract..." I see everywhere was stored in the file metadata. And how to get rid of this if it is? Isn't this something that creates useless bytes into an image? Thank you very much for your answer

Have a nice evening,
#3
Newbies / Re: Use subtitle info to popul...
Last post by StarGeek - Today at 03:47:42 PM
If I recall correctly, exiftool can read the subtitle stream for GPS data in certain files. Run exiftool on the file with the -ee (-extractEmbedded) option and see if GPS data shows up. If so, create a GPS track using the instructions under Inverse Geotagging.

At that point, your only problem is getting the correct timing information into the extracted frames.
#4
Use the -n option and you'll see all available digits of precision.

- Phil
#5
You'll have to do this in 2 passes with 2 separate fmt files.  The first fmt file will contain the headers and WPT.  Then the second will contain the track points and the gpx trailer.  I can't be more specific at the moment, the the commands would be:

1. exiftool -p one.fmt DIR > out.gpx

2. exiftool -p two.fmt DIR >> out.gpx

- Phil
#6
Newbies / Re: XMP-dc: Subject
Last post by prestonmcafee - Today at 03:06:37 PM
First, worked a charm, THANK YOU!

Second, I plan to try pyexiftool but wanted to first ensure I could actually do something useful! :)
#7
Newbies / Re: XMP-dc: Subject
Last post by StarGeek - Today at 02:51:57 PM
On the command line
C:\>exiftool -P -overwrite_original -subject= Y:\!temp\x\66.jpg
Warning: [Minor] Improperly enclosed XMP property: x:xmpmeta/rdf:RDF/unnamed - Y:/!temp/x/66.jpg
    0 image files updated
    1 image files unchanged

Including the -m (-ignoreMinorErrors) option will probably fix it, but there's the possibility of losing some data.

Also, since you're planning on running it on such a large number of images, I would suggest using the PyExiftool wrapper. Running exiftool once for each file is Common Mistake #3 and can significantly increase the processing time, as exiftool's startup time is the biggest performance hit. PyExiftool keeps exiftool running in the background via the -stay_open option and avoids the startup performance hit.
#8
Newbies / Use subtitle info to populate ...
Last post by mcq - Today at 02:44:01 PM
I fly drones and the video records subtitle data that has time, latitude, longitude, elevation, and camera parameters.  I have need to grab video frames and populate the grabbed frames with the time, latitude, longitude, elevation, and camera parameters from the subtitle for the grabbed frame.

Is there a way of doing this?
#9
Newbies / XMP-dc: Subject
Last post by prestonmcafee - Today at 12:33:22 PM
I'm trying to erase a field XMP-dc: Subject.  The relevant section from the exiftool list:

---- XMP-dc ----
Subject                        : Toni, Zoe Phelps, Sophie
Title                          :
Description                    :

I'm running exiftool using python and the relevant piece is

keywords = ""
subject = ""
files = [docroot+'2005/Apr/66.jpg']
with exiftool.ExifToolHelper() as et:
    # Execute the exiftool
    et.execute(
        f'-EXIF:XPKeywords={keywords}',
        f'-XMP-dc:Subject=subject',
        f'-overwrite_original',
        *files
    )

The code eliminates XPKeywords successfully on jpgs that have that entry, which makes me think the problem is my target of XMP-dc:Subject, but I'm a newbie with exiftool.  I attach the original image and the exiftool output.  Once I learn how to do this, I will apply to 36K images as well as know more about exiftool.
#10
Quote from: wywh on Today at 07:57:17 AMFor a while I was confused to read that because many eastern countries like Japan do not use DST. But then it crossed my mind that you refer to the U.S. east. Doh!

Heh, sorry.  You used -05:00 in your example, so I was trying to indicate that time zone without reference to Standard or Daylight time.

Quote[rant]I wish DST was no longer used anywhere.

I'm with you.