Jump to content

Determine if ISO will fit on DVD+R?


Recommended Posts

Posted (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 by Sizzlechest
Posted

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.

Posted

That's good to know. So I assume the ISO file format has no additional headers or padding? It's a "raw" file format?

Posted

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.

Posted

Correct, no headers or padding.

Posted (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 by Sizzlechest
Posted

Ah, I see.  You're writing your own script.  So, you'd want to know how to "manually" determine this.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.