LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 12-27-2013, 07:18 PM   #1
Holering
Member
 
Registered: Feb 2010
Distribution: Slackware - Gentoo - Debian
Posts: 197

Rep: Reputation: 22
Can't capture audio without introducing noise (sound-card line-in or capture card)


Slackware64 14 and Gentoo.

No matter what I try it seems I can't get a clean recording of audio from soundcard's line-in or capture card; everything works fine in Windows however. Any attempt to record introduces pops, clicks and static that resembles a cheap LP record player. Playback sounds perfect with soundcard line-in, but streaming capture-card audio sounds ridiculously bad (full of screetching, static and sqeaking).

I think the I/O is messed up but I don't know where. My entire system slows down when recording any video stream from a game emulator. When streaming from capture card dmesg gets flooded with buffer overflow messages (video captures result in dropped frames and corruption).

I've tried arecord and audacity to capture audio from sound-card line-in with no luck. The best I've managed is making a buffer of 10 milliseconds (or more) in audacity which gets rid of static and pops, but then the audio skips as it's being captured.

This is really bothersome since I keep playing my laserdisc player repeatedly and wearing it out, without having a successful capture.

Is there a known problem with my AMD AM3+ motherboard (GA-970A-UD3)? I'm using 16gb of ram, motherboard sound, and PVR-150 capture card with ivtv drivers.

Any help would be much appreciated.

Kind regards

EDIT:
Seems like others have reported problems with IOMMU on this GA-970A-UD3 board. Been using iommu=pt which pretty much disables iommu (even if it's enabled in the bios which I do). Could this be related to the problems I'm having?

Last edited by Holering; 01-01-2014 at 10:45 PM.
 
Old 12-27-2013, 09:30 PM   #2
ericson007
Member
 
Registered: Sep 2004
Location: Japan
Distribution: CentOS 7.1
Posts: 735

Rep: Reputation: 154Reputation: 154
Iommu is to do with passing pci interfaces to virtual machines. That will not affect your soundcard recording quality.

If you are trying to use just the standard onboard stuff it is expected. The cheap chips used as dac really don't work that well. If possible get dedicated hardware that support ASIO. Then you can have a lot more freedom to change many things. Your initial tuning the buffer is the correct way of fault finding. But also consider bit rate and a few other things.

I have a producer usb mic from maudio. Using it's ASIO basically gets rid of my pops and clicks. Sometimes external noise is still captured, but those can be taken out with filters.

Interesting read.
http://www.soundonsound.com/sos/oct0...ician_1006.htm

Last edited by ericson007; 12-27-2013 at 09:33 PM.
 
1 members found this post helpful.
Old 12-28-2013, 05:31 AM   #3
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
in case you have not tried it, use a format of some quality in your arecord test such as

Code:
arecord -d 5 -f cd test.wav 

man arecord (reveals more)
ignoring IOMMU, what are you using as the foundation for sound recording of streaming input?

eg alsa, pulseaudio, <someappname>
 
1 members found this post helpful.
Old 12-28-2013, 06:42 AM   #4
Drakeo
Senior Member
 
Registered: Jan 2008
Location: Urbana IL
Distribution: Slackware, Slacko,
Posts: 3,716
Blog Entries: 3

Rep: Reputation: 483Reputation: 483Reputation: 483Reputation: 483Reputation: 483
this what i did for mine http://www.linuxquestions.org/questi...el-4175488847/
 
1 members found this post helpful.
Old 01-01-2014, 10:52 PM   #5
Holering
Member
 
Registered: Feb 2010
Distribution: Slackware - Gentoo - Debian
Posts: 197

Original Poster
Rep: Reputation: 22
I'm using alsa as my foundation.

Still have problems with noise. Don't seem to have any problems with iommu or irq conflicts either (loopback sounds great and capture card problems were due to mplayer). Noise is only introduced after arecord, and I noticed it happens more so if period size is set too close to buffer size. Still don't know how to totally eliminate it.

I found audacity records fine without noise with buffer time of 50ms, but that program is too heavy and I can't use it through a script.

Last edited by Holering; 01-01-2014 at 10:54 PM.
 
Old 01-02-2014, 01:53 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
Hi

do either of those distros have cdparanoia
http://www.xiph.org/paranoia/faq.html#usecdparanoia

this app solves a number of sound issues common to both cds and dvd drives

I may be wrong but maybe you are trying to capture an audio disk etc?

so you are ripping
 
Old 01-02-2014, 07:36 PM   #7
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,019

Rep: Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630Reputation: 3630
Wonder if some volume setting is too high. Most times, I'd suspect system is way over taxed.
 
Old 01-02-2014, 09:33 PM   #8
Holering
Member
 
Registered: Feb 2010
Distribution: Slackware - Gentoo - Debian
Posts: 197

Original Poster
Rep: Reputation: 22
Now audacity is starting to introduce noise...

For the record, I'm recording from analog line-in from different analog sources. I'm not ripping digital data. They also sound fine with loopback.
 
  


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
Sound card conflict with Vid-Capture card ALSA Optimistic Debian 5 11-05-2007 11:20 PM
USB 2.0 Video Audio Capture Adapter Adaptor Card namit Linux - Hardware 0 03-27-2007 12:21 PM
[SOLVED] Capture sound-card to wav gypsy_rabbi Linux - Software 2 03-19-2007 06:50 AM
Need Recommendation for PCI card = SVGA + audio + video capture lothario Linux - Hardware 4 03-24-2005 05:44 PM
no sound because of capture card? eloyj88 Linux - Hardware 0 01-01-2005 12:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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