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
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.
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
I got the samples, thanks. I'll look into this when I get a chance.
- Phil
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
Hi Amir,
I admit, this is low on my list of priorities. Yes, that is the latest version of the code.
- Phil
Hello again,
RARv5 support added:
https://github.com/exiftool/exiftool/pull/203
Regards,
Amir Gooran
Thanks, I got the pull request notification.
Looks good. I'll look into adding this to the official version.
- Phil
Done. Version 12.62 is now available with this feature.
Thanks again.
- Phil
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
Thanks. I'll look into this when I get a chance.
- Phil
Version 12.63 will contain your 7z feature. Thanks.
- Phil