DVDInfo
function DVDInfo (DVDRootDirectory: string; DVDInfoType: TDVDInfoType; TitleNumber: LongInt): Double;
double __fastcall DVDInfo(System::UnicodeString DVDRootDirectory, TDVDInfoType DVDInfoType, System::LongInt TitleNumber);
public double DVDInfo(string DVDRootDirectory, TDVDInfoType DVDInfoType, int TitleNumber);
Public Function DVDInfo(DVDRootDirectory As String, DVDInfoType As TDVDInfoType, TitleNumber As Integer) As Double
double DVDInfo (wchar_t *DVDRootDirectory, TDVDInfoType DVDInfoType, int TitleNumber);
DVD Info
Remarks
This function makes it possible to 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 specifying 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:_ts", dvd_TotalDuration, 0)
- the number of titles in the DVD:
int NumberOfTitles = (int) Videograbber.DvdInfo ("e:_ts", dvd_NumberOfTitles, 0)
- the duration of the 1st title:
double TitleDuration = Videograbber.DvdInfo ("e:_ts", dvd_TitleDuration, 1)
- the number of frames of the 1st title:
int TitleFrameCount = (int) Videograbber.DvdInfo ("e:_ts", dvd_TitleFrameCount, 1)
- the frame rate of the 1st title:
int TitleFrameRate = (int) Videograbber.DvdInfo ("e:_ts", dvd_TitleFrameRate, 1)
- the width of the video resolution of the 1st title:
int TitleVideoWidth = (int) Videograbber.DvdInfo ("e:_ts", dvd_SourceResolutionX, 1)
- the height of the video resolution of the 1st title:
int TitleVideoHeight = (int) Videograbber.DvdInfo ("e:_ts", dvd_SourceResolutionY, 1)