libcdio-help
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Libcdio-help] Copying a file from a DVD to local storage


From: Kamil Ignacak
Subject: Re: [Libcdio-help] Copying a file from a DVD to local storage
Date: Sat, 28 Aug 2010 22:04:33 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.11) Gecko/20100805 Icedove/3.0.6

On 27.08.2010 23:33, Rocky Bernstein wrote:


On Wed, Aug 25, 2010 at 4:18 AM, Syed Ahsan <address@hidden
<mailto:address@hidden>> wrote:
    So,
    1) Does libcdio works for DVDs ? .. as some codes which provide info
    for the
    disk, like track.c and even my code (for some cases) was working for
    DVDs.


Somewhat, and not really, and no depending on what aspect of DVD's you
want. If the DVD has an ISO 9660 file systems (which it can have, but
often doesn't) then I think somewhat.

You need to be careful when reading ISO 9660 file systems from DVDs.
If the file system is larger than 4GB, libiso9660 can't handle it properly. One of library functions (iso9660_iso_seek_read()?) uses byte offset parameter, and that offset is wrapped back to zero when it reaches 2^32 bytes. I have tested this on my 64-bit machine, header in /usr/include/cdio/iso9660.h says "$Id: iso9660.h,v 1.102 2008/07/16 00:28:54 rocky Exp $".

Reading large ISO 9660 file systems (over 4GB) results in a file that has ISO header at the beginning of file, and a copy of it right after (2^32 - 1)th byte.

Kind regards,
Kamil Ignacak



reply via email to

[Prev in Thread] Current Thread [Next in Thread]