View previous topic :: View next topic |
Author |
Message |
d4mo Guru
Joined: 27 Jun 2005 Posts: 430
|
Posted: Mon Feb 11, 2008 3:08 pm Post subject: command line only audio recorder? |
|
|
I'm looking for a commandline only(no X dependencies) audio recorder that can record sound from the line-in jack. It would preferably save the file as an MP3. |
|
Back to top |
|
|
ezod n00b
Joined: 05 Nov 2007 Posts: 34 Location: Windsor
|
Posted: Mon Feb 11, 2008 4:32 pm Post subject: |
|
|
A common solution is to record using SoX to stdout, then pipe it to LAME to encode it.
Example:
Code: | sox -v 1 -t ossdsp -w -s -r 44100 -c2 /dev/dsp -t raw - | lame -x -m s -b 128 --tt "title" --ta "artist" - file.mp3 |
_________________ Aaron Mavrinac (ezod) |
|
Back to top |
|
|
MostAwesomeDude Guru
Joined: 12 Aug 2007 Posts: 373
|
Posted: Mon Feb 11, 2008 7:22 pm Post subject: |
|
|
You can do the same thing with arecord, for ALSA recording. _________________ Don't believe the "n00b" under my name. |
|
Back to top |
|
|
|