LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-08-2013, 02:34 PM   #1
alex170872
LQ Newbie
 
Registered: Oct 2008
Posts: 18

Rep: Reputation: 0
Question How can I capture/record audio on Linux?


I have firefox (19.0.2) running on a Linux Laptop with Fedora 12 and listen to a web-radio stream. How can I record this stream and save it into e.g. a mp3 file?

After searching the web for a solution I can record the following trials I have made:

(1) With audacity I am able to record audio, but the microphone input of the laptop! So its with a lot of noise and all the surrounding noises. And please expect that I never heard of 'alsa' or 'pulse-audio' (and have no idea what that means). Simple-to-follow suggestion how to get audacity to record the audio that is going to the internal loudspeakers are appreciated nevertheless.

(2) I tried with lame:
arecord -f cd -t raw | lame -x -r test.mp3
but all I get was just noise. I tried some settings (option -D), but still just loud noise (and only noise).

(3) I searched for a simple firefox plugin. Should not be hard to code a plug-in which just saves the recorded stream. This plug-in even could filter out times when the buffer ran out. THERE IS NO SUCH PLUGIN! Or I am too stupid to find it. Point me out to such a plug-in or tell me, how to create a plug-in for firefox - I will do it myself!

Suggestions to the above points or something else, which is easy and just record the audio stream received by LAN would be great!!
 
Old 04-08-2013, 02:54 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
I would just use MPlayer to dump the audiostream to disk and encode it after you have done that, like described here: http://en.linuxreviews.org/HOWTO_Dum...m_the_Internet

OFFTOPIC: Fedora 12 is way out of date and totally unsupported, so you get neither bugfixes nor, more important, security updates for it. It is strongly recommended to use a supported version.
 
Old 04-08-2013, 03:01 PM   #3
alex170872
LQ Newbie
 
Registered: Oct 2008
Posts: 18

Original Poster
Rep: Reputation: 0
Great! Your suggestion actually works. And it looks like to noise issue is with lame as I am having problems converting a wav into mp3. But that is a different issue...


Thanks a lot
 
Old 04-08-2013, 04:14 PM   #4
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
This may still work...
Record what comes out of your speakers

I have used in other distros very successfully to capture my grooveshark audio.
 
Old 04-09-2013, 08:11 AM   #5
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301Reputation: 1301
I recommend streamripper, it is designed to rip streams.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Soul Capture 2.0.0 has now been released audio/video capture LXer Syndicated Linux News 0 04-01-2013 12:01 PM
Running Xvidcap (for screen capture ) + audacity (for audio capture) simultaneously vikram_cvk Linux - Software 2 05-20-2011 03:26 AM
Capture/Record the shell session in Linux jigneshs Programming 4 06-14-2007 09:00 AM
How do I capture/record streaming audio? AlanQ Linux - Software 7 01-18-2006 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration