LinuxQuestions.org
Help answer threads with 0 replies.
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 08-13-2009, 05:48 PM   #1
tensigh
Member
 
Registered: Mar 2004
Location: Tokyo, Japan
Distribution: Backtrack 5 R3
Posts: 145

Rep: Reputation: 15
Capture sound from soundcard - tutorials are close but not quite


Hello,

I'm running Ubuntu Intrepid Ibid running kernel 2.6.27-14-generic on a Toshiba laptop. I'm trying to capture sound from a radio broadcast from NHK here in Japan and I can't quite get it. The broadcast is initiated from a Flash object so I can't use streamripper.

I can open PulseAudio volume controls in Gnome and I switched my input source in PulseAudio Device Controller to 'Monitor Source of ALSA PCM on front:0 (CONEXANT Analog) via DMA' and I can see the sound output in Gnome. When I try to record from arecord I'm still getting a blank file with no sound.

How do I tell arecord how to use the monitor driver?

Thanks
 
Old 08-13-2009, 06:31 PM   #2
mushroomboy
Member
 
Registered: Jan 2006
Distribution: Debian Testing ALWAYS!!!
Posts: 363

Rep: Reputation: 43
http://www.avsforum.com/avs-vb/showthread.php?t=1059866

One person mentions a simple solution... Route autio out to autio in, physical route. Simple yet...Well yet ugly.
 
Old 08-13-2009, 09:44 PM   #3
jlinkels
LQ Guru
 
Registered: Oct 2003
Location: Bonaire, Leeuwarden
Distribution: Debian /Jessie/Stretch/Sid, Linux Mint DE
Posts: 5,195

Rep: Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044Reputation: 1044
If I understand well, you have sound on Line In, and you want to capture that to a file, correct?

If you are using arecord, issue these commands first:

Code:
/usr/bin/amixer -c 0 sset 'Line',0 100%,100% mute  capt
/usr/bin/amixer -c 0 sset 'PCM',0 100%,100% unmute  nocap
-c 0 is your first audio card, -c 1 the second one, etc.

After you issued these commands, do:

Code:
arecord -r 8 -D plughw:0,0
(You might want to do arecord -L to list your audio devices, I always forget how to address them, but plughw is generic)

If you see mainly '{' and '|' characters on your screen, you are NOT capturing any sound. But that is unlikely.

If you see the screen full of garbage, you are capturing.

So choose a sample rate, resolution and pipe the output in your file:
Code:
arecord -f CD -D plughw:0,0 > myaudiofile.wav
Not that these files are uncompressed and grow large quickly.

jlinkels
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Sound heard during soundcard detection but no sound when playing CD thanhvn Linux - Software 6 07-04-2005 12:30 PM
JMF detect sound driver and capture sound shan0004 Programming 0 01-10-2005 10:58 PM
Soundcard or sound system problem: no sound! nmoog Linux - Newbie 4 08-31-2004 11:27 PM
Some hard questions I believe -Channel Bindings(soundcard), ntfs-capture and apm?? Nihongoga Slackware 12 07-22-2004 12:25 PM
ac97 sound SO CLOSE!!!! Silent_Gunner Linux - Hardware 1 10-08-2003 12:48 AM

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

All times are GMT -5. The time now is 03:12 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