[linux-audio-user] mp3 live-encoding with sox and lame

Emiliano Grilli emillo at libero.it
Mon Dec 9 04:22:01 EST 2002


   
> i want to have realtime-encoding of my soundcard
> line-in with sox and lame (or something similar - i
> need command line tools). Now i use
> 
> rec -t wav -r 44100 - | lame -m m -a -b 64 -

Have you tried with ecasound? e.g.:

	ecasound -i/dev/dsp -o file.mp3

in your .ecasoundrc you can set options for lame:
	...
	ext-mp3-output-cmd = lame -b 128 -x -S - %f
	...

I don't know of 5 hours recording, but I think that in this way you can
bypass sox.

HTH

-- 
  .---------------------.
  | Emiliano Grilli     |
  | emillo at libero.it    |
  | Linux user #209089  |
  '---------------------'




More information about the Linux-audio-user mailing list