Problems with audio of videos in Debian

Kernels & Hardware, configuring network, installing services

Problems with audio of videos in Debian

Postby carlozfilipe » 2017-12-27 20:37

Hello guys!
For some time now I have a problem with the audio of the videos in Debian and its derivatives like Ubuntu etc. Every time I'm watching any video on youtube, VLC player or any video playback program, the audio of the videos always give a little noise and blocking and I was never able to solve this problem. Does it happen to you too? Can anybody help me?
carlozfilipe
 
Posts: 1
Joined: 2017-12-26 17:49

Re: Problems with audio of videos in Debian

Postby Capitain_Jack » 2017-12-27 20:53

Here, take a look at this solution and the post mentioned there:
http://forums.debian.net/viewtopic.php?f=5&t=135681
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha
User avatar
Capitain_Jack
 
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.

Re: Problems with audio of videos in Debian

Postby debiman » 2017-12-28 09:31

^ yes, my first thought was of pulseaudio, i'm prettty sure i saw threads about weird crackling noises etc.
in the end it was one config setting that fixed it.

but your link, capitain jack, does not mention a clear solution?

carlozfilipe, you might want to search the forums here or on bunsenlabs.org for related problems.
User avatar
debiman
 
Posts: 2804
Joined: 2013-03-12 07:18

Re: Problems with audio of videos in Debian

Postby Capitain_Jack » 2017-12-28 10:43

debiman wrote:but your link, capitain jack, does not mention a clear solution?


On that post:

Capitain_Jack wrote:I tryied to point you in the right direction here:
Capitain_Jack wrote:This "sounds" like a bitrate and resample problem, what configs you are using? High configuration can lead to this kind of problem, this may point you into the solution:
http://www.overclock.net/a/how-to-get-the-best-sound-with-and-properly-configure-pulseaudio


But here it goes a more detailed explain (made at facebook Debian page):
The thing is, your audio is not being properly or with quality being re-sampled. I guess enabling only a good re-sampler it's ok
in order to make it so, uncoment:
allow-module-loading = yes
resample-method = speex-float-1
avoid-resampling = false

And change the resample-method to a better one. Here it is a list:
https://linux.die.net/man/5/pulse-daemon.conf

The resample method is more of a user decision, depending on hardware, because a very high quality resampler will use more CPU.
The original one is ok, only need to change it's number from 1 to 3 (value 1 to 5, 5 is best quality) or change it to "src-sinc-best-quality" if you really want quality and have good hardware.
Another important thing I didn't mentioned is the bit rate and format, I would recommend "default-sample-rate=48000" for the bit rate, and "default-sample-format=s24le" for the sample format, so you have what windows call "DVD quality" audio.

Need to install libsamplerate.
"Great spirits have always encountered violent opposition from mediocre minds."
Albert Einstein
"All wrong-doing arises because of mind. If mind is transformed can wrong-doing remain?"
Buddha
User avatar
Capitain_Jack
 
Posts: 153
Joined: 2017-12-15 12:07
Location: Brazil capital, Brasilia, At the favela.


Return to System configuration

Who is online

Users browsing this forum: No registered users and 6 guests

fashionable