Support for rar v5 files?

Started by AmirGooran, December 14, 2022, 09:15:15 AM

Previous topic - Next topic

AmirGooran

 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

StarGeek

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.
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

AmirGooran

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

Phil Harvey

I got the samples, thanks.  I'll look into this when I get a chance.

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

AmirGooran

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

Phil Harvey

Hi Amir,

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

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

AmirGooran

Hello again,

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

Regards,
Amir Gooran

Phil Harvey

Thanks, I got the pull request notification.

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

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

Phil Harvey

Done.  Version 12.62 is now available with this feature.

Thanks again.

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

AmirGooran


Phil Harvey

Thanks.  I'll look into this when I get a chance.

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

Phil Harvey

Version 12.63 will contain your 7z feature.  Thanks.

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