Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
command line only audio recorder?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
d4mo
Guru
Guru


Joined: 27 Jun 2005
Posts: 430

PostPosted: Mon Feb 11, 2008 3:08 pm    Post subject: command line only audio recorder? Reply with quote

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
View user's profile Send private message
ezod
n00b
n00b


Joined: 05 Nov 2007
Posts: 34
Location: Windsor

PostPosted: Mon Feb 11, 2008 4:32 pm    Post subject: Reply with quote

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
View user's profile Send private message
MostAwesomeDude
Guru
Guru


Joined: 12 Aug 2007
Posts: 373

PostPosted: Mon Feb 11, 2008 7:22 pm    Post subject: Reply with quote

You can do the same thing with arecord, for ALSA recording.
_________________
Don't believe the "n00b" under my name.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum