TVideoGrabber.DVDInfo

Prev

Next

TVideoGrabber

Methods

 




































































































DVD Info


Declaration
function DVDInfo(DVDRootDirectory: string; DVDInfoType: TDVDInfoType; TitleNumber: LongInt): Double;


double __fastcall DVDInfo(System::wchar_t *DVDRootDirectory, TDVDInfoType DVDInfoType, int TitleNumber)


Function DVDInfo (DVDRootDirectory as string, DVDInfoType as TDVDInfoType, TitleNumber as Long) as Double

Description

This function lets you retrieve information about the DVD.

DVDRootDirectory: path to the VIDEO_TS folder

DVDInfoType: selects the TDVDInfoType type of information requested. Possible values:
dvd_NumberOfVolumes
dvd_TotalDuration
dvd_NumberOfTitles
dvd_TitleDuration
dvd_TitleFrameRate
dvd_SourceResolutionX
dvd_SourceResolutionY
dvd_TitleFrameCount

TitleNumber: number of the title requested (in the 1..n range) or 0 for the global information (dvd_TotalDuration and dvd_NumberOfTitles)

(note that the DVD data is cached, therefore the DVD in read only one time, other calls to DVDInfo just return the cached values, unless you specify a different DVD folder)

(all the values are returned as double)
E.g. to get:

- the total duration of the DVD:
double TotalDuration = Videograbber.DvdInfo ("e:dvd_TotalDuration, 0)

- the number of titles in the DVD:
int NumberOfTitles = (int) Videograbber.DvdInfo ("e:dvd_NumberOfTitles, 0)

- the duration of the 1st title:
double TitleDuration = Videograbber.DvdInfo ("e:dvd_TitleDuration, 1)

- the number of frames of the 1st title:
int TitleFrameCount = (int) Videograbber.DvdInfo ("e:dvd_TitleFrameCount, 1)

- the frame rate of the 1st title:
int TitleFrameRate = (int) Videograbber.DvdInfo ("e:dvd_TitleFrameRate, 1)

- the width of the video resolution of the 1st title:
int TitleVideoWidth = (int) Videograbber.DvdInfo ("e:dvd_SourceResolutionX, 1)

- the height of the video resolution of the 1st title:
int TitleVideoHeight = (int) Videograbber.DvdInfo ("e:dvd_SourceResolutionY, 1)


See Also
DVDTitle OpenDVD PlayerFileName