[PR #585] [MERGED] Set UDF CD threshold at 800MB #1051

Closed
opened 2026-01-29 16:25:06 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/SabreTools/MPF/pull/585
Author: @Deterous
Created: 10/20/2023
Status: Merged
Merged: 10/20/2023
Merged by: @mnadareski

Base: masterHead: udf-cd-size


📝 Commits (2)

  • daccebd Set UDF CD threshold at 800MB
  • 1561b23 Condense DriveFormat checks

📊 Changes

1 file changed (+2 additions, -6 deletions)

View changed files

📝 MPF.Core/Data/Drive.cs (+2 -6)

📄 Description

Currently, optical media type detection for UDF filesystems is set to DVDs if the size is at least 400MB.

Based on the PC CDs and DVDs in redump, the false positive rate for DVD detection when using a threshold of 800 MB is less than 3%, with an optimal threshold for CD and DVD false detection rate at approx 830MB. However, I think it is best that MPF keep the threshold at 800 MB as CDs greater than 800 MB in size are technically not following the CD-ROM standard.

I have also changed it slightly to set discs with exactly 800 MB as CDs.

Cumulative distributions for PC DVDs (in red) and PC CDs (in blue) with regards to size, where the crossover represents the point with the "lowest false detection rate":
false-positive
crossover


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/SabreTools/MPF/pull/585 **Author:** [@Deterous](https://github.com/Deterous) **Created:** 10/20/2023 **Status:** ✅ Merged **Merged:** 10/20/2023 **Merged by:** [@mnadareski](https://github.com/mnadareski) **Base:** `master` ← **Head:** `udf-cd-size` --- ### 📝 Commits (2) - [`daccebd`](https://github.com/SabreTools/MPF/commit/daccebdc51fd56829de7aafeab5f6c84ea47c146) Set UDF CD threshold at 800MB - [`1561b23`](https://github.com/SabreTools/MPF/commit/1561b23c9d58471ca15a951dbbacb0333c1fdca7) Condense DriveFormat checks ### 📊 Changes **1 file changed** (+2 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `MPF.Core/Data/Drive.cs` (+2 -6) </details> ### 📄 Description Currently, optical media type detection for UDF filesystems is set to DVDs if the size is at least 400MB. Based on the PC CDs and DVDs in redump, the false positive rate for DVD detection when using a threshold of 800 MB is less than 3%, with an optimal threshold for CD and DVD false detection rate at approx 830MB. However, I think it is best that MPF keep the threshold at 800 MB as CDs greater than 800 MB in size are technically not following the CD-ROM standard. I have also changed it slightly to set discs with exactly 800 MB as CDs. Cumulative distributions for PC DVDs (in red) and PC CDs (in blue) with regards to size, where the crossover represents the point with the "lowest false detection rate": ![false-positive](https://github.com/SabreTools/MPF/assets/138427222/76600786-8a5f-42ab-ba16-d29b940041dc) ![crossover](https://github.com/SabreTools/MPF/assets/138427222/730a0284-3fbf-45a9-84cb-9eb335d2aafe) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 16:25:06 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: SabreTools/MPF#1051