Author Topic: EXIFTool  (Read 1787 times)

Hansi

  • Newbie
  • *
  • Posts: 3
  • Karma: +2/-0
    • View Profile
EXIFTool
« on: April 22, 2025, 03:58:45 pm »
Dear friends of OS/2,

although I'm watching OS2World for many years I now have my first question to you:

I'd like to use the EXIFTool on my ArcaOS 5.1.1 to read the recording dates out of the mp4 videos from my camera.
On hobbesarchive I found a WPI file with version 9.4.6 of the tool. However, it doesn't install successfully.
It says that "Paul Smedley\Perl\Base\5\8\8\0" is missing (see attached screenshot). After this window the installation terminates.

I do have standard Perl libraries installed on my system but I don't know (or find) the requested version.
There are some other versions of the EXIFTool on hobbesarchive but neither of them can handle mp4 videos.

Does anybody know what to do to run this specific version of the EXIFTool?

Thanks
Hansi

Pete

  • Hero Member
  • *****
  • Posts: 1405
  • Karma: +13/-0
    • View Profile
Re: EXIFTool
« Reply #1 on: April 22, 2025, 09:36:33 pm »
Hi Hansi

Looks like an older version of perl than is available via Arca Noae Package Manager (ANPM).

Looking at the Detail (long description) of ExifTool_Perl_9-46.wpi - https://hobbesarchive.com/?detail=/pub/os2/dev/proglang/perl/ExifTool_Perl_9-46.wpi - I see at the bottom
Requires:
Perl 5.8.8 (and above)...

I think I would try the current perl available via ANPM.


Regards

Pete

Lars

  • Hero Member
  • *****
  • Posts: 1428
  • Karma: +72/-0
    • View Profile
Re: EXIFTool
« Reply #2 on: April 23, 2025, 01:47:49 am »
As I mentioned elsewhere: the WPI package script needs rework to get rid of the dependency on the Perl WPI package as Perl is now delivered via YUM/RPM.
« Last Edit: April 23, 2025, 01:53:10 am by Lars »

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5368
  • Karma: +127/-1
    • View Profile
Re: EXIFTool
« Reply #3 on: April 23, 2025, 05:09:33 am »
As I mentioned elsewhere: the WPI package script needs rework to get rid of the dependency on the Perl WPI package as Perl is now delivered via YUM/RPM.

Looks more like it needs rebuilding with a PREFIX of /@unixroot/local which hopefully will work with Perl. Currently it installs all the pod etc files in $(Paul Smedley\base)\EXIFTOOL. Could install to the system Perl but not sure what would happen when Perl is updated, especially a major update. Generally a bad idea to mix other stuff in the default RPM directories.
I'm not up enough on my Warpin scripts to try to adjust the install script to /@unixroot/local, nor sure about where in local (is it possible?) to keep Perl happy and where the default would be.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5368
  • Karma: +127/-1
    • View Profile
Re: EXIFTool
« Reply #4 on: April 23, 2025, 05:37:03 am »
Thinking about it, you could probably install Paul's Perl 5.8.8 WPI carefully paying attention to whatever config.sys changes the package makes, install ExifTool_Perl then undo the config.sys changes and put those changes into the Program objects Environment tab. There's maybe a dozen Program Objects that would need the environment updated.
I think the only changes to config.sys that the perl package will make are to PATH, LIBPATH and adding SET PERLLIB_PREFIX. Backup config.sys before doing this. Use BEGINLIBPATH instead of LIBPATH and don't use the SET in the program object's ENVIRONMENT tab.
eg guessing, the environment tab should end up something like,
Code: [Select]
PATH=C:\Perl;$PATH%
BEGINLIBPATH=C:\PERL;C:\PERL\LIB
PERLIB_PREFIX=U:/PERL/LIB
Adjust to whatever gets written to config.sys
Wouldn't hurt to do a full backup first just in case.

Steven Levine

  • Jr. Member
  • **
  • Posts: 68
  • Karma: +12/-0
    • View Profile
Re: EXIFTool
« Reply #5 on: April 23, 2025, 07:07:04 am »
Hansi,

The ideas proposed by the others may get you where you want to go.  Depending on your skills, it should be possible to rework the .wis file to install the packages.  If it were me, I would extract the packages by hand using wic.exe and use the CREATEOBJECT statements in .wis file as a guide to creating the Desktop objects.

The package is rather old - circa 2014.  It's unknown how it compares to Phil Harvey's current version at https://exiftool.org.

It's appears that the library itself is still Perl, so it might be worthwhile to try to use the current sources.


Hansi

  • Newbie
  • *
  • Posts: 3
  • Karma: +2/-0
    • View Profile
Re: EXIFTool
« Reply #6 on: April 23, 2025, 09:38:40 am »
Hi,

thanks for all your suggestions so far.
I also guess, that the WPI tool only cares for other WPI installations, but not for RPM packages.
There are some Perl RPMs on my system, the one named "Perl" is on version 5.16.1-9.
Dave's suggestion to install Paul's Perl 5.8.8 WPI package was my first idea but it is not available (for me) anywhere.

So there seems no other way as to inspect the WPI package in its details, as Lars already suggested in the German OS/2 forum.
I'm not familiar with this and I will try to follow Steven's advice. This will take some time and whenever I succeed I will report it here.

Hansi




Pete

  • Hero Member
  • *****
  • Posts: 1405
  • Karma: +13/-0
    • View Profile
Re: EXIFTool
« Reply #7 on: April 23, 2025, 01:38:48 pm »
Hi Hansi

Have you asked Paul if he has a copy of the Perl 5.8.8 WPI package archived? - https://os2ports.smedley.id.au/?page_id=8


Regards

Pete

Lars

  • Hero Member
  • *****
  • Posts: 1428
  • Karma: +72/-0
    • View Profile
Re: EXIFTool
« Reply #8 on: April 23, 2025, 05:40:38 pm »
I think that would just ask for desaster if you already have Perl installed via YUM/RPM.

You would have an outdated Perl installed via WarpIn alongside an up-to-date installation via YUM/RPM without really knowing what is being used by the EXIF tool.

The best way would be to remove the idiotic dependency in the WIS script. Unfortunately, I have no time to do it and for the time being, Steve's suggestion is likely the way to go forward.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5256
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: EXIFTool
« Reply #9 on: April 23, 2025, 11:16:10 pm »
Hello

Sorry to confuse more the issue.
Are there two things, the ExifTool Perl Module, and the ExifTool command line tool? Does both belong to the same project?

Because "EXIFtool_2-2.zip" (2005) is from Marcel Mueller and it is a .exe binary with it's source code.
ExifTool Perl Module (ExifTool_Perl_9-46.wpi) (2014) I have no idea how to use it.

Regards
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5368
  • Karma: +127/-1
    • View Profile
Re: EXIFTool
« Reply #10 on: April 24, 2025, 04:22:03 am »
Hi,

thanks for all your suggestions so far.
I also guess, that the WPI tool only cares for other WPI installations, but not for RPM packages.
There are some Perl RPMs on my system, the one named "Perl" is on version 5.16.1-9.
Dave's suggestion to install Paul's Perl 5.8.8 WPI package was my first idea but it is not available (for me) anywhere.

So there seems no other way as to inspect the WPI package in its details, as Lars already suggested in the German OS/2 forum.
I'm not familiar with this and I will try to follow Steven's advice. This will take some time and whenever I succeed I will report it here.

Hansi

I downloaded https://exiftool.org/Image-ExifTool-13.27.tar.gz, it doesn't even need installed. You should install some other Perl packages, see the README, then open ANPM, go to the available packages, scroll down to perl and you should be able to guess which packages supply stuff, eg the 1st 2 requirements,
Code: [Select]
Archive::Zip         (ZIP, DOCX, PPTX, XLSX, ODP, ODS, ODT, EIP, iWork)
Compress::Zlib       (DNG, PNG, PDF, DCM, MIE and SWF files)
are covered by
Code: [Select]
perl-Archive-extract
perl-Archive-Tar
perl-Archive-Zip
Tar might not be needed but doesn't hurt to add. Not all packages are available, some don't make sense for us such as the Win32 ones.
To run, just prefix the command with perl, after going to the folder you extracted the package to, eg the example,
Code: [Select]
perl ./exiftool t/images/ExifTool.jpg
Note using slashes instead of backslashes and the beginning ./ just means the current directory.

As Steve mentioned, it wouldn't be hard to examine the wic from ExifTool_Perl_9-46.wpi to figure out the program files. To access the wic, you need to run wic.exe -X ExifTool_Perl_9-46.wpi. wic.exe should be in C:\sys\install\WARPIN, or whatever drive letter you installed to.
Also see https://exiftool.org/ for other cmd line options, just remember on OS/2 you need to prefix the command with perl or perl.exe


Dave Yeo

  • Hero Member
  • *****
  • Posts: 5368
  • Karma: +127/-1
    • View Profile
Re: EXIFTool
« Reply #11 on: April 24, 2025, 04:40:35 am »
Hello

Sorry to confuse more the issue.
Are there two things, the ExifTool Perl Module, and the ExifTool command line tool? Does both belong to the same project?

Because "EXIFtool_2-2.zip" (2005) is from Marcel Mueller and it is a .exe binary with it's source code.
ExifTool Perl Module (ExifTool_Perl_9-46.wpi) (2014) I have no idea how to use it.

Regards

It appears at some point it was ported to perl. Good idea as it is portable. even without installing or running "perl Makefile.PL" then make, make install. Easy to use, go to where you untarred it and run "perl exiftool" with parameters. Installing would probably make the man pages available.

Hansi

  • Newbie
  • *
  • Posts: 3
  • Karma: +2/-0
    • View Profile
Re: EXIFTool
« Reply #12 on: April 24, 2025, 04:17:31 pm »
Hello,

Quote
Because "EXIFtool_2-2.zip" (2005) is from Marcel Mueller and it is a .exe binary with it's source code.
ExifTool Perl Module (ExifTool_Perl_9-46.wpi) (2014) I have no idea how to use it.
Martin, according to its description this version from Marcel Mueller doesn't handle mp4 videos which is my basic intention.

Quote
I downloaded https://exiftool.org/Image-ExifTool-13.27.tar.gz, it doesn't even need installed. You should install some other Perl packages, see the README, then open ANPM, go to the available packages, scroll down to perl and you should be able to guess which packages supply stuff, eg the 1st 2 requirements,
Dave, thank you very much for this possibility.
I alread made a quickcheck and could successfully read the recording date of one of my mp4 videos. So it does what I want by using an up to date Perl installation :) :) :) and I don't need to worry further about the 9-46 WPI package any longer.

Background of my question is to treat the videos of my camera in a similar way as my jpg photos.
I have a REXX procedure which renames my photos in a sequence which follows the shooting timestamp of them.
PMView can easily set the file timestamp to the shooting timestamp in the EXIF data. So I don't have to care about the timestamps when the jpgs are written to my PC or when I have worked on them. Of course, PMView doesn't care for videos.
That is where the EXIFTool comes in. I now can read out the recording dates of my mp4s and I'm planning to use touch.exe to set the file date(s) accordingly.

Thanks Dave as well for your Dooble translations and all of you for your responses in this matter.

Hansi.

David Graser

  • Hero Member
  • *****
  • Posts: 975
  • Karma: +110/-0
    • View Profile
Re: EXIFTool
« Reply #13 on: April 24, 2025, 09:06:16 pm »
Hi,

thanks for all your suggestions so far.
I also guess, that the WPI tool only cares for other WPI installations, but not for RPM packages.
There are some Perl RPMs on my system, the one named "Perl" is on version 5.16.1-9.
Dave's suggestion to install Paul's Perl 5.8.8 WPI package was my first idea but it is not available (for me) anywhere.

So there seems no other way as to inspect the WPI package in its details, as Lars already suggested in the German OS/2 forum.
I'm not familiar with this and I will try to follow Steven's advice. This will take some time and whenever I succeed I will report it here.

Hansi

There is a way to inspect wpi packages.  Works great.  The wpi is below.

There is an update  to the exe at Hobbes. With the latest exe file, you can also view wpi in their exe form also.

As you can see from the pic below, you can view the files in the wpi, install or extract the files, view the script, the setting found in the script, and info about the wpi.

http://hobbesarchive.com/?dir=%2F&stype=all&sort=type_name&search=wpiview&submit=Search
« Last Edit: April 24, 2025, 09:23:47 pm by David Graser »

Pete

  • Hero Member
  • *****
  • Posts: 1405
  • Karma: +13/-0
    • View Profile
Re: EXIFTool
« Reply #14 on: April 24, 2025, 11:51:54 pm »
Hi David

WPIView 1.1.0 is not found on hobbesarchive.

Can be found on FilePile https://www.os2site.com/sw/util/installers/wpiview110.zip


Regards

Pete