Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 12-07-2012, 05:35 PM   #1
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 865

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


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:

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).

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.
The frequency of the sine which should be removed (in
Hz) (default: 50)
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.

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

Rep: Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288Reputation: 1288
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
Registered: Oct 2003
Location: Chico, CA, USA
Distribution: Linux Mint
Posts: 865

Original Poster
Rep: Reputation: 119Reputation: 119
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!


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


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 > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:43 AM.

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