[pulseaudio-tickets] [PulseAudio] #829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?

2010-06-07 Thread PulseAudio
#829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?
-+--
 Reporter:  sitsofe  |   Owner:  lennart
 Type:  defect   |  Status:  new
Milestone:   |   Component:  daemon 
 Keywords:   |  
-+--
 Description of the problem:[[BR]]
 Sometimes the default resampler is so expensive it causes pulseaudio to be
 killed off. By default a cheaper resampler (speex-float-2) could be used
 to prevent somewhat fast machines running into this issue.

 Steps to reproduce:[[BR]]
 1. Download http://samples.mplayerhq.hu/A-codecs/wavpcm/8_Channel_ID.wav
 .[[BR]]
 2. Run
 gst-launch-0.10 filesrc location=8_Channel_ID.wav ! decodebin  !
 audioconvert ! audioresample ! pulsesink

 Expected result:[[BR]]
 To hear someone speaking out of the stereo laptop speakers.

 Actual result:[[BR]]
 If pulse is running with realtime permissions nothing is heard on a on a
 laptop with two 1.83GHz CPUs running Fedora 13. A laptop with a single
 900Mhz (so 0.9Ghz) CPU running Ubuntu 10.04 shows the same issue. If
 pulseaudio is running without realtime permissions it doesn't die but no
 sound is heard.

 How reproducible is the bug?[[BR]]
 It is reproducible every time.

 Additional information:[[BR]]
 Running[[BR]]
 gst-launch-0.10 filesrc location=8_Channel_ID.wav ! decodebin  !
 audioconvert ! audioresample ! audio/x-raw-int, rate=44100 !
 pulsesink[[BR]]
 works on both machines.

 Running[[BR]]
 echo "extra-arguments=--log-target=syslog --resample-method=ffmpeg" >>
 ~/.pulse/client.conf[[BR]]
 pulseaudio -k[[BR]]
 also resolves the problem on both machines.

 For pulseaudio to produce sound on the 1.83GHz machine speex-float-2 would
 probably have to be selected. For the 900Mhz machine to work speex-float-1
 sometimes works but sometimes fails. As the 900Mhz machine is quite slow
 by today's standards I would like to suggest speex-float-2 as the default
 resampling format.

 Bugs that might be related to this are
 https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/532586 (also see
 https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/532586/comments/22
 ) and https://bugzilla.redhat.com/show_bug.cgi?id=583785 (and the bug
 mentioned within).

 Version information:[[BR]]
 Fedora 13 x86_64[[BR]]
 Ubuntu 10.04 32bit

-- 
Ticket URL: 
PulseAudio 
The PulseAudio Sound Server
___
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets


Re: [pulseaudio-tickets] [PulseAudio] #829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?

2010-06-07 Thread PulseAudio
#829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?
--+-
  Reporter:  sitsofe  |   Owner:  lennart
  Type:  defect   |  Status:  new
 Milestone:   |   Component:  daemon 
Resolution:   |Keywords: 
--+-
Changes (by Ford_Prefect):

 * cc: arunissa...@gmail.com (added)


-- 
Ticket URL: 
PulseAudio 
The PulseAudio Sound Server
___
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets


Re: [pulseaudio-tickets] [PulseAudio] #829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?

2010-06-14 Thread PulseAudio
#829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?
--+-
  Reporter:  sitsofe  |   Owner:  lennart
  Type:  defect   |  Status:  new
 Milestone:   |   Component:  daemon 
Resolution:   |Keywords: 
--+-

Comment(by sitsofe):

 Further testing on the 2Ghz laptop shows that nothing over speex-float-1
 will prevent pulseaudio from dying/being killed when gst-launch starts
 playing the sample. However, if the initial gst-launch can be repeatedly
 paused and restarted then it becomes possible to play the sound - so it is
 the initial spike in CPU usage that is causing the issue.

-- 
Ticket URL: 
PulseAudio 
The PulseAudio Sound Server
___
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets


Re: [pulseaudio-tickets] [PulseAudio] #829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?

2010-06-14 Thread PulseAudio
#829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?
--+-
  Reporter:  sitsofe  |   Owner:  lennart
  Type:  defect   |  Status:  new
 Milestone:   |   Component:  daemon 
Resolution:   |Keywords: 
--+-

Comment(by sitsofe):

 {{{
 Perf output with pulseaudio (speex-float-3) performing the resampling on a
 2GHz
 laptop:

 # Samples: 31436365998
 #
 # Overhead  Command
 Shared Object
 #   ...
 .
 #
 69.70%   pulseaudio  libspeexdsp.so.1.5.0
  8.88%   pulseaudio  [kernel]
  8.49%   pulseaudio  libpulsecore-0.9.21.so
  4.18%  swapper  [kernel]
  2.51% init  [kernel]
  1.20%   wavparse0:sink  [kernel]
  0.68%   pulseaudio  libpulsecommon-0.9.21.so
  0.46%  perf.2.6.33.5-1  [kernel]
  0.36%   pulseaudio  libc-2.12.so
  0.29%   wavparse0:sink
 36f440b710


 Perf output with gstreamer performing the resampling on a 2GHz laptop:

 # Samples: 6170990658
 #
 # Overhead  Command
 Shared Object
 #   ...
 .
 #
 31.41%  gst-launch-0.10  libgstaudioresample.so
 25.95%  gst-launch-0.10
 36fb854b55
  7.93%   pulseaudio  [kernel]
  7.91%  gst-launch-0.10  [kernel]
  5.55%  swapper  [kernel]
  3.54% init  [kernel]
  2.09%  perf.2.6.33.5-1  [kernel]
  1.94%   pulseaudio  libpulsecore-0.9.21.so
  1.43%   pulseaudio  libpulsecommon-0.9.21.so
  1.13%  gst-launch-0.10  libpthread-2.12.so
  1.06%   pulseaudio
 ff60013b
  1.02%  gst-launch-0.10  libc-2.12.so
  0.74%  gst-launch-0.10  libglib-2.0.so.0.2400.1
  0.61%  perf.2.6.33.5-1  [btrfs]

 Perf output with ALSA performing the resampling on a 2GHz laptop (note
 ALSA doesn't seem to do the remapping pulseaudio does - you only hear
 front left and front right):

 # Samples: 1980908692
 #
 # Overhead  Command Shared
 Object
 #   ...
 
 #
 32.09%   wavparse0:sink  libgstaudioconvert.so
 11.12%  swapper  [kernel]
  8.47%   wavparse0:sink  libasound.so.2.0.0
  6.88%  perf.2.6.33.5-1  [kernel]
  6.50%   wavparse0:sink  [kernel]
  6.40% init  [kernel]
  3.41%   wavparse0:sink  libgstreamer-0.10.so.0.25.0
  3.01%   wavparse0:sink  libc-2.12.so
  2.32%   wavparse0:sink  libglib-2.0.so.0.2400.1
  2.26%   wavparse0:sink  libpthread-2.12.so
  2.13%   wavparse0:sink  libgobject-2.0.so.0.2400.1
  1.95% Xorg  [drm]
  1.86%  perf.2.6.33.5-1  [btrfs]
  1.79% Xorg  [kernel]
  1.08%   wavparse0:sink  liboil-0.3.so.0.3.0
  0.92%   wavparse0:sink  libgstbase-0.10.so.0.25.0
  0.66%  perf.2.6.33.5-1  libc-2.12.so
  0.58%   wavparse0:sink  libgstaudio-0.10.so.0.20.0
  0.56%  kondemand/0  [kernel]
 }}}

 Perf output was collected for as long as gst-launch was running (it stops
 early when pulseaudio crashes).

-- 
Ticket URL: 
PulseAudio 
The PulseAudio Sound Server
___
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets


Re: [pulseaudio-tickets] [PulseAudio] #829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?

2010-11-06 Thread PulseAudio
#829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?
--+-
  Reporter:  sitsofe  |   Owner:  lennart
  Type:  defect   |  Status:  new
 Milestone:   |   Component:  daemon 
Resolution:   |Keywords: 
--+-

Comment(by sitsofe):

 Still here in Fedora 14:
 pulseaudio-0.9.21-6.fc13.x86_64

-- 
Ticket URL: 
PulseAudio 
The PulseAudio Sound Server
___
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets


Re: [pulseaudio-tickets] [PulseAudio] #829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?

2011-02-26 Thread PulseAudio
#829: Default pulseaudio resampler (speex-float-3) sometimes too expensive?
--+-
  Reporter:  sitsofe  |   Owner:  lennart
  Type:  defect   |  Status:  new
 Milestone:   |   Component:  daemon 
Resolution:   |Keywords: 
--+-

Comment(by sitsofe):

 Some good news! It looks like gstreamer has adopted a patch to workaround
 this problem: http://cgit.freedesktop.org/gstreamer/gst-plugins-
 good/commit/?id=1e2c1467ae042a3c6bb1a6bc0c07aeff13ec5edb (via
 https://bugs.launchpad.net/ubuntu/+source/pulseaudio/+bug/644644 ). This
 means the problem is not showing up in a recent Fedora 15 alpha
 (gstreamer-plugins-good-0.10.27-3.fc15.i686)...

-- 
Ticket URL: 
PulseAudio 
The PulseAudio Sound Server
___
pulseaudio-tickets mailing list
pulseaudio-tickets@mail.0pointer.de
https://tango.0pointer.de/mailman/listinfo/pulseaudio-tickets