warning: PrintConv Fnumber: Argument "undef" isn't numeric in sprintf on .MOV's

Started by Owen Townsend, January 15, 2022, 08:56:57 PM

Previous topic - Next topic

Owen Townsend

warning: Print Conv Fnumber: Argument "undef" isn't numeric in sprintf (on .MOV's)
=============================================
exiftool -f -p '$filename $CreateDate' directory   
=============================
- works OK (gets the date/time) for all of jpg avi mp4,& MOV
- But MOV gives warning (above)
- anybody know what causes this & how to suppress the warning ?
Thanks, Owen

StarGeek

What version exiftool?  What Operating system?  Does the MOV file still output the Filename and CreateDate?

Can you share the file that throws that error?

I can't reproduce it here after I tested that command on over 650 Mov files.
"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

Hi Owen,

It sounds like there is a problem with the value of this tag stored in the file.  FNumber is typically a rational, and to get this warning both the numerator and denominator are likely zero.  You can look at the raw values in the -v3 output.  However, I can't reproduce this warning with the current version of ExifTool.  The PrintConv should first check for a valid value, but there are more than 50 FNumber tags, and I don't know exactly which one we are dealing with here.  If you can't upload a sample somewhere, could you post the -v3 output?

- 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 ($).

Owen Townsend

Exiftool Bug Report - MOVundefWarnings.v3log
- from Owen Townsend, owen@uvsoftware.ca, Jan16/2022
- running exiftool 11.88 on Ubuntu 20.04
- getting "undef"  Warnings on .MOV files, but CreateDate is extracted OK

exiftool -v3 -f -p '$filename $CreateDate' directory
====================================================
- log captured & uploaded to ExifTool Forum with filename "MOVundefWarnings.v3log"
- will also upload the 2 files "mvi_1851.mov" & "p6050035.mov"

Here are the Warnings extracted from log below with approx line#s prefixed

1150 | | |    10dd2: 00 00 00 00 24 64 69 6e 66 00\
     Warning: ValueConv ShutterSpeedValue: Argument "-undef" isn't numeric in exponentiation (**) - testundef/mvi_1851.mov

1270 Warning = ValueConv ShutterSpeedValue: Argument "-undef" isn't numeric in exponentiat[snip]
     Warning = ValueConv ShutterSpeedValue: Argument "-undef" isn't numeric in exponentiat[snip]
     Warning = PrintConv ExposureTime: Argument "undef" isn't numeric in numeric lt (<)
     Warning = PrintConv ShutterSpeed: Argument "undef" isn't numeric in numeric lt (<)
     mvi_1851.mov 2017:08:16 20:24:19

1745 | | | |   1b4ce2: 00 00 00 00 00 00 00 00 00 01 00 08 0\
     Warning: PrintConv FNumber: Argument "undef" isn't numeric in sprintf - testundef/p6050035.mov

1830 Warning = PrintConv FNumber: Argument "undef" isn't numeric in sprintf
     Warning = PrintConv FNumber: Argument "undef" isn't numeric in sprintf
     p6050035.mov 2007:06:05 15:45:39

Note - tried to attac the 2 .MOV files, but got error "attachment too big, max 10,240"

Phil Harvey

Could you upload the file somewhere or email it to me?  (philharvey66 at gmail.com)

- 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

Quote from: Owen Townsend on January 16, 2022, 04:27:13 PM
- running exiftool 11.88 on Ubuntu 20.04

Have you tried updating exiftool?  That version is nearly 2 years old and there have been 50 updates since then.
"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

Owen Townsend

Phil:
You can login to 1 of my websites & download the 2 .mov files (mvi_1851.mov & p6050035.mov) as follows
sftp ********
password --> ********
cd ExifTestFiles
get mvi_1851.mov
get p6050035.mov
exit
-------------------------------
StarGeek: re update to latest version
- think I'll wait til phil looks at the 2 test .mov's just uploaded
- when would the version be update for Ubuntu apt install ?
Thanks, Owen

PH Edit: Removed login info

StarGeek

There is no problem with those files using version 12.39.

Output without the -v3 option.
C:\>exiftool -f -p "$filename $CreateDate" Y:\temp\a
mvi_1851.mov 2017:08:16 20:24:19
p6050035.mov 2007:06:05 15:45:39
    1 directories scanned
    2 image files read

C:\>exiftool -G1 -a -s -warning -validate Y:\temp\a
======== Y:/temp/a/mvi_1851.mov
[ExifTool]      Warning                         : [minor] Non-standard EXIF at MOV-Movie-UserData-CanonCNTH-JPEG-APP1-IFD0
[ExifTool]      Warning                         : [minor] Undefined value for ExifIFD:ExposureTime
[ExifTool]      Warning                         : [minor] Undefined value for ExifIFD:FNumber
[ExifTool]      Warning                         : [minor] Undefined value for ExifIFD:ShutterSpeedValue
[ExifTool]      Validate                        : 4 Warnings (all minor)
======== Y:/temp/a/p6050035.mov
[ExifTool]      Warning                         : [minor] Undefined value for OlympusTags1:FNumber
[ExifTool]      Validate                        : 1 Warning (minor)
    1 directories scanned
    2 image files read


Adding -v3 adds more output but doesn't show warning: Print Conv
"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 get the warning using the command you gave.

OK, we're talking about the Olympus Tags and the EXIF tags from a Canon ThumbnailImage.

These warnings are informative, but perhaps unnecessary.  I will patch the next version to avoid them.

- 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

"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

Owen Townsend

Phil:
OK, Thanks very much for your help
No rush for the fix, current version OK for now
Do you know how often Ubuntu apt install would update ?

StarGeek:
And Thanks very much for your inputs
- not sure version 12.39 would make any difference to my current uses
- may wait until Ubuntu update their repositories ?
Can close this bug report
Owen

Phil Harvey

Hi Owen,

Quote from: Owen Townsend on January 19, 2022, 04:22:18 PM
Do you know how often Ubuntu apt install would update ?

I have nothing to do with any ExifTool packages other than those downloadable from the ExifTool home page.

- 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 ($).

Owen Townsend

Phil:
I am currently OK with the 11.88 version & will update from Exiftool home when I need to
Thanks so much for your help
Owen