You are not logged in.

#1 2013-04-10 09:08:39

sweetthdevil
Member
Registered: 2009-10-20
Posts: 415

[Solved] Distorted crackling sound on flash video

Hi all,

I have distorted crackling sound while watching video on either firefox or chromium, I have search the forum or the wiki but nothing seems to work.

Any suggestion would be appreciated,

many thanks

Last edited by sweetthdevil (2013-04-29 17:11:42)

Offline

#2 2013-04-10 09:19:36

hadrons123
Member
From: chennai
Registered: 2011-10-07
Posts: 1,249

Re: [Solved] Distorted crackling sound on flash video

What is your flashplugin version?
Mine doesn't do full screen video 2 nd time. First time maximize works. but not the second time.

 pacman -Qi flash-plugin
error: package 'flash-plugin' was not found
[root@arch ~]# pacman -Qi flashplugin
Name           : flashplugin
Version        : 11.2.202.280-1
Description    : Adobe Flash Player
Architecture   : x86_64
URL            : http://get.adobe.com/flashplayer
Licenses       : custom
Groups         : None
Provides       : flashplayer
Depends On     : mozilla-common  libxt  libxpm  gtk2  nss  curl
                 hicolor-icon-theme
Optional Deps  : libvdpau: GPU acceleration on Nvidia card [installed]
Required By    : None
Optional For   : None
Conflicts With : None
Replaces       : None
Installed Size : 23205.00 KiB
Packager       : Ionut Biru <ibiru@archlinux.org>
Build Date     : Tue 09 Apr 2013 11:21:13 PM IST
Install Date   : Wed 10 Apr 2013 09:23:42 AM IST
Install Reason : Explicitly installed
Install Script : Yes
Validated By   : Signature

LENOVO Y 580 IVYBRIDGE 660M NVIDIA
Unix is user-friendly. It just isn't promiscuous about which users it's friendly with. - Steven King

Offline

#3 2013-04-10 09:57:36

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Distorted crackling sound on flash video

Offline

#4 2013-04-10 10:48:04

sweetthdevil
Member
Registered: 2009-10-20
Posts: 415

Re: [Solved] Distorted crackling sound on flash video

Thank you brebs for your reply.

First of all while playing a video on imdb using firefox if I run "cat /proc/asound/card0/pcm0c/sub0/hw_params "  I get the "closed" reply. Is that normal?

And my understanding is that I need to change the period_size and buffer_size but on which file?

Looking forward for your reply,

Regards,

Offline

#5 2013-04-10 11:38:10

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Distorted crackling sound on flash video

Try card1, then. Go through the numbers until you find the card you're using - usually it's card0.

Usual file to set this up in is ~/.asoundrc

Offline

#6 2013-04-10 11:44:37

sweetthdevil
Member
Registered: 2009-10-20
Posts: 415

Re: [Solved] Distorted crackling sound on flash video

thank you for your prompt reply.

I have three entries:

 0 [U0x46d0x809    ]: USB-Audio - USB Device 0x46d:0x809
                      USB Device 0x46d:0x809 at usb-0000:00:1a.7-5, high speed
 1 [Intel          ]: HDA-Intel - HDA Intel
                      HDA Intel at 0xfbff8000 irq 45
 2 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xfe8fc000 irq 17

and

cat /proc/asound/card1/pcm0c/sub0/hw_params 
closed
cat /proc/asound/card2/pcm0c/sub0/hw_params 
cat: /proc/asound/card2/pcm0c/sub0/hw_params: No such file or directory

And for some reason I do not have any file ~/.asoundrc

Just to be clear I obviously use pulseaudio on the system.

Regards,

Offline

#7 2013-04-10 11:59:42

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Distorted crackling sound on flash video

sweetthdevil wrote:

closed

So play some music while this is being done, to open it.

Offline

#8 2013-04-10 12:51:27

sweetthdevil
Member
Registered: 2009-10-20
Posts: 415

Re: [Solved] Distorted crackling sound on flash video

I am playing a video from imdb at the same time.

Offline

#9 2013-04-10 13:05:48

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Distorted crackling sound on flash video

Use your ingenuity and search harder wink

find /proc/asound/ -name hw_params

Offline

#10 2013-04-10 17:49:05

sweetthdevil
Member
Registered: 2009-10-20
Posts: 415

Re: [Solved] Distorted crackling sound on flash video

Right, thank you for your help.

See below results of those commands, it's seems that the period_size and the buffer_size are allowed enough space? (all those were runned while plaing video on IMDB)

[sweetth@linuxbox ~]$ find /proc/asound/ -name hw_params
/proc/asound/card2/pcm9p/sub0/hw_params
/proc/asound/card2/pcm8p/sub0/hw_params
/proc/asound/card2/pcm7p/sub0/hw_params
/proc/asound/card2/pcm3p/sub0/hw_params
/proc/asound/card1/pcm0c/sub0/hw_params
/proc/asound/card0/pcm2p/sub0/hw_params
/proc/asound/card0/pcm1p/sub0/hw_params
/proc/asound/card0/pcm0c/sub1/hw_params
/proc/asound/card0/pcm0c/sub0/hw_params
/proc/asound/card0/pcm0p/sub0/hw_params
[sweetth@linuxbox ~]$ cat /proc/asound/card0/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 44100
buffer_size: 88200
[sweetth@linuxbox ~]$ cat /proc/asound/card0/pcm0c/sub0/hw_params
closed
[sweetth@linuxbox ~]$ cat /proc/asound/card0/pcm0p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 44100
buffer_size: 88200
[sweetth@linuxbox ~]$ cat /proc/asound/card0/pcm0c/sub1/hw_params.
cat: /proc/asound/card0/pcm0c/sub1/hw_params.: No such file or directory
[sweetth@linuxbox ~]$ cat /proc/asound/card0/pcm0c/sub1/hw_params
closed
[sweetth@linuxbox ~]$ cat /proc/asound/card0/pcm1p/sub0/hw_params
closed
[sweetth@linuxbox ~]$ cat /proc/asound/card0/pcm2p/sub0/hw_params
closed
[sweetth@linuxbox ~]$ cat /proc/asound/card1/pcm0c/sub0/hw_params
closed
[sweetth@linuxbox ~]$ cat /proc/asound/card2/pcm3p/sub0/hw_params
access: MMAP_INTERLEAVED
format: S16_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 44096
buffer_size: 88192
[sweetth@linuxbox ~]$ cat /proc/asound/card2/pcm7p/sub0/hw_params
closed
[sweetth@linuxbox ~]$ cat /proc/asound/card2/pcm8p/sub0/hw_params
closed
[sweetth@linuxbox ~]$ cat /proc/asound/card2/pcm9p/sub0/hw_params

Also I mentioned I do not use /.asoundrc  but use /etc/asound.conf (see below for the content)

# Use PulseAudio by default
pcm.!default {
  type pulse
  fallback "sysdefault"
  hint {
    show on
    description "Default ALSA Output (currently PulseAudio Sound Server)"
  }
}

ctl.!default {
  type pulse
  fallback "sysdefault"
}

# vim:set ft=alsaconf:

Last edited by sweetthdevil (2013-04-10 17:53:16)

Offline

#11 2013-04-11 01:31:01

brebs
Member
Registered: 2007-04-03
Posts: 3,742

Re: [Solved] Distorted crackling sound on flash video

sweetthdevil wrote:

period_size: 44100
buffer_size: 88200

Yup, only pulseaudio would choose values that weird.

I don't use pulseaudio, so you'll have to google it yourself. Maybe just changing the rate to 48000 will suffice - check what your hardware desires.

Offline

#12 2013-04-29 17:12:57

sweetthdevil
Member
Registered: 2009-10-20
Posts: 415

Re: [Solved] Distorted crackling sound on flash video

Just to keep you updated or for anyone with the same issue, the solution of my problem was (and I am ashamed of writing it) in the wiki!

=> https://wiki.archlinux.org/index.php/Pu … _crackling

Offline

Board footer

Powered by FluxBB