Security Consulting
  Fun     PGP     HOAX     Java     SPAM     Books     Linux     Windows     Privacy     Switches     Back    

Playing music under Linux

Recording life streams (beware of lega issues):
    mplayer -dumpfile /home/ram/file.mp3 -dumpstream location
There are other ways of recording things. For example the Linux Radio Timeshift HOWTO, which shows you how to setup a schedule that records your favorite radio shows.

Also check the MPlayer FAQ.

Codecs for Mplayer.

Making Audio CDs out of MP3

Use the following commands to generate WAV files from MP3s and then burn them onto CD:
    IFS=$(echo -e "\n\r"); for file in `ls *.mp3`; do mpg321 -s $file | sox -t raw -r 44100 -s -w -c 2 - $file.wav; done
    cdrecord -pad -v dev=/dev/hdc -dao speed=24 driveropts=burnfree *.wav

Sampling Audio CDs into MP3s

To sample I use grip with cdda2wav as the ripper and lame as the encoder.

Changing Ogg files to MP3 files

    for i in *.ogg; do ogg123 -d wav -f - "$i" | lame -b 320 -h - > "$i".mp3; done



CopyLeft (l) 2003 by Raffael Marty