Warning: Unrecognized SingleShotMeta

Started by JlrJlr, August 19, 2024, 10:23:37 AM

Previous topic - Next topic

JlrJlr

Hi,

I am usingExifTool to write $filename in tag CopyrightNotice

exiftool  -v3 -P -r -m -overwrite_original  "-IPTC:CopyrightNotice<Originale : $filename" -ext jpg   20240814_111037.jpg"

All files are written as expected but, in addition, a warning is displayed for a few

Warning: Unrecognized SingleShotMeta data - ... /ExifTool/20240814_111037.jpg

note that if no tag value is used, such as "-IPTC:CopyrightNotice=Originale : pure text", the warning does not show.

I have 2 questions:

-What is wrong with the file ?

-Why the control "-m" seems to be ignored ?


Exiftool Version
ExifTool version 12.92
Perl version 5.032001 (-C0)
Platform: MSWin32
Optional libraries:
  Archive::Zip                 1.68
  Compress::Zlib               2.1
  Digest::MD5                  2.58
  Digest::SHA                  6.02
  IO::Compress::Bzip2          2.100
  Time::Piece                  1.3401
  Time::Local                  1.30
  Unicode::LineBreak           2019.001
  Compress::Raw::Lzma          2.1
  IO::Compress::RawDeflate     2.100
  IO::Uncompress::RawInflate   2.100
  IO::Compress::Brotli         0.004001
  IO::Uncompress::Brotli       0.004001
  Win32::API                   0.84
  Win32::FindFile              0.15
  Win32API::File               0.1203_01
Include directories:
  C:\Users\Utilisation\Documents\Progs\ExifTool\exiftool_files/lib
  C:/Users/Utilisation/Documents/Progs/ExifTool/exiftool_files/lib

Log V3
exiftool  -v3 -P -r -m -overwrite_original  "-IPTC:CopyrightNotice<Originale : $filename" -ext jpg   -charset filename=utf8  "C:\Users\Utilisation\Documents\Progs\ExifTool\20240814_111037.jpg"

======== C:/Users/Utilisation/Documents/Progs/ExifTool/20240814_111037.jpg
Setting new values from C:/Users/Utilisation/Documents/Progs/ExifTool/20240814_111037.jpg
Writing IPTC:CopyrightNotice
Warning: Unrecognized SingleShotMeta data - C:/Users/Utilisation/Documents/Progs/ExifTool/20240814_111037.jpg
Rewriting C:/Users/Utilisation/Documents/Progs/ExifTool/20240814_111037.jpg...
  Editing tags in: APP13 IPTC Photoshop
  Creating tags in: APP13 IPTC Photoshop
JPEG APP1 (41774 bytes)
JPEG APP13 (78 bytes)
  Rewriting Photoshop
  Rewriting IPTC
    - IPTC:CopyrightNotice = 'Originale : 20240814_111037.jpg'
    + IPTC:CopyrightNotice = 'Originale : 20240814_111037.jpg'
JPEG APP1 (54733 bytes)
JPEG APP1 (65533 bytes)
JPEG APP1 (65533 bytes)
JPEG APP1 (65533 bytes)
...
JPEG APP1 (65533 bytes)
JPEG APP1 (18679 bytes)
JPEG DQT (65 bytes)
JPEG DQT (65 bytes)
JPEG SOF0:
JPEG DHT (29 bytes)
JPEG DHT (179 bytes)
JPEG DHT (29 bytes)
JPEG DHT (179 bytes)
JPEG SOS
Writing Samsung trailer (188 bytes)
  Preserving unknown trailer (6023 bytes)
    1 image files updated

File tags (extract)
exiftool -args -a -G1 -g1 -s  -all:all

-ExifTool:ExifToolVersion=12.92
-System:FileName=20240814_111037.jpg
-System:Directory=C:/Users/Utilisation/Documents/Progs/ExifTool

....
-IPTC:By-line=JLR
-IPTC:CopyrightNotice=Originale : 20240814_111037.jpg
-IPTC:ApplicationRecordVersion=4
....
-Samsung:EmbeddedImageName=SingleShot
-Samsung:EmbeddedImage=(Binary data 5 bytes, use -b option to extract)
-Samsung:SingleShotDepthMap=(Binary data 5 bytes, use -b option to extract)
-Samsung:TimeStamp=0000:00:00 00:00:00
-ExifTool:Warning=Unrecognized SingleShotMeta data
...

This behavior does not prevent me to do what I need. I report this only to help fixing Exiftool glitch, if any.

Phil Harvey

The warning only shows if you copy tags from file because otherwise ExifTool doesn't try to read the SingleShotMeta information.

If you can send me a sample image (philharvey66 at gmail.com) I will take a look to see what the problem is with the SingleShotMeta decoding.

This is not a minor warning, so -m doesn't apply.  Perhaps I should make it a minor warning.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

StarGeek

(I'm too slow, but posting anyway. If there's in differences between the two posts, obviously Phil's post take priority)

Quote from: JlrJlr on August 19, 2024, 10:23:37 AM-What is wrong with the file ?

There's nothing wrong with the file. As the warning says, the Samsung SingleShotMeta is unrecognized.

Some Samsung devices save their MakerNotes at the very end of the file, as a trailer. And MakerNotes in general are poorly documented, as the camera companies don't share what they are doing in them.

This warning is simply saying that some of the Samsung trailer data is either new, undecoded, or it might have been corrupted if some program has edited the file and didn't properly deal with the trailer. You can ignore this warning

Quote-Why the control "-m" seems to be ignored ?

The -m (-ignoreMinorErrors) option only, as it says, ignores minor errors. From the docs
QuoteMinor errors and warnings are indicated by "[minor]" at the start of the message.

This is not a minor warning, but it isn't a problem unless you are editing the Samsung MakerNotes or using a program that needs that data. But there really aren't any programs other than exiftool that will read this data.

You can suppress this warning using the -api NoWarning option
-api NoWarning "Unrecognized SingleShotMeta data"
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

I got the sample.  The SingleShotMeta data in this image is the string "BOKEH_INFO", which is different from the structure written by other Samsung cameras.  I will make this a minor warning so it may be ignored with -m.

Is this a pre-production camera, or was this metadata edited by some other software?  Other structures seem to be similarly filled with dummy data (EmbeddedImage is the string "BOKEH", SingleShotDepthMap is the string "DEPTH", and TimeStamp is the string "DATA").

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

JlrJlr

The file was shot on a Samsung Galaxy A22 with the Samsung app "Photo" version 13.
What is special is that the photo was shot during a video recording.

I have been using the phone for several years but I discovered recently the possibility to take snapshot of the video while recording.

Make a minor Warning is perfect for me.

JlrJlr


With V 12.93 this warning is [minor]

Thanks Phil