mirror of
https://github.com/aaru-dps/Aaru.git
synced 2026-07-08 17:56:18 +00:00
Extracting PSX image is incorrect #320
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @aybe on GitHub (Feb 14, 2020).
Prerequisites
Check and fill as appropriate:
compiled last commit as of today:
b06fb9ec7bExact command line used:
dotnet DiscImageChef.dll fi extract "WipEout (Europe) (v1.0).cue" outExpected behavior:
That all files be extracted properly, WOPAL.AV is extracted but is unusable, it should be extracted in RAW mode.
If you look at IsoBuster, when trying to extract such file as user mode, it will error and for a pretty good reason; it is simply useless if not extracted in RAW mode, it is incomplete.
Actual behavior:
Files are extracted but some are incomplete.
Furthermore, there is a bunch of
Cannot write fileafter extraction, the files have already been extracted, what is the program trying to do for a second time ? This is very confusing.I can provide you a link to the image, let me know how I should.
And see how
-dactually fails differently.Output of command execution with debug output enabled
@claunia commented on GitHub (Feb 14, 2020):
@aybe thanks for the report, it will be looked into.
@aybe commented on GitHub (Feb 14, 2020):
thank you
@claunia commented on GitHub (Mar 10, 2020):
So,
Checked the version you used and the extracted file had a MD5 of d92dd8a7ddd6fe11c960ab51824e2b1d.
So I checked the code,
Fixed a bug with reading sectors in CD-i in
b7791b58b0but file gets same contents.Fixed a bug with the directory entries of XA discs in
a971a1fe5abut file gets same contents.Implemented support for interleaved files as per CD-ROM XA System Description 4.3.2.1 in
9cbd161329but the file is not interleaved, so same hash.If you enable debug mode now (added more debug information as well) you'll see that the file has the following structure:
I manually checked the sectors against the extracted file and it seems pretty correct.
However I can understand the confusion if you're trying to use a tool designed for PlayStation MDEC files, as this is not just video but video an audio interleaved.
As file number, is the same, however, it is clear it is a single file. Think of it like an
AVIorMKVfile. It is however beyond the scope of this project to add support to split the video from the audio in that file, belonging more to tools like ffmpeg.@aybe commented on GitHub (Mar 10, 2020):
I haven't been asking about splitting video from audio, I've said that the file should be extracted in RAW mode for being usable.
When the file is extracted correctly, that is, in RAW mode, it is 32,965,632 bytes with a MD5 of ba6b73b6b72da7b2391daac01abd8733.
Basically what I was asking is the ability to extract a file whose all 2352 sector bytes are being saved, without any attempt to further process its content, i.e. RAW mode.
@claunia commented on GitHub (Mar 10, 2020):
So what you want is a sector extractor (that extracts only the sectors belonging to a file, but it's not the file itself), not a file extractor.
Such feature is not implemented but could be do in a future.
Would you mind opening a feature request issue for it? Thanks
@aybe commented on GitHub (Mar 11, 2020):
yes, here it is #302