#11354: Certain PlayStation STR complained "Invalid data"
-------------------------------------+-------------------------------------
             Reporter:  Joseph       |                    Owner:  (none)
  DeVore                             |
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:  avformat
              Version:  git-master   |               Resolution:
             Keywords:  psxstr       |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  1            |
-------------------------------------+-------------------------------------
Comment (by Joseph DeVore):

 this is what a person on the DuckStation Discord server had to say about
 what DuckStation's ISO browser did or does...


 ----
 each sector on a CD is 2352 bytes
 a data track on a playstation CD follows the CD-ROM XA standard, where
 there are two types of sectors, "mode 2 form 1" and "mode 2 form 2"
 "mode 2 form 1" uses 2048 of those 2352 bytes for data and the rest for
 things like error correction, and this form is used for most data because
 CDs are unreliable and that error correction is really important if it's
 something like code
 "mode 2 form 2" uses 2324 of those 2352 bytes for data, getting rid of the
 error correction in exchange for more space, and is generally used for
 compressed audio where small errors are not a big deal
 so, most files on a PlayStation disc will use mode 2 form 1, with mode 2
 form 2 only used for compressed audio, either on its own or within a video
 file
 so each of those .STR files contains a mix of those two sector types
 the problem you're running into is that DuckStation's ISO browser simply
 dumps 2048 bytes of data for every sector regardless of what type it is
 whereas ffmpeg actually wants the full raw 2352 byte sectors
 try dumping the files with jpsxdec instead

 ----
-- 
Ticket URL: <https://trac.ffmpeg.org/ticket/11354#comment:8>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
FFmpeg-trac@avcodec.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-trac

To unsubscribe, visit link above, or email
ffmpeg-trac-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to