ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: AmirGooran on December 14, 2022, 09:15:15 AM

Title: Support for rar v5 files?
Post by: AmirGooran on December 14, 2022, 09:15:15 AM
 Is there support for getting basic info about RAR v5 files?

ExifTool Version Number         : 12.52
File Name                       : 1.rar
Directory                       : .
File Size                       : 102 kB
File Modification Date/Time     : 2022:12:13 19:50:32+03:30
File Access Date/Time           : 2022:12:13 19:51:58+03:30
File Creation Date/Time         : 2022:12:13 19:50:32+03:30
File Permissions                : -rw-rw-rw-
Error                           : File format error
Title: Re: Support for rar v5 files?
Post by: StarGeek on December 14, 2022, 11:39:32 AM
This will have to wait until Phil get's back some time next week.

The RAR v5 compression is proprietary, so I'm not sure what might be done.  My copy of WinRar is old, only supporting v4.  Can you attach a v5 file?  Compressing a single byte text file is probably all that is needed, though Phil would have to comment to be sure.
Title: Re: Support for rar v5 files?
Post by: AmirGooran on December 15, 2022, 04:45:29 AM
Hello,
Below is a sample compressed file with RAR version 5 and RAR version 4:

https://drive.google.com/file/d/1D95WzZs5JlMNbz4A3IQpgpAnZaW2uVua/view?usp=sharing
https://drive.google.com/file/d/103ZwKQy3Pko3zvVPBaObx85HdpOttPV6/view?usp=sharing

Also, I think if you take a look at the RAR file parser in the 010 editor, you can easily add RAR version 5 support to exiftool:

https://www.sweetscape.com/010editor/repository/files/RAR.bt
Title: Re: Support for rar v5 files?
Post by: Phil Harvey on December 21, 2022, 08:52:41 AM
I got the samples, thanks.  I'll look into this when I get a chance.

- Phil
Title: Re: Support for rar v5 files?
Post by: AmirGooran on April 20, 2023, 06:31:47 AM
Hello again,

Is there any update about this?
If you are interested and think you don't have enough time, I can add this feature to exiftool.
The latest version of the code is in the link below, am I right?
https://github.com/exiftool/exiftool

Regards,
Amir Gooran
Title: Re: Support for rar v5 files?
Post by: Phil Harvey on April 21, 2023, 06:54:01 AM
Hi Amir,

I admit, this is low on my list of priorities.  Yes, that is the latest version of the code.

- Phil
Title: Re: Support for rar v5 files?
Post by: AmirGooran on April 27, 2023, 04:25:52 PM
Hello again,

RARv5 support added:
https://github.com/exiftool/exiftool/pull/203

Regards,
Amir Gooran
Title: Re: Support for rar v5 files?
Post by: Phil Harvey on April 27, 2023, 09:08:05 PM
Thanks, I got the pull request notification.

Looks good.  I'll look into adding this to the official version.

- Phil
Title: Re: Support for rar v5 files?
Post by: Phil Harvey on May 03, 2023, 01:57:41 PM
Done.  Version 12.62 is now available with this feature.

Thanks again.

- Phil
Title: Re: Support for rar v5 files?
Post by: AmirGooran on May 18, 2023, 11:36:51 AM
Quote from: Phil Harvey on May 03, 2023, 01:57:41 PMDone.  Version 12.62 is now available with this feature.

Thanks again.

- Phil

Thanks Phil.
I have also added 7-zip support:

https://github.com/cyberno-ir/exiftool/blob/7zip_new/lib/Image/ExifTool/7z.pm (https://github.com/cyberno-ir/exiftool/blob/7zip_new/lib/Image/ExifTool/7z.pm)
https://github.com/exiftool/exiftool/pull/205 (https://github.com/exiftool/exiftool/pull/205)

Regards,
Amir Gooran
Title: Re: Support for rar v5 files?
Post by: Phil Harvey on May 24, 2023, 10:25:34 AM
Thanks.  I'll look into this when I get a chance.

- Phil
Title: Re: Support for rar v5 files?
Post by: Phil Harvey on June 06, 2023, 04:04:55 PM
Version 12.63 will contain your 7z feature.  Thanks.

- Phil