I've never been a fan of storing a movie as an ISO, because it makes it difficult for us to do some things that should be easy like work with multiple movies at once, thumbnail or analyze a movie in the background, play the movie through Library Server, etc.
However, I'm hoping to make one small improvement for ISO users that might help a little: automatically detect a DVD or Blu-ray movie ISO and correctly set the media type, media sub type, and (optionally) search for cover art, and (optionally) lookup online metadata.
To do this, we're going to write a simple ISO guesser to decide if an ISO is a DVD, Bluray, or something else.
I first was planning to gate based on the file size, since this is fast to check. Then, if the file size looks like it could be a DVD or Bluray, we'll read the first little bit and search the table of contents for markers.
I had mentioned creating a full ISO parser in another thread, but we only have UDF writing and not reading code, so I think we'll do a simple approach like looking for index.bdmv in the first 1MB of data to start.
My question is what are the valid size ranges for DVD and Bluray ISO files? I'm not sure if the ISO file removes empty sectors or not?
As a starting point:
DVD: 1GB - 10GB
Bluray: 5GB-60GB
If you could look at your ISO files and help me update that range, I'd appreciate it.
Thanks.