Support for rar v5 files?

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

Previous topic - Next topic


 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.
* 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).


Below is a sample compressed file with RAR version 5 and RAR version 4:

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:

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