MaartenBaert / ssr

SimpleScreenRecorder, a screen recorder for Linux
http://www.maartenbaert.be/simplescreenrecorder/
GNU General Public License v3.0
2.5k stars 287 forks source link

noise sound with ALSA #270

Open lodgerz opened 9 years ago

lodgerz commented 9 years ago

Hello folks, I have a problem with simplescreenrecorder 0.3.1-1 (ArchLinux): the sound of ALSA record is noise and volume is low. http://pastebin.com/nsE7TKAR http://quellen.altervista.org/provola2.mkv http://oi57.tinypic.com/2u7t9hg.jpg (i tried to change capture/digital volume in alsamixer but i don't solved)

if i install PULSEAUDIO, the sound is good. but i dont want to install it.

$ cat /proc/asound/cards 0 [VT82xx ]: HDA-Intel - HDA VIA VT82xx HDA VIA VT82xx at 0xc7ffc000 irq 17

$ arecord -L null Discard all samples (playback) or generate zero samples (capture) default:CARD=VT82xx HDA VIA VT82xx, ALC883 Analog Default Audio Device sysdefault:CARD=VT82xx HDA VIA VT82xx, ALC883 Analog Default Audio Device front:CARD=VT82xx,DEV=0 HDA VIA VT82xx, ALC883 Analog Front speakers surround21:CARD=VT82xx,DEV=0 HDA VIA VT82xx, ALC883 Analog 2.1 Surround output to Front and Subwoofer speakers surround40:CARD=VT82xx,DEV=0 HDA VIA VT82xx, ALC883 Analog 4.0 Surround output to Front and Rear speakers surround41:CARD=VT82xx,DEV=0 HDA VIA VT82xx, ALC883 Analog 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=VT82xx,DEV=0 HDA VIA VT82xx, ALC883 Analog 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=VT82xx,DEV=0 HDA VIA VT82xx, ALC883 Analog 5.1 Surround output to Front, Center, Rear and Subwoofer speakers surround71:CARD=VT82xx,DEV=0 HDA VIA VT82xx, ALC883 Analog 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers

Brottweiler commented 9 years ago

What is the noise from, your mic or system sound?

Try recording the audi with Audacity and see if you get the same noise?

ubuntuaddicted commented 9 years ago

have you reviewed the arch wiki for alsa? https://wiki.archlinux.org/index.php/Alsa

lodgerz commented 9 years ago

noise from system sound (firefox, vlc, vice64 ecc...). I haven't microphone. noise also on Audacity.

ubuntuaddicted commented 9 years ago

Of course, you told SSR to record using Alsa, any sound that's emitted thru Alsa will be recorded. I'm not sure what the problem is? Are you using any kind of mixer like kmix or similar? I'm not familiar with how to adjust the volume of various apps using Alsa, alsamixer just has main audio volume and that's it. This is why pulseaudio is so great. It allows for granual control of audio

lodgerz commented 9 years ago

i don't use kmix or similar, i use only alsamixer on LXDE.

MaartenBaert commented 9 years ago

PulseAudio uses ALSA internally, so if it works in PulseAudio, then there must be a way to do the same in ALSA. Try all the sliders in alsamixer, sometimes the names are confusing or even mislabeled. Try switching between front mic, rear mic and line, it's possible that you are recording the wrong source.

The video you uploaded sounds quite similar to what I hear when I record the front microphone jack on my desktop without plugging in a microphone. Since the headphone jack is right next to the microphone jack, the two cables run in parallel, so you can get some high frequency feedthrough (which will sound just like the audio played back, but very quiet and without any low frequencies). You can get rid of the feedthrough by muting the microphone jack when you're not using it (or you can use the rear microphone jack which usually doesn't have this problem).

ALSA does not support 'monitors', i.e. you can't record your speakers. If that's what you were trying to do, you should use JACK. Alternatively you can connect your headphone jack (or line out) with your microphone jack (or line in) using a patch cable. Make sure you disable any 'mic boost' on the jack you're using, and start with a reasonably low headphone volume, otherwise the audio will be horribly clipped. I've used this method before and there's essentially no noise at all if you set the levels properly.

ceefour commented 9 years ago

Noise removal in feature #120 if implement may "help" this a bit.