Getting DVD+R and DVD-R media capacity

vbimport

#1

Hi!

I am trying to get the writable capacity of DVD media. How can this be read? What scsi command to use? I was playing around with Read DVD Structure but could not get any useful information. End physical sector number somehow was not the size if I multiplied it 2048 - sector size.

Thank you for your help!