Tag Archives: audio

Dump audio from video, revisited

From some post on some mailing list:

mencoder -v -ovc copy -oac mp3lame -o out.avi INPUT-FILE -ss HH:MM:SS
mplayer -v -vo null -vc dummy -ao pcm -dumpaudio -dumpfile out.mp3 out.avi

Dumping audio from video file

See here.

So I just use:

mplayer -dumpaudio <source> -dumpfile <destination>

It’s always useful to see beforehand what the format of audio in the source is.

Copying an audio CD in ArchLinux

dd didn’t work. This thread was most helpful: http://nixcraft.com/getting-started-tutorials/10751-linux-copy-audio-cd-track-hard-disk.html

So I used cdrdao, like this:

dmesg | grep scsi # find CD-ROM's SCSI "bus address"
cdrdao copy --device 1,0,0