2006-08-15 20:37:04 +00:00
|
|
|
/**
|
2006-09-01 22:31:10 +00:00
|
|
|
@author Mario Danic, Thomas Schmitt
|
2006-08-15 20:37:04 +00:00
|
|
|
|
2008-12-17 11:12:19 +00:00
|
|
|
@mainpage Libburn Documentation Index
|
2006-08-15 20:37:04 +00:00
|
|
|
|
|
|
|
@section intro Introduction
|
|
|
|
|
2006-12-03 15:56:27 +00:00
|
|
|
Libburnia is an open-source project for reading, mastering and writing
|
2008-12-17 09:34:53 +00:00
|
|
|
optical discs. This page is about its capability to handle optical media.
|
2008-05-06 18:08:04 +00:00
|
|
|
For now this means CD-R, CD-RW, DVD-RAM, DVD+RW, DVD+R, DVD+R/DL, DVD-RW,
|
2008-12-17 09:34:53 +00:00
|
|
|
DVD-R, BD-R, BD-RE.
|
|
|
|
|
|
|
|
Not supported yet are DVD-R/DL. Testers wanted.
|
|
|
|
|
|
|
|
Our scope is currently Linux 2.4 and 2.6, or FreeBSD . For ports to other
|
|
|
|
systems we would need : login on a development machine resp. a live OS on CD
|
|
|
|
or DVD, advise from a system person about the equivalent of Linux sg or FreeBSD
|
|
|
|
CAM, volunteers for testing of realistic use cases.
|
|
|
|
|
|
|
|
libburn is the library by which preformatted data get onto optical media.
|
|
|
|
Its code is independent of cdrecord. Its DVD capabilities are learned from
|
|
|
|
studying the code of dvd+rw-tools and MMC-5 specs. No code but only the pure
|
|
|
|
SCSI knowledge has been taken from dvd+rw-tools, though.
|
|
|
|
|
|
|
|
cdrskin is a limited cdrecord compatibility wrapper for libburn.
|
|
|
|
cdrecord is a powerful GPL'ed burn program included in Joerg Schilling's
|
|
|
|
cdrtools. cdrskin strives to be a second source for the services traditionally
|
|
|
|
provided by cdrecord. Additionally it provides libburn's DVD/BD capabilities,
|
|
|
|
where only -sao is compatible with cdrecord.
|
|
|
|
cdrskin does not contain any bytes copied from cdrecord's sources.
|
|
|
|
Many bytes have been copied from the message output of cdrecord runs, though.
|
|
|
|
See cdrskin/README for more.
|
|
|
|
|
|
|
|
The burn API example of libburn is named test/libburner.c . The API for media
|
|
|
|
information inquiry is demonstrated in test/telltoc.c .
|
|
|
|
Explore these examples if you look for inspiration.
|
|
|
|
|
|
|
|
SONAME:
|
2008-02-16 12:37:09 +00:00
|
|
|
libburn.so.4 (since 0.3.4, March 2007),
|
2006-09-06 15:27:03 +00:00
|
|
|
|
|
|
|
|
2008-12-17 09:34:53 +00:00
|
|
|
@section using Using libburn
|
2006-09-06 15:27:03 +00:00
|
|
|
|
|
|
|
Our build system is based on autotools.
|
2006-09-01 22:31:10 +00:00
|
|
|
User experience tells us that you will need at least autotools version 1.7.
|
|
|
|
|
2008-12-17 09:34:53 +00:00
|
|
|
To build libburn and its companion applications go into its toplevel directory
|
|
|
|
and execute
|
2006-09-06 15:27:03 +00:00
|
|
|
|
|
|
|
- ./bootstrap (needed if you downloaded from SVN)
|
|
|
|
|
|
|
|
- ./configure
|
|
|
|
|
|
|
|
- make
|
2006-09-01 22:31:10 +00:00
|
|
|
|
|
|
|
To make the libraries accessible for running resp. developing applications
|
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
- make install
|
2006-09-01 22:31:10 +00:00
|
|
|
|
2006-09-02 09:50:22 +00:00
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
@section libburner Libburner
|
2006-09-02 09:55:46 +00:00
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
libburner is a minimal demo application for the library libburn
|
2007-08-11 07:51:04 +00:00
|
|
|
(see: libburn/libburn.h) as provided on http://libburnia-project.org .
|
2008-12-17 09:34:53 +00:00
|
|
|
It can list the available devices, can burn to recordable CD, DVD, or BD,
|
|
|
|
can blank a CD-RW or DVD-RW, and can format unformatted DVD-RW, BD-R, or BD-RE.
|
2006-09-06 15:27:03 +00:00
|
|
|
|
|
|
|
It's main purpose, nevertheless, is to show you how to use libburn and also
|
2006-12-03 15:56:27 +00:00
|
|
|
to serve the libburnia team as reference application. libburner does indeed
|
2008-12-17 09:34:53 +00:00
|
|
|
define the standard way how above gestures can be implemented and stay upward
|
|
|
|
compatible for a good while.
|
2006-09-06 15:27:03 +00:00
|
|
|
|
|
|
|
@subsection libburner-help Libburner --help
|
|
|
|
<pre>
|
|
|
|
Usage: test/libburner
|
2009-12-26 22:25:45 +00:00
|
|
|
[--drive address|driveno|"-"] [--audio]
|
2008-12-17 09:34:53 +00:00
|
|
|
[--blank_fast|--blank_full|--format] [--try_to_simulate]
|
2009-12-26 22:25:45 +00:00
|
|
|
[--multi] [one or more imagefiles|"-"]
|
2006-09-06 15:27:03 +00:00
|
|
|
Examples
|
|
|
|
A bus scan (needs rw-permissions to see a drive):
|
|
|
|
test/libburner --drive -
|
2006-11-24 16:18:42 +00:00
|
|
|
Burn a file to drive chosen by number, leave appendable:
|
|
|
|
test/libburner --drive 0 --multi my_image_file
|
|
|
|
Burn a file to drive chosen by persistent address, close:
|
2006-10-20 13:58:53 +00:00
|
|
|
test/libburner --drive /dev/hdc my_image_file
|
2006-09-06 15:27:03 +00:00
|
|
|
Blank a used CD-RW (is combinable with burning in one run):
|
2006-10-20 13:58:53 +00:00
|
|
|
test/libburner --drive /dev/hdc --blank_fast
|
2007-02-07 17:49:52 +00:00
|
|
|
Blank a used DVD-RW (is combinable with burning in one run):
|
|
|
|
test/libburner --drive /dev/hdc --blank_full
|
2008-12-17 09:34:53 +00:00
|
|
|
Format a DVD-RW, BD-RE or BD-R:
|
|
|
|
test/libburner --drive /dev/hdc --format
|
2007-02-07 17:49:52 +00:00
|
|
|
Burn two audio tracks (to CD only):
|
2006-10-20 13:58:53 +00:00
|
|
|
lame --decode -t /path/to/track1.mp3 track1.cd
|
|
|
|
test/dewav /path/to/track2.wav -o track2.cd
|
|
|
|
test/libburner --drive /dev/hdc --audio track1.cd track2.cd
|
2006-11-24 16:18:42 +00:00
|
|
|
Burn a compressed afio archive on-the-fly:
|
2006-09-06 15:27:03 +00:00
|
|
|
( cd my_directory ; find . -print | afio -oZ - ) | \
|
2006-11-16 16:53:42 +00:00
|
|
|
test/libburner --drive /dev/hdc -
|
2007-02-07 17:49:52 +00:00
|
|
|
To be read from *not mounted* media via: afio -tvZ /dev/hdc
|
2006-09-06 15:27:03 +00:00
|
|
|
</pre>
|
2006-11-24 12:41:39 +00:00
|
|
|
libburner has two companions, telltoc and dewav, which help to perform some
|
|
|
|
peripheral tasks of burning.
|
|
|
|
|
|
|
|
telltoc prints a table of content (sessions, tracks and leadouts), it tells
|
2007-02-07 17:49:52 +00:00
|
|
|
about type and state of media, and also is able to provide the necessary
|
|
|
|
multi-session information for program mkisofs option -C. Especially helpful
|
|
|
|
are its predictions with "Write multi" and "Write modes" where availability
|
|
|
|
of "TAO" indicates that tracks of unpredicted length can be written.
|
2006-11-24 16:18:42 +00:00
|
|
|
See: test/telltoc --help.
|
2006-11-24 12:41:39 +00:00
|
|
|
|
|
|
|
dewav extracts raw byte-swapped audio data from files of format .wav (MS WAVE)
|
|
|
|
or .au (SUN Audio). See example in libburner --help.
|
2006-09-06 15:27:03 +00:00
|
|
|
|
|
|
|
@subsection libburner-source Sourceode of libburner
|
|
|
|
|
|
|
|
Click on blue names of functions, structures, variables, etc in oder to
|
|
|
|
get to the according specs of libburn API or libburner sourcecode.
|
2006-09-02 09:55:46 +00:00
|
|
|
|
2006-09-06 15:27:03 +00:00
|
|
|
@include libburner.c
|
2006-08-15 20:37:04 +00:00
|
|
|
*/
|