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, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).