Re: RELEASE TESTING needed for libdvdread
Bj|rn Englund <[email protected]> Fri, 23 Sep 2005 14:46:51 +0200
| Newsgroups | gmane.comp.video.ogle.devel |
|---|---|
| Message-ID | <[email protected]> |
Mon Sep 19 2005, Ralf Ertzinger wrote: > The main reason was that dvdbackup needs that function. And given that > both libdvdread and dvdbackup seemed unmaintained (no changes for over > 2 years, IIRC) it was the easiest solution to get dvdbackup working > again. > > I did not look if there was a way to rewrite dvdbackup in order to > use a different API exported by libdvdread to work around this. I took a quick look at dvdbackup. From what I can see it only uses UDFFindFile to get the sizes (in bytes) from the VIDEO_TS.*, VTS_* files. This can be done by using DVDOpenFile, DVDFileSize, DVDCloseFile. DVDFileSize returns the size in blocks. To get size in bytes just multiply blocks with DVD_VIDEO_LB_LEN (2048). This will work for all files except VTS_XX_?.VOB I'm thinking of adding a DVD_VOB_Sizes() which will return the sizes of all VIDEO_XX_?.VOB parts. But I'll probably wait until after this release before making any more API changes. Anyone have any comments on this? /Bj|rn