Record sound from Sound Card using OGG

Record sound from Sound Card using OGG

Post by tuff » Wed, 26 May 2004 23:28:09



I need to record audio from my sound card input/inline
to ogg format. What is the best method to do this in linux?
I Hope I can do this from the command line.

Tuffu
 
 
 

Record sound from Sound Card using OGG

Post by Kevi » Thu, 27 May 2004 00:13:07


If you like command line, then certainly use SoX. It should be
on your distribution CD(s) and at sourceforge.net

G'luck...

--
PLEASE post a SUMMARY of the answer(s) to your question(s)!
Unless otherwise noted, the statements herein reflect my personal
opinions and not those of any organization with which I may be affiliated.

 
 
 

Record sound from Sound Card using OGG

Post by tuff » Thu, 27 May 2004 00:49:01

On 25 May 2004 15:13:07 GMT,



Well how do I grab the input from the sound card line in
and save it to the file? There are plenty of examples
on who to convert files, but not how to grab the raw data
and save it to a file.

Thanks.
 
 
 

Record sound from Sound Card using OGG

Post by Robert M. » Thu, 27 May 2004 03:52:12


The 'rec' command, which IIRC is part of sox, does that.
There was a recent thread in a linux-related newsgroup that
had many responses with URLs to lots of different programs
in case you want something fancier.

Good luck.

Robert Riches
XXXX@XXXXX.COM
(Yes, that is one of my email addresses.)
 
 
 

Record sound from Sound Card using OGG

Post by Andy Baxte » Thu, 27 May 2004 05:33:18

tuffu said:




I use brec, which in debian is in the 'bplay' package.

$ brec -S -s 44100 -b 16 -w file.wav

will record a file from line in at CD stereo quality in wav format, which
you can convert to ogg later using sox or oggenc. (oggenc is probably
better).

I've been recording vinyl albums like this, and the wav file for two sides
works out around 500 Mbytes. Once I've recorded it on the audio machine
in the living room, I move it to my workstation upstairs, then split the
tracks using rezound, then burn it to CD.

If you want to store recorded wav tracks with no loss of quality (compared
to ogg or mpg123 which are lossy formats), have a look at flac. (only
about 50% compression though).

Or if you have alsa installed, try arecord (another command line program).

If you want a gui program, rezound is a nice audio editor which lets you
record from line in with a level indicator to adjust the volume. It will
also start recording automatically when the level goes above a threshold.

--
http://www.yqcomputer.com/

remove 'n-u-l-l' to email me. html mail or attachments will go in the spam
bin unless notified with [html] or [attachment] in the subject line.
 
 
 

Record sound from Sound Card using OGG

Post by unru » Thu, 27 May 2004 05:43:50

Andy Baxter < XXXX@XXXXX.COM > writes:

]tuffu said:

]> On 25 May 2004 15:13:07 GMT,


]>>> I need to record audio from my sound card input/inline
]>>> to ogg format. What is the best method to do this in linux?
]>>> I Hope I can do this from the command line.
]>>
]>> If you like command line, then certainly use SoX. It should be
]>> on your distribution CD(s) and at sourceforge.net
]>>
]>> G'luck...
]>>
]>
]> Well how do I grab the input from the sound card line in
]> and save it to the file? There are plenty of examples
]> on who to convert files, but not how to grab the raw data
]> and save it to a file.
]>
]> Thanks.

]I use brec, which in debian is in the 'bplay' package.

]$ brec -S -s 44100 -b 16 -w file.wav

]will record a file from line in at CD stereo quality in wav format, which
]you can convert to ogg later using sox or oggenc. (oggenc is probably
]better).

]I've been recording vinyl albums like this, and the wav file for two sides
]works out around 500 Mbytes. Once I've recorded it on the audio machine
]in the living room, I move it to my workstation upstairs, then split the
]tracks using rezound, then burn it to CD.

]If you want to store recorded wav tracks with no loss of quality (compared
]to ogg or mpg123 which are lossy formats), have a look at flac. (only
]about 50% compression though).

]Or if you have alsa installed, try arecord (another command line program).

]If you want a gui program, rezound is a nice audio editor which lets you
]record from line in with a level indicator to adjust the volume. It will
]also start recording automatically when the level goes above a threshold.

gnoise, gramaphone, arecord, krec,....
 
 
 

Record sound from Sound Card using OGG

Post by zentar » Fri, 28 May 2004 21:56:21


I use this: (watch the wordwrap, the arecord line should
be one long line).


#!/bin/sh
#record music
arecord -f S16_LE -c1 -r 44100 -t wav | oggenc - -o
/home/zentara/`date +%d%b%y%H%M%S`.ogg



--
I'm not really a human, but I play one on earth.
http://www.yqcomputer.com/