LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-11-2010, 05:24 PM   #1
rmcellig
Member
 
Registered: Sep 2009
Posts: 252
Blog Entries: 1

Rep: Reputation: 24
Unable to record from line in on PC


I have another thread going on where I cannot record from the line in on my iMac running Ubuntu dual boot.

In this case, i have a Dell PC that I am trying to record from the same radio I use to record from on my Mac. On my iMac and my G4, recording from the radio works fine. i tried recording from the Dell with no luck. What should I do? The cable is plugged into the proper port on the back of the Dell.

http://www.alsa-project.org/db/?f=65...11059cf6b566d5

Last edited by rmcellig; 11-10-2010 at 02:06 PM.
 
Old 10-11-2010, 07:57 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Try running gmix and checking the input volume settings in the "Connector" dialog.

/usr/bin/gnome-volume-control
 
Old 10-11-2010, 08:21 PM   #3
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
Do I just type gmix in a terminal window?
 
Old 10-12-2010, 03:45 PM   #4
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
Runs fine now. Not sure why. Still no luck getting the line-in to work on my dual boot copy of Ubuntu 10.04 on my iMac . This is the machine I really need to get this working.
 
Old 10-13-2010, 09:18 PM   #5
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
Quote:
Originally Posted by rmcellig View Post
Runs fine now. Not sure why.
I hate that when stuff just starts working. It means I didn't learn anything.

The command line is "gnome-volume-control." Go to the input tab and check all the input items.

You might also run, from the command line, "sudo alsamixer" and move through all the items. You will find more items there than you will find in gmix.

One of my complaints about Gnome it is that it sometimes in its efforts to make stuff simple, it makes them simpleton.
 
Old 10-13-2010, 09:30 PM   #6
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
I was about to make the same suggestion about alsamixer.

@ rmcellig
Below is an attachment of my soundcard with line-in enable

Use the TAB key or the F-keys to move to the Capture Channel. Then use the arrow keys to move under the line-in channel. Now press the spacebar to toggle it as the capture source.

Now hit the ESC key to exit and run the command below.

Next, this part must be done as root. Type

Code:
sudo alsactl store
The next part is to test.
Attached Thumbnails
Click image for larger version

Name:	alsamixer.jpg
Views:	22
Size:	67.7 KB
ID:	4850  

Last edited by dv502; 10-13-2010 at 10:15 PM.
 
Old 10-13-2010, 10:34 PM   #7
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
@ rmcellig

BTW, what application are you using to record the audio?

If you're using a terminal, tell us what command you are using -- ffmpeg, sox, arecord, etc.

The reason I asked is because some recording software use OSS. ALSA or pulse and sometimes supports all three.

Audacity for example uses OSS and ALSA. You need to use the correct mixer (i.e alsamixer for ALSA or gnome-volume-control for OSS).

In audacity, you go to Edit>Preferences and then devices. Choose OSS or ALSA from the Host drop down box and then hit Ok.

Hope this helps.

- Cheers

Last edited by dv502; 10-13-2010 at 10:57 PM.
 
Old 10-20-2010, 07:51 PM   #8
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
Hi DV502,

I have been away from my Ubuntu 10.10 partition for a while because I had some stuff I needed to do in the Mac partition. I haven't had a chance to try out what you suggested in your last couple of posts. I will tomorrow. I am using arecord to record but the fact that I don't even see any activity in Sound Preferences has me wondering what is going on. On my PC, in Sound preferences, I can see that there is audio activity going on but in Ubuntu on my Mac, nothing at all. I am in my Mac partition now because I have to record a radio show which I cannot do in my Ubuntu partition, that's why I will try your suggestions tomorrow when I am back in my Ubuntu partition.

Do you have Ubuntu installed on an iMac like I do? If so does it work OK? Sory for the confusion. I just noticed that my post was about my Dell PC. That works fine now. I am getting mixed up with the posts I have out there regarding my iMac Ubuntu problems.

I know this might sound strange from a Mac user but I really like Ubuntu alot!!

Last edited by rmcellig; 10-20-2010 at 07:57 PM.
 
Old 10-20-2010, 10:28 PM   #9
dv502
Member
 
Registered: Sep 2006
Location: USA - NYC
Distribution: Whatever icon you see!
Posts: 642

Rep: Reputation: 57
Quote:
Originally Posted by rmcellig View Post
Do you have Ubuntu installed on an iMac like I do?
No, I do not have ubuntu nor do I have an iMac.

I have a PC dual booting pclinuxos and arch.

The method I mentioned above works for me. The important part is selecting the correct source (i.e line) and which mixer device to use i.e ALSA or OSS.

My soundcard is a Soundblaster 16 and it uses the ens1371 module.

I have used both ALSA and OSS to record audio from the line in port with no problems at all. I personally prefer the command line and I use ffmpeg and arecord to record the audio.

Below are a few examples to record with ffmpeg and arecord either using ALSA or OSS.

ALSA Recording CD Quality

Code:
arecord -D hw:0 -f cd out.wav
Or

Code:
ffmpeg -f alsa -i hw:0 -ar 44100 -ac 2 out.wav
OSS recording CD Quality

Code:
ffmpeg -f oss -i /dev/dsp -ar 44100 -ac 2 out.wav
Note: if you have more than one audio device, use the correct device ( i.e hw:1,hw:2,etc or /dev/dsp1,/dev/dsp2,etc ) to where the line-in is connected to.

The out.wav could be any file name.

I use WAV recording to get the best sound, this puts less strain on the CPU as it doesn't have to record and encode the stream at the same time.

After recording, I then convert them to ogg or mp3.

Anyway, I hope these suggestions helps as it works for me.

- Cheers

Last edited by dv502; 10-21-2010 at 12:06 AM.
 
Old 10-22-2010, 07:17 AM   #10
rmcellig
Member
 
Registered: Sep 2009
Posts: 252

Original Poster
Blog Entries: 1

Rep: Reputation: 24
No audio on Line In

First off I want to make sure that the General forum is the right forum for my question.

I am running Ubuntu 10.10 in dual boot mode on my 24" iMac. Everything is working fine except I am unable to record my radio shows from my Radio that is plugged into my iMac. When I am in the OS X partition, I have no problems recording. In Ubuntu, there is no sound activity in the Sound Preference window. Can you please let me know what I should do, step by step so that I am able to record from my radio?

Let me know if you require more information that I can post back.

Last edited by rmcellig; 11-10-2010 at 02:06 PM.
 
Old 10-22-2010, 11:02 PM   #11
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,324
Blog Entries: 28

Rep: Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142Reputation: 6142
From a command line, try running alsamixer.

It may give you more options to configure.

Aside: I have become convinced that Pulseaudio is not ready for prime time. On my Slackware boxes, I have never encountered the audio problems that I regularly encounter in Ubuntu. Slack does not use Pulseaudio.
 
Old 11-11-2010, 10:20 AM   #12
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
I've merged the two threads discussing the same issue to keep all discussion in the same place.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
awk command line: blank line record sep, new line field sep robertmarkbram Programming 4 02-21-2010 05:25 AM
Help! I can't record line-in/mic on ALSA cs46xx! akp913 Debian 22 03-01-2009 07:30 AM
Line-In over Alsa: Record mono only Vinter Linux - Hardware 1 04-10-2006 12:37 AM
Unable to record mic-in with SoundBlaster Live! while able to record other sources max76230 Linux - Newbie 2 03-14-2005 04:31 AM
[ALSA] Noisy playback after I record from line in halfzware_shag Linux - Software 0 11-27-2004 08:49 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:00 AM.

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