[NOTDUPE 345627] Crackling audio, especially from DVDs [karmic regression]

Bug #376374 reported by Max Bowsher
60
This bug affects 8 people
Affects Status Importance Assigned to Milestone
pulseaudio (Ubuntu)
Fix Released
Low
Daniel T Chen

Bug Description

Binary package hint: pulseaudio

After upgrading to Karmic, I now experience a crackling sound when playing audio. The problem is very markedly worse for audio from DVDs (where is is extremely obvious) than for .mp3 files (where most of the time it is only audible if listening carefully).

A dual-booted Jaunty installation on the same hardware does not suffer the problem.

I've reproduced the problem in totem-xine, totem-gstreamer, mplayer -ao pulse, mplayer -ao alsa, xine -A pulseaudio and xine -A alsa. I'm not sure if pulseaudio is the right package to be reporting this against - I'm just picking it in as part of the general underlying audio stack, and hoping its apport hooks will provide some useful information.

ProblemType: Bug
Architecture: amd64
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: Intel [HDA Intel], device 0: AD198x Analog [AD198x Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: maxb 5707 F.... mixer_applet2
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xee400000 irq 17'
   Mixer name : 'Analog Devices AD1981'
   Components : 'HDA:11d41981,17aa2060,00100200'
   Controls : 20
   Simple ctrls : 11
Date: Thu May 14 08:33:31 2009
DistroRelease: Ubuntu 9.10
Package: pulseaudio 1:0.9.15-1ubuntu3
ProcEnviron:
 LC_COLLATE=C
 PATH=(custom, user)
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.30-5.6-generic
SourcePackage: pulseaudio
Uname: Linux 2.6.30-5-generic x86_64

Revision history for this message
Max Bowsher (maxb) wrote :
Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 376374] [NEW] Crackling audio, especially from DVDs [karmic regression]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

  status incomplete
  assign crimsun
  done

On Thu, 14 May 2009, Max Bowsher wrote:

> After upgrading to Karmic, I now experience a crackling sound when
> playing audio. The problem is very markedly worse for audio from DVDs
> (where is is extremely obvious) than for .mp3 files (where most of the

Try adjusting the resample-method parameter in /etc/pulse/daemon.conf
(~/.pulse/daemon.conf will override). Performance varies wildly based on
audio controller.

$ pulseaudio --dump-resample-methods

Be aware that the output is not ordered by any criterion, e.g., some
people have found that ffmpeg works better than src-linear.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKDBgVe9GwFciKvaMRAxT9AJwOC9S7fsl4Ubfe7p4MbHCz28Zu9ACgpWAQ
D/98j2XBT4JxnsueUs8kKls=
=Ke6Z
-----END PGP SIGNATURE-----

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: Crackling audio, especially from DVDs [karmic regression]

Various HDA users have reported that changing resample-method in daemon.conf (to at least ffmpeg or better) alleviates this symptom.

Changed in pulseaudio (Ubuntu):
status: New → Confirmed
Daniel T Chen (crimsun)
Changed in pulseaudio (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Max Bowsher (maxb) wrote :

I confirm that resample-method=ffmpeg in Karmic is a great improvement, approximately on a par with the quality of src-linear in Jaunty.

Daniel T Chen (crimsun)
Changed in pulseaudio (Ubuntu):
assignee: nobody → Daniel T Chen (crimsun)
importance: Undecided → Low
status: Incomplete → Triaged
Revision history for this message
Asif Youssuff (yoasif) wrote :

resample-method=ffmpeg in Karmic is a great improvement for me as well.

Revision history for this message
Daniel T Chen (crimsun) wrote :

To triagers driving by: please do not mark this bug a duplicate of 345627 (I've also amended the summary to reflect this status). We are tracking two very different tasks in 345627.

summary: - Crackling audio, especially from DVDs [karmic regression]
+ [NOTDUPE 345627] Crackling audio, especially from DVDs [karmic
+ regression]
Daniel T Chen (crimsun)
Changed in pulseaudio (Ubuntu):
status: Triaged → Fix Committed
Revision history for this message
Nicolò Chieffo (yelo3) wrote :

Does ffmpeg work even if you don't have ffmpeg installed?

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 376374] Re: [NOTDUPE 345627] Crackling audio, especially from DVDs [karmic regression]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

On Thu, 28 May 2009, Nicolò Chieffo wrote:
> Does ffmpeg work even if you don't have ffmpeg installed?

Yes, the resampler is built-in (see pulseaudio's source).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iD8DBQFKH5Fde9GwFciKvaMRA1nsAJ9LnOhASItcbVJ345MGOiB8iljKvACfRH28
xD2y3n+TIQjERlXQ16QCCyQ=
=r80j
-----END PGP SIGNATURE-----

Revision history for this message
jaanusrk (jaanus-online) wrote :

The ffmpeg change helps VLC media player, only when computer is idle.
Small load causes problems.
totem hangs immediately (as always)

I'm testing with Dell latitude D420.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pulseaudio - 1:0.9.15-3ubuntu1

---------------
pulseaudio (1:0.9.15-3ubuntu1) karmic; urgency=low

  [ Daniel T Chen ]
  * debian/patches/0001_change_resample_and_buffering.patch: Bump
    default resampler to ffmpeg. We cannot peg the cpu, and we cannot
    have audio anomalies, so this change _should_ be regression-free
    but needs extensive testing (LP: #376374).
  * debian/patches/0090_fix_sw_mute_desync.patch: Backport from
    git HEAD to resolve sw vol becoming muted on logout
    (LP: #315971, #352732)

  [ Luke Yelavich ]
  * Merge from Debian unstable, remaining changes:
    - epoch (my stupid fault :S)
    - Don't build against, and create jack package. Jack is not in main
    - use ffmpeg resampler to work better with lack of PREEMPT in jaunty's
      -generic kernel config, also change buffer size
    - Add alsa configuration files to route alsa applications via pulseaudio
    - Move libasound2-plugins from Recommends to Depends
    - Add pm-utils sleep hook to suspend (and resume) users' pulseaudio
      daemons
    - patch to fix source/sink and suspend-on-idle race
    - Make initscript more informative in the default case of per-user
      sessions
    - add status check for system wide pulseaudio instance
    - create /var/run/pulse, and make restart more robust
    - LSB {Required-*,Should-*} should specify hal instead of dbus,
      since hal is required (and already requires dbus)
    - indicate that the system pulseaudio instance is being started from the init
      script
    - Install more upstream man pages
    - Link to pacat for parec man page
    - check whether pulseaudio is running before preloading the padsp library
    - Add DEB_OPT_FLAG = -O3 as per recommendation from
      pulseaudio-discuss/2007-December/001017.html
    - cache /usr/share/sounds/ubuntu/stereo/ wav files on pulseaudio load
    - disable glitch free (use tsched=0)
    - Generate a PO template on build
    - add special case to disable pulseaudio loading if accessibility/speech
      is being used
    - the esd wrapper script should not load pulseaudio if pulseaudio is being
      used as a system service
    - add a pulseaudio apport hook
    - fix some typos in README.Debian
    - drop padevchooser(Recommends) and pavucontrol (Suggests)
    - drop libasyncns-dev build dependency, its in universe
    - add libudev-dev as a build-dependency

 -- Luke Yelavich <email address hidden> Tue, 09 Jun 2009 10:47:05 +1000

Changed in pulseaudio (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Justin C (jlathian-deactivatedaccount) wrote :

My Lenovo R61e laptop has a 00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03) in it, I've tried switching to ffmeg in the /etc/pulse.conf, and it's still cracking. The cracking happens when I'm either playing music, or not listening to anything. I haven't tried watching a DVD.

pulseaudio --dump-resample-methods gives me:

src-sinc-best-quality
src-sinc-medium-quality
src-sinc-fastest
src-zero-order-hold
src-linear
trivial
speex-float-0
speex-float-1
speex-float-2
speex-float-3
speex-float-4
speex-float-5
speex-float-6
speex-float-7
speex-float-8
speex-float-9
speex-float-10
speex-fixed-0
speex-fixed-1
speex-fixed-2
speex-fixed-3
speex-fixed-4
speex-fixed-5
speex-fixed-6
speex-fixed-7
speex-fixed-8
speex-fixed-9
speex-fixed-10
ffmpeg
auto
copy
peaks

Hopefully there's a fix out there.

Revision history for this message
Daniel T Chen (crimsun) wrote : Re: [Bug 376374] Re: [NOTDUPE 345627] Crackling audio, especially from DVDs [karmic regression]

On Tue, Aug 25, 2009 at 10:41 PM, Justin C<email address hidden> wrote:
> 82801H (ICH8 Family) HD Audio Controller (rev 03) in it, I've tried
> switching to ffmeg in the /etc/pulse.conf, and it's still cracking. The
> cracking happens when I'm either playing music, or not listening to
> anything. I haven't tried watching a DVD.

Did you mean /etc/pulse/daemon.conf?

Note that in Karmic, we've "upgraded" to speex-float-1.

Revision history for this message
Justin C (jlathian-deactivatedaccount) wrote :

> Did you mean /etc/pulse/daemon.conf?
Yes I ment that, sorry.

> Note that in Karmic, we've "upgraded" to speex-float-1

Same deal with speex-float-1. Same crackling going on with that enabled.

Revision history for this message
Muharem Hrnjadovic (al-maisan) wrote :

Unfortunately, same here, no luck with either resample-method:

Lenovo T61
00:1b.0 Audio device: Intel Corporation 82801H (ICH8 Family) HD Audio Controller (rev 03)

Plulse audio Version: 1:0.9.17-0ubuntu1
from the ubuntu-audio-dev PPA

Revision history for this message
Daniel T Chen (crimsun) wrote :

On Thu, Sep 17, 2009 at 6:32 AM, Muharem Hrnjadovic
<email address hidden> wrote:
> Unfortunately, same here, no luck with either resample-method:

Muharem, do you receive the same symptom without PulseAudio in use?
You can test by disabling PA and killing it:

echo autospawn = no|tee -a ~/.pulse/client.conf && killall pulseaudio

then use Totem, mplayer, etc., to play a DVD.

Revision history for this message
vervelover (alessiopangos) wrote :

The fix doesn't fix anything for me as well. It crackles like hell. Disabling pulseaudio is a solution, I did that on Jaunty but would like to stay with it in karmic.. if this is solved.

Revision history for this message
jimbo (jimbobubbadj) wrote :

I have the crackling problem when playing mplayer and youtube. I don't know if it is present with mp3s, dvds or other sound and video formats.

Revision history for this message
mclaud2000 (mclaud2000-deactivatedaccount) wrote :

This bug is not fixed, I still have the sound crackling issue when playing any sound in the system. Please reopen bug.

Revision history for this message
Alexander Bethke (oolongbrothers) wrote :

If you're still having problems and you can verify that the problem also persists when you have killed pulse (hence experiencing the problem also with pure alsa), head over and have a look at the bug I created for that case on alsa-driver: https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/479375

Revision history for this message
kwevej (zhamsik) wrote :

solution here:
http://forums.linuxmint.com/viewtopic.php?f=42&t=44862
(PulseAudio - Tune your setting and prevent glitching)

Revision history for this message
Daniel T Chen (crimsun) wrote :

On Thu, Apr 1, 2010 at 4:06 PM, kwevej <email address hidden> wrote:
> solution here:
> http://forums.linuxmint.com/viewtopic.php?f=42&t=44862
> (PulseAudio - Tune your setting and prevent glitching)

The proper solution is to fix the driver.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.