Ecm error code modeler

ECM (Error Code Modeler) lets you prepare CD image files (such as BIN, CDI, NRG, CCD, or similar) so that they'll compress far better in programs such as WinRAR - GitHub - RDCH106/ECM: ECM (Err...

ECM

ECM (Error Code Modeler) lets you prepare CD image files (such as BIN, CDI, NRG, CCD, or similar) so that they’ll compress far better in programs such as WinRAR.

Here’s how to use it:

  1. Run the CD image file (i.e. filename.bin) through ECM to create an ECM file (i.e. filename.bin.ecm).
  2. Compress the ECM file (i.e. filename.bin.ecm) using your favorite compression program.
  3. Back up, transmit via Internet, or whatever you normally do with CD images!
  4. When you want to burn the CD again, extract the original CD image from the ECM file.

How much space does it actually save?

The space saved depends on the number of sectors with unnecessary EDC/ECC data in them, which will depend on the specific type of CD. Here are some examples:

Test CD Format Size (RAR) Size (ECM, then RAR) Improvement
Metal Gear Solid (PSX) Disc 1 BIN/CUE 466,852,244 381,033,267 18.4%
Panzer Dragoon Saga (Saturn) Disc 1 BIN/CUE 432,909,436 366,889,519 15.3%
Tokyo Xtreme Racer 2 (Dreamcast) CDI 474,346,319 389,917,790 17.8%

Obligatory disclaimer

ECM is not intended as a tool to aid in acts of copyright infringement

  • Original Author: Neill Corlett
  • Original homepage Project: http://www.neillcorlett.com/ecm/
  • Wayback Machine Copy: https://web.archive.org/web/20140328062622/http://www.neillcorlett.com/ecm/

📚 Documentation

Check available documentation in Wiki section:

  • https://github.com/RDCH106/ECM/wiki

Для чего нужен файловый формат .ECM?

Расширение имени файла .ecm главным образом относится к типу файлов «Образ диска Error Code Modeler (ECM)» (.ecm). Error Code Modeler (ECM) — файловый формат образов CD/DVD-дисков, а также способ сжатия данных, разработанные Нилом Корлеттом (Neill Corlett) и основанные на удалении кодов восстановления ошибок (EDC, ECC) из потока данных при создании образа, позволяя обеспечить гораздо меньший размер файла по сравнению с другими форматами образов. ECM обрел популярность как основной формат создания образов игровых дисков, выпущенных для Sony PlayStation и прочих игровых приставок.

Файл .ecm представляет собой образ оптического диска в формате ECM. Прежде, чем загрузить такой образ (.ecm) в эмулятор игровой приставки, записать на физический носитель или иным образом использовать, его нужно преобразовать обратно в несжатый формат (обычно, .bin формата BIN/CUE) с помощью одной из утилит, служащих этой цели (напр., unecm.exe). Кроме того, несколько хорошо известных программ для работы с образами дисков поддерживают формат сжатия ECM и способны непосредственно открывать и/или преобразовать подобные ECM-образы.




Помимо этого, расширение .ecm служит обозначением типа файлов «Модель базы данных XML ERD Concepts» (.ecm), используемого в рамках ERD Concepts — коммерческого средства проектирования баз данных для среды Microsoft Windows компании Polderij ICT. Здесь файл .ecm является текстовым документом XML, описывающим структуру модели базы данных, разработанной в ERD Concepts. В процессе установки ERD Concepts ассоциируется с типом файлов .ecm, и модели баз данных XML (.ecm) можно открыть в ERD Concepts непосредственно из Проводника Windows.



Программы для открытия или конвертации ECM файлов

Вы можете открыть файлы ECM с помощью следующих программ:



CD Data Sectors

To understand what ECM does and how it works, you must first understand the sectors in a CD and what they’re made of.

A typical data CD consists of thousands of 2352-byte sectors. Each sector looks like this (drawings not to scale):

Only 2048 bytes in each sector are used for actual data. The rest are:

# Sync — A special code used by the drive to tell where the sector begins
# Address — This tells the drive which sector it’s looking at
# EDC — Error Detection Code, used to detect if the data is corrupt
# ECC — Error Correction Code, used to correct the data if it is corrupt

When you create BIN/CUE files from a data CD, the BIN contains all of this data — all 2352 bytes from each sector.

The light-colored areas in the diagram (sync, address, data) are usually easy to compress. However, the dark areas (EDC, ECC) look like noise, and are nearly impossible to compress with conventional tools such as WinRAR. When you compress a BIN file in WinRAR, each sector ends up looking something like this:

Sync, address, and data compress okay, but EDC and ECC just sit there like bricks taking up space. And they usually don’t even need to be there!

Filtering Sectors Through ECM First

ECM selectively strips the sync, EDC and ECC codes from each sector, whenever possible. Once a BIN file has been run through ECM, the resulting sectors look like this:

That process, in itself, doesn’t reduce the BIN size very much. But notice how the only parts left are the light-colored (easy to compress) parts! Now, when you run the ECM file through WinRAR, you’ll get much better results than before:

But wait a minute, don’t I need those ECC codes? Doesn’t that make it less reliable?

You get the EDC/ECC codes back when you convert from ECM back to BIN
(which is required before burning — you can’t currently burn a ECM file directly).

When you’re archiving or transmitting files in a format such as RAR, you already have error detection built in. WinRAR doesn’t particularly care about the CD sector EDC/ECC codes, and just handles BIN files like any other file.

So no, you’re not losing any reliability by converting BIN files to ECM, as long as you make sure to convert them back before burning.

What about copy protection? Don’t they use bogus ECC data? Wouldn’t ECM ruin that?

ECM only eliminates EDC/ECC data for sectors where it’s verifiably possible to recreate that data. If the ECC is bogus, ECM will preserve that bogus data.

You won’t lose any data by converting a file to ECM and back again. The process is completely lossless.

I’ve personally used this to save a lot of space on PC games. I know they aren’t allowed here, but I was just trying it. With one game I cut down the ISO by 500mb+ using ECM and then compressing the ecm with 7zip -ultra. It can be quite the bandwidth saver.

Here is the example:
Red outline is the size of the .img.ecm uncompressed
Silver outline is the compressed size total.

v 1.0

CD image file error code modeler

ECM (Error Code Modeler) lets you prepare CD image files — such as BIN, CDI, NRG, CCD, or similar — so that they’ll compress far better.

https://web.archive.org/web/20130502135203/http://www.neillcorlett.com/ecm/

To install ecm, paste this in macOS terminal after installing MacPorts

sudo port install ecm

Details

Add to my watchlist

Installations 4
Requested Installations 3

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Resource icon

ECM & UN-ECM

1.03 win32-i386


  • Author

    Another World


  • Creation date

    May 17, 2012

ECM (Error Code Modeler) lets you prepare CD image files (such as BIN, CDI, NRG, CCD, or similar) so that they’ll compress far better in programs such as WinRAR. Here’s how to use it:

1. Run the CD image file (i.e. filename.bin) through ECM to create an ECM file (i.e. filename.bin.ecm).
2. Compress the ECM file (i.e. filename.bin.ecm) using your favorite compression program.
3. Back up, transmit via Internet, or whatever you normally do with CD images!
4. When you want to burn the CD again, extract the original CD image from the ECM file using un-ECM.

How to use: simply drag/drop over the exe and let it go to work.

You may also like…

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Ecm 99 ивеко стралис ошибка причина
  • Ecm 925c ошибка дроссельной заслонки
  • Ecm 925c volvo xc90 ошибка
  • Ecm 720a ошибка вольво
  • Ecm 6814 volvo ошибка

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии