Sizzlechest Posted July 17, 2018 Posted July 17, 2018 (edited) Is there an algorithm I can use to determine if the contents of an ISO file will fit on a DVD+R? Checking the overall file size would be easy, but I do worry about edge cases where it's borderline. Are there any existing utilities that do this from the command line? Edited July 17, 2018 by Sizzlechest
LIGHTNING UK! Posted July 17, 2018 Posted July 17, 2018 There's a specific number of sectors available on the disc. Each sector is 2048 bytes in size, so you can do it by file size alone.
Sizzlechest Posted July 17, 2018 Author Posted July 17, 2018 That's good to know. So I assume the ISO file format has no additional headers or padding? It's a "raw" file format?
dbminter Posted July 17, 2018 Posted July 17, 2018 Also, why not just load the ISO in ImgBurn? It should surely tell you if the ISO won't fit the DVD+R you have inserted into your drive. It should either deny it or ask if you want to overburn it, which would tell you it won't fit on the DVD+R at its current size without overburn. So, it's, at least, slightly larger than the DVD+R size.
Sizzlechest Posted July 17, 2018 Author Posted July 17, 2018 (edited) Also, why not just load the ISO in ImgBurn? It should surely tell you if the ISO won't fit the DVD+R you have inserted into your drive. It should either deny it or ask if you want to overburn it, which would tell you it won't fit on the DVD+R at its current size without overburn. So, it's, at least, slightly larger than the DVD+R size. Because I am scripting a dvd robot handler and I want to check the iso so I can load the correct disc (DVD-R vs DVD+R DL) into the burner. Edited July 17, 2018 by Sizzlechest
dbminter Posted July 17, 2018 Posted July 17, 2018 Ah, I see. You're writing your own script. So, you'd want to know how to "manually" determine this.
Recommended Posts