[Libburn] Real-time data stream
Thomas Schmitt
scdbackup at gmx.net
Wed Aug 15 22:59:23 PDT 2012
Hi,
> I worked with libburn.so.4.71.0 on ubuntu 12.04.
That would be libburn-1.1.8 out of my production.
> Which mailing list
> could I find helps from developers on?
libburn-hackers at pykix.org
I am currently the only active developer.
> I have tried the test program libburner
> ./test --drive 0 --multi ./teststream
> libburner : SORRY : Drive offers no suitable write mode with this job
> FATAL: Failed to find a suitable write mode with this media.
> Reasons given:
> SAO: multi session capability lacking, TAO: multi session capability
> lacking,
Option --multi is not suitable for the media type.
DVD+RW have no own session structure like CD-RW or DVD-R.
So it is not possible to perform --multi on hardware level.
(Multi-session can be emulated for ISO 9660 filesystems. See growisofs
or my program xorriso.)
DVD+RW, DVD-RAM, BD-RE, and formatted DVD-RW can be written freely
at any block address.
Modern Linux can write to them without the need for a burn program.
So for your purpose and these media, it might be easiest to just use
normal POSIX means. Like:
fd = open("/dev/sr0", O_RDWR);
lseek(fd, byte_address, SEEK_SET);
while(...not.done.yet...) {
write(fd, my_data, my_data_count);
}
close(fd);
byte_address and my_data_count should be divisible by 2048.
libburn offers a similar functionality by its call
burn_random_access_write()
which would be used in a loop instead of burn_disc_write().
Note well that this will not work for DVD-R, unformatted DVD-RW,
DVD+R, and BD-R media. Those need a real burn program to get written.
In exchange they offer multi-session capability regardless of
the data format which is written onto them.
Have a nice day :)
Thomas
More information about the libburn
mailing list