HOME - Recent Changes - Search:

Academic Work


Personal

* pot de départ


dblp


(:twitter:)

-----

[ edit | logout ]
[ help | sandbox | passwd ]

Command-line CD burning

#############################

(*) Identifying the burning device

cdrecord -scanbus

(*) Erasing a CD-RW

cdrecord dev=<a,b,c> blank=<x> -v

Where:

x -- fast (quick erase) or all (complete erase)

(*) Burning an ISO (.raw) file

cdrecord dev=<a,b,c> [speed=d] -v -data <file.raw>

(*) Creating an image file from the current directory recursively

mkisofs -J -r -o <output.raw> <dir>

Where:

-J -- Joliet, i.e. support for long file names
-r -- files will be readable by anyone
<dir> -- which directory to traverse recursively

(*) Making an audio CD from mp3 files

Make your collection of mp3 files. Then:

for i in *.mp3
do
   mpg123 -s $i | cdrecord dev=<a,b,c> -audio -pad -swab -nofix -
done
cdrecord dev=<a,b,c> -fix

Where:

mpg123 -s -- print to stdout
-swab -- the byte-order of mpg123 must be reversed

Test run:

Add the option -dummy to switch off the laser.

Note:

There'll be 2 seconds pause between tracks, since we use TAO (track at once) mode. If you want no pause, you'll need DAO (disk at once) mode. It is best supported by the program cdrdao.

(*) OK, nice, but how to make a mixed CD?

cdrecord dev=<a,b,c> -nofix -v -data <image.raw>
for i in *.mp3
do
   mpg123 -s $i | cdrecord dev=<a,b,c> -audio -pad -swab -nofix -
done
cdrecord dev=<a,b,c> -fix

That is, first we write the data image, then we add the audio tracks, and finally the CD is fixed.

Cloud City


anime | bash | blogs | bsd | c/c++ | c64 | calc | comics | convert | cube | del.icio.us | digg | east | eBooks | egeszseg | elite | firefox | flash | fun | games | gimp | google | groovy | hardware | hit&run | howto | java | javascript | knife | lang | latex | liferay | linux | lovecraft | magyar | maths | movies | music | p2p | perl | pdf | photoshop | php | pmwiki | prog | python | radio | recept | rts | scala | scene | sci-fi | scripting | security | shell | space | súlyos | telephone | torrente | translate | ubuntu | vim | wallpapers | webutils | wikis | windows


Blogs and Dev.

* Ubuntu Incident
* Python Adventures
* me @ GitHub


Places

Debrecen | France | Hungary | Montreal | Nancy


Notes

full circle | km


Hobby Projects

* Jabba's Codes
* PmWiki
* Firefox
* PHP
* JavaScript
* Scriptorium
* Tutorials
* me @ GitHub


Quick Links


[ edit ]

View - Edit - History - Attach - Print *** Report - Recent Changes - Search
Page last modified on 2007 November 24, 17:25