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 12-07-2012, 05:35 PM   #1
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 740

Rep: Reputation: 81
Question How to use mplayer to clean-up audio static and send it back to pulseaudio?


Hello.

So, I've got a bit of a challenge before me. I'm going to be doing a Pathfinder RPG audio/video conference game with friends all over the US, plus a few who will be here in person. I'll be using Google+ hangouts and Maptool for this, along with Linux Mint 14 64-bit.

The problem I've run into is that the best microphone I could afford--not too bad, but nothing special--produces a certain amount of background "static" when I use it. It's a Logitech Labtec Desktop Microphone 600. Link:

http://www.amazon.com/Logitech-Labte.../dp/B000O7K4LO

I get decent audio volume without turning the mic boost up above roughly 30%--which is good, but this puts a certain amount of static into the signal, as seems to be normal with low-end microphone hardware. As a guitarist, I know that this can be mitigated in software--through "noise gates" and such--but I've never tried to do it on Linux.

The method I want to try involves using mplayer's "sinesupress" function to eleminate a certain range of static. Unfortunately, I don't know how to send the mic's input from pulseaudio to mplayer and back to pulseaudio (or at least back into Google+ hangouts, via Firefox).

Quote:
sinesuppress[=freq:decay]
Remove a sine at the specified frequency. Useful to get rid of
the 50/60Hz noise on low quality audio equipment. It probably
only works on mono input.
<freq>
The frequency of the sine which should be removed (in
Hz) (default: 50)
<decay>
Controls the adaptivity (a larger value will make the
filter adapt to amplitude and phase changes quicker, a
smaller value will make the adaptation slower) (default:
0.0001). Reasonable values are around 0.001.
How can I accomplish this? If another method has worked for you (or looks really good), please point me at that, too!

Thanks a bunch.

--Dane
 
Old 12-11-2012, 01:45 PM   #2
H_TeXMeX_H
Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
First, I recommend turning off mic boost, this introduces lots of noise.

You can wrap a thin cloth or tissue over the end of the mic and hold it in place with a rubber band, and that should further reduce noise (mostly wind/breath noise).

Try cleaning the dust off the contacts on both ends of the jack and make sure it fits snugly.

Try using mplayer first and see if it helps.

Last edited by H_TeXMeX_H; 12-11-2012 at 01:46 PM.
 
Old 12-11-2012, 07:06 PM   #3
DaneM
Member
 
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 740

Original Poster
Rep: Reputation: 81
Thanks for the reply, H_TeXMeX_H.

I might try doing those things with the mic's head, but I strongly suspect that the static is from an electronic source (i.e. internal), rather than picking up on air disturbances and such. The room is small, and the air still. The sound exists whether I'm near it or not.

The tip about cleaning the jack and plug is good; that PC's pretty old.

Also, using mplayer to output to a file first is a good idea.

I recently came across information on using the pulseaudio equalizer to filter out certain frequencies--graphically or via CLI--such as mplayer would do. This has been used to reduce the vuvuzella (spelling?) noise during a recent World Cup. I'm hoping that some fiddling with this will help!

I'll post back if/when I make some progress.

Thanks again!

--Dane

Last edited by DaneM; 12-11-2012 at 07:07 PM.
 
  


Reply

Tags
microphone, mplayer, noise, pulseaudio, signal


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
audio problems-pulseaudio installation RiderG7 Linux - Software 4 04-05-2012 01:27 PM
[SOLVED] Nautilus Audio Preview (PulseAudio)? MaGicMaX Linux - Software 1 01-06-2010 12:33 AM
smplayer: video+audio stutters with pulseaudio, audio files play fine GamerX Linux - Desktop 1 02-06-2009 09:53 PM
How to use PulseAudio for audio application in Linux bapigoo9 Programming 2 08-25-2008 12:33 PM
Xine streaming audio static, Mplayer window too small deadlove75 Linux - Software 0 04-08-2004 02:08 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration