Hacking WIA = Wii ISO Archive

carbonyle

Well-Known Member
Member
Joined
Jan 9, 2009
Messages
360
Trophies
0
Age
40
Location
Switzerland
Website
Visit site
XP
116
Country
Swaziland
w
How can I convert a .wia file to a .iso???
wit copy image.wia image.iso

more details: http://wit.wiimm.de/...ages.html#write
I just tried this (I rename the file to "zelda.wit" (note the original file is a *.wit)
Code:
carbonyle@ubuntu:~/Desktop$sudo wit copy zelda.wia zelda.iso
the output is:
Code:
*****  wit: Wiimms ISO Tool v1.12a r1451 i386 - Dirk Clemens - 2010-08-01  *****
!! wit: ERROR #22 [WRONG FILE TYPE] in SourceIteratorHelper() @ src/lib-sf.c#3352
!!	  ISO image expected: zelda.wia
! wit: No valid source file found.
how can I make this working?

EDIT: Ok fixed by updating to v2

Code:
carbonyle@ubuntu:~/Desktop/wit-v2.01a-r3138-i386/bin$ sudo ./wit copy /home/carbonyle/Desktop/zelda.wia /home/carbonyle/Desktop/zelda.iso

And for info :
Code:
 ls -lh
Code:
-rw-r--r--  1 root   root   4.4G 2011-11-17 11:45 zelda.iso
-rw-r--r--  1 carbonyle carbonyle 3.2G 2011-11-17 11:45 zelda.wia
nice compression !
 

Elrinth

:Master beyond your imagination:
Member
Joined
Nov 6, 2002
Messages
2,976
Trophies
2
Age
39
Website
www.elrinth.com
XP
1,269
Country
Great work Wiimm!
Now let's hope someone who's responsible for Dolphin source will approve this for usage. After that, there's no reason to use anything else than WIA :)
Have you figured out a way to handle "older" revisions of WIA yet? Or will you simply say, nope, now we're no longer supporting to decrypt files in WIA format xx. use old version of WIA to decode then encode again in latest version of WIA?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
@carbonyle
I don't know why, but it seems that the file is damaged.

The best (but not very handy) compression method is:
* step 1: wit copy IMAGE IMAGE.wia --wia=NONE
* step 2: rar/7z the new image

The advantages of --wia=BEST are
* Random access to the chunks possible
* Fast info dump and listings without need to decompress all
 

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,704
Trophies
1
XP
4,384
Country
Netherlands
ERROR #25 [CAN'T OPEN FILE] in SetupReadSF() @ src/lib-sf.c#409
Can't open file: /cygdrive/l/Download/Wii-GC
This is what I get when I try:
wit copy L:\Download\Wii-GC Roms2\Bleach Shattered Blade.iso L:\Download\Wii-GC Roms2\Bleach Shattered Blade.wia

That's the command to convert iso to wia right??
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
1.) Use / instead of \
2.) quote params with spaces
wit copy "L:/Download/Wii-GC Roms2/Bleach Shattered Blade.iso" "L:/Download/Wii-GC Roms2/Bleach Shattered Blade.wia"

3.) Don't use WIA for GC, i haven't test it very well. And If you use it, make a diff to verify conversion to WIA and back:
wit diff image.iso image.wia
 
  • Like
Reactions: 1 person

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,704
Trophies
1
XP
4,384
Country
Netherlands
Thanks I tried it and it worked. wia gives 680mb while wbfs gives 1.32 gb. Nice reduction! Your prog automatically scrubs I guess?

Any other tips on reducing filesize?

Im trying to 7zip it now with ultra compression LZMA.. but the compressed state is actually bigger lol.

Is there any point in zipping wia files?

I also have lots of ps1/ps2 roms, from what I take your prog doesn't work with those, what 7zip compression settings should I use for best size? Or go with default?
 

W hat

Rhythm Heaven Fan
Member
Joined
Feb 28, 2007
Messages
632
Trophies
1
XP
697
Country
United States
Thanks I tried it and it worked. wia gives 680mb while wbfs gives 1.32 gb. Nice reduction! Your prog automatically scrubs I guess?

Any other tips on reducing filesize?

Im trying to 7zip it now with ultra compression LZMA.. but the compressed state is actually bigger lol.

Is there any point in zipping wia files?

I also have lots of ps1/ps2 roms, from what I take your prog doesn't work with those, what 7zip compression settings should I use for best size? Or go with default?
If you want to use an external compressor, use
--compr none
WIT compresses WIA files using 7-zip by default.
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
The wia converter supports several compression modes, set with --wia=mode or --compr=mode
Code:
# wit compr -l

mode           memory usage
name         reading   writing   input mode
---------------------------------------------
NONE          40 MiB    40 MiB   NONE
PURGE         40 MiB    40 MiB   PURGE
BZIP2         42 MiB    44 MiB   BZIP2
LZMA          56 MiB   225 MiB   LZMA
LZMA2         56 MiB   225 MiB   LZMA2
LZMA          56 MiB   225 MiB    DEFAULT
BZIP2.3@10    21 MiB    23 MiB    FAST
LZMA          56 MiB   225 MiB    GOOD
LZMA.7@50    164 MiB   773 MiB    BEST
LZMA.7@50    164 MiB   773 MiB    MEM
 

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,704
Trophies
1
XP
4,384
Country
Netherlands
Thanks for the informative reply.

How would I tie it in with this? I really suck with command line.
like this?
wit copy --wia=best "L:/Download/Wii-GC Roms2/Bleach Shattered Blade.iso" "L:/Download/Wii-GC Roms2/Bleach Shattered Blade.wia"
I also have QtWitGui went to settings located witt and wtt but the option open game is greyed out.. And can you use --wia=best in the GUI version?
 

Burton

Real Life VIP and Educator
Member
Joined
Mar 7, 2006
Messages
880
Trophies
0
Website
Visit site
XP
283
Country
I also have QtWitGui went to settings located witt and wtt but the option open game is greyed out.. And can you use --wia=best in the GUI version?
oadxk5.jpg
 

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,704
Trophies
1
XP
4,384
Country
Netherlands
Hello, again me.

I finished 60 wii backups manually but the harddrive has died :(

I spent alot of time, I need to do it again!

Is there a way to que an entire iso folder for convert wia with best compression with command line or GUI version?
 

Wiimm

Developer
OP
Member
Joined
Aug 11, 2009
Messages
2,292
Trophies
1
Location
Germany
Website
wiimmfi.de
XP
1,519
Country
Germany
All commands accept multiple sources. If you enter a directory name all images of that directory are used as source. The option -r / --recurse allows a recursive search.

Examples:
wit copy SOURCE_DIR -vv --wia=best DEST_DIR/ --test
wit copy SOURCE_DIR -vv --wia=best DEST_DIR/%X --test
remove --test from command line to enable execution.

Every time you can terminate the execution by pressing CTRL-C. If pressed once, the job is finished first. If pressed twice, the current job is aborted with cleanup. If pressed 3 times, a hard break without cleanup is done.

Add --update if you want only jobs, that are not already done.
 

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,704
Trophies
1
XP
4,384
Country
Netherlands
Ok and what would the command be if I were to turn a directory back into iso? Thanks a ton btw! Converting my images right now again.
 

alextepes

New Member
Newbie
Joined
Oct 31, 2012
Messages
1
Trophies
0
Age
35
XP
41
Country
Canada
After losing my mind trying to use this until I finally got it working, the result a 7MB file turns into a 4.5GB ISO file.. I thought I was losing my mind again until running it worked great. I have a few questions though, how does 7MB or so turn into 1.5GB? that's a huge amount of compression. It almost seems illogical, and it took ms not a few minutes, or even quarter of one. Does it inflate the resulting ISO file at all? It almost seems like it does. If I'm wrong you could sell this, haha. Amazing job, I wish the tools you provide come with a GUI of some kind on it's own, but I understand if it's too much to get involved in. Great job anyway.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    I @ idonthave: :)