[File] [PATCH] Magdir/riff Easy CD Creator disk image *.CIF described only generic
Jörg Jenderek
joerg.jen.der.ek at gmx.net
Tue Aug 1 23:51:53 UTC 2023
Hello,
some weeks ago i handled some RIFF based video files. When i run
file command version 5.45 on more RIFF based samples with CIF file name
suffix and related files i get an output like:
MY_CD.cif: RIFF (little-endian) data
MY_CD.iso: ISO 9660 CD-ROM filesystem data
'ADAPTEC_'
MY_CD5.cif: RIFF (little-endian) data
MY_CD5.iso: ISO 9660 CD-ROM filesystem data
'220522_1939'
fmt-334-signature-id-445.cif: ASCII text, with no line terminators
fmt-495-signature-id-768.cif: ASCII text, with no line terminators
With --extension option only ??? is displayed for CIF samples.
Furthermore with option -i for inspected CIF samples only generic
application/octet-stream is shown.
The inspected samples are created by myself with Adaptec CD Creator
version 2.1.082 1995-1996. Here the samples are called "Adaptec CD Image
File". Beside the CIF samples also files with other suffix are created.
These are not considered in this session.
For comparison reason i also run the file format identification
utility DROID ( See https://sourceforge.net/projects/droid/). This
identifies my CIF examples as "ISO 9660 Disk Image File" by fmt/468.
But the file name suffix is considered as bad ( See EXTENSION_MISMATCH
is true in appended droid-cif.csv.gz). The type of the samples is also
described as "Container". Here also other CIF sample are recognized.
The fmt-334-signature-id-445.cif sample is described as
"Crystallographic Information Framework" by fmt/334. The sample
fmt-495-signature-id-768.cif is described as "ATCO-CIF" by fmt/495.
For comparison reason i run the file format identification utility
TrID ( See https://mark0.net/soft-trid-e.html). This identifies also
all my CIF examples with low priority as "Generic RIFF container" by
riff.trid.xml. The examples are described with high rate as "Easy CD
Creator disk image" by img-cif.trid.xml with correct suffix CIF. The
examples are also described with mid range rate as "ISO 9660 CD image"
by iso-9660-image.trid.xml (See appended trid-v-cif.txt.gz).
This tool list the used file name extension and with -v option the
related URL pointing to used software company. Luckily with shown
information i found page about "Easy CD Creator" on file formats archive
team web site. That informations are expressed by comment lines inside
Magdir/riff like:
# URL: http://fileformats.archiveteam.org/wiki/Easy_CD_Creator
# https://en.wikipedia.org/wiki/Roxio
# Reference: http://mark0.net/download/triddefs_xml.7z
# defs/i/img-cif.trid.xml
On that page you find software Adaptec CD-Creator to produce such CIF
images.
All detected CIF samples are at least general described by Magdir/riff
with line
0 string RIFF RIFF (little-endian) data
For other RIFF samples the sub classification is done by considering 4
byte string at offset 8. According to references this is 4 byte imag
string. So this is now done by additional lines inside Magdir/riff like:
>8 string imag \b, Easy CD Creator disk image
!:mime application/x-corel-cif
!:ext cif
Instead of generic mime type application/octet-stream or
application/x-riff i show an user defined one.
According to http://extension.nirsoft.net/cif also other CD burning
tools are able to handle such CIF samples. I was able to open my samples
by PowerISO version 8.5. Here the CIF samples are also called
"Easy CD/DVD Creator image".
Apparently the CIF samples are container for ISO CD-ROM images. With the
help of hex-editor and dd tool i was able to extract the embedded ISO
images from different offsets. These samples are described by lines
inside Magdir/filesystems like:
32769 string CD001
>0 use cdrom
So show information about embedded ISO images by looking for ISO 9660
CD-ROM tag CD001 and calling subroutine with suited offset. This is done
by additional lines like:
>>32769 search/4565/s CD001 \b; with
>>>&-32769 use cdrom
After applying the above mentioned modifications by patch
file-5.45-riff-cif.diff and using also Magdir/filesystems then all my
inspected CIF examples are now described with more details. This now
looks like:
MY_CD.cif: RIFF (little-endian) data
, Easy CD Creator disk image
; with
ISO 9660 CD-ROM filesystem data
'ADAPTEC_'
MY_CD.iso: ISO 9660 CD-ROM filesystem data
'ADAPTEC_'
MY_CD5.cif: RIFF (little-endian) data
, Easy CD Creator disk image
; with
ISO 9660 CD-ROM filesystem data
'220522_1939'
MY_CD5.iso: ISO 9660 CD-ROM filesystem data
'220522_1939'
fmt-334-signature-id-445.cif: ASCII text, with no line terminators
fmt-495-signature-id-768.cif: ASCII text, with no line terminators
I hope my diff file can be applied in future version of file
utility.
Unfortunately the CIF file name suffix is also used for other file formats.
With best wishes,
Jörg Jenderek
--
Jörg Jenderek
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trid-v-cif.txt.gz
Type: application/x-gzip
Size: 1156 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20230802/c394cef2/attachment.bin>
-------------- next part --------------
--- file-5.45/magic/Magdir/riff.old 2022-08-16 13:15:19.000000000 +0200
+++ file-5.45/magic/Magdir/riff 2023-08-02 01:28:45.226963100 +0200
@@ -644,18 +644,34 @@
!:mime audio/x-mids
!:ext mds
# From: Joerg Jenderek
# URL: http://mark0.net/soft-trid-e.html
# Reference: http://fileformats.archiveteam.org/wiki/Trd_(TRID)
>8 string TRID \b, TrID defs package
!:mime application/x-trid-trd
!:ext trd
# From: Joerg Jenderek
+# URL: http://fileformats.archiveteam.org/wiki/Easy_CD_Creator
+# https://en.wikipedia.org/wiki/Roxio
+# Reference: http://mark0.net/download/triddefs_xml.7z/defs/i/img-cif.trid.xml
+# Note: called "Easy CD Creator disk image" by TrID,
+# "Adaptec CD Image File" by Adaptec CD Creator 2.1.082 1995-1996 and
+# "Easy CD/DVD Creator image" by PowerISO 8.5
+>8 string imag \b, Easy CD Creator disk image
+#!:mime application/octet-stream
+#!:mime application/x-riff
+!:mime application/x-corel-cif
+!:ext cif
+# contains also 2 strings disc info
+# look for ISO 9660 CD-ROM tag handled by ./filesystems
+>>32769 search/4565/s CD001 \b; with
+>>>&-32769 use cdrom
+# From: Joerg Jenderek
# URL: https://en.wikipedia.org/wiki/CorelDRAW
# Reference: http://fileformats.archiveteam.org/wiki/CorelDRAW
# Note: Since version 3 CorelDraw Pictures are RIFF based
# but data chunks remain proprietary.
# Since version 14 til 15 packed as "content/riffData.cdr" and
# since 16 "content/root.dat" in ZIP container
# TODO: distinguish templates with version 12.5 from Designer illustration 12
# display information of RIFF based Corel Draw pictures, templates and patterns
0 name corel-draw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: file-5.45-riff-cif.diff.sig
Type: application/octet-stream
Size: 1003 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20230802/c394cef2/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: droid-cif.csv.gz
Type: application/x-gzip
Size: 418 bytes
Desc: not available
URL: <https://mailman.astron.com/pipermail/file/attachments/20230802/c394cef2/attachment-0001.bin>
More information about the File
mailing list