Marketplace:

 
Domain name registration: Cheap domain names from 895cheap-domain.com
Cheap domain registration, buy domain name or transfer domain names at affordable price
Register domain name or buy domain registration from $2.95 per domain year

 

   

Audio CD From Collection of MP3s

next up previous contents index

We can use cdrdao to create an audio CD from a colleciton of mp3 files. On Mint (98.29) this is the way to do it since cdrecord fails. The only complication is the need for a table of contents file, but it is easy to produce. There are issues to do with gaps but this can safely be ignored. Either wav or cdr files can be written by cdrdao to a CD-R disk.

Put the following into /usr/local/bin/mkcdrtoc:

  #!/bin/sh
  for i in *.mp3; do
    if [ ! -e $(basename $i .mp3).cdr ]; then
      mpg123 --cdr - $i > $(basename $i .mp3).cdr;
    fi
  done
  printf "CD_DA\n" > disk.toc
  for i in *.cdr; do
    printf "TRACK AUDIO\nFILE \"$i\" 0\n" >> disk.toc
  done
  printf "\n========== disk.toc ==================\n"
  cat disk.toc
  printf "========================================\n"
  printf "\n>>>>>>>> Now run \"cdrdao write disk.toc\" <<<<<<<<<<\n"


Then the following two steps will convert all mp3 files in the current directory to cdr, then burn them to a CD-R or CD-RW. If you want to change the order of the tracks, simply edit disk.toc.

  $ mkcdrtoc
  $ cdrdao write disk.toc


We can alternatively use cdrecord:

  $ for i in *.mp3; do mpg123 --cdr - $i > $(basename $i .mp3).cdr; done
  $ cdrecord -v dev=0,1,0 -audio -pad *.cdr



next up previous contents index


Copyright (c) 1995-2004

 

      

Marketplace:
Facts: " Men are from Mars. Women are from Venus. Computers are from hell.   "  

Wednesday 7 January 2009 07:47:48 1231314468