Cannot access sound card

Bug #824507 reported by Jonathan Lange
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
recordmydesktop (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

When running recordmydesktop:

$ recordmydesktop
Initial recording window is set to:
X:0 Y:0 Width:1280 Height:800
Adjusted recording window is set to:
X:0 Y:0 Width:1280 Height:800
Your window manager appears to be Compiz

Detected compositing window manager.
Reverting to full screen capture at every frame.
To disable this check run with --no-wm-check
(though that is not advised, since it will probably produce faulty results).

Initializing...
Buffer size adjusted to 4096 from 4096 frames.
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
Couldn't open PCM device default
Error while opening/configuring soundcard default
Try running with the --no-sound or specify a correct device.

$ dpkg -s recordmydesktop
Package: recordmydesktop
Status: install ok installed
Priority: optional
Section: video
Installed-Size: 156
Maintainer: Ubuntu Developers <email address hidden>
Architecture: amd64
Version: 0.3.8.1+svn602-1ubuntu3
Depends: libasound2 (>> 1.0.22), libc6 (>= 2.7), libice6 (>= 1:1.0.0), libjack-jackd2-0 (>= 1.9.5~dfsg-14) | libjack-0.116, libogg0 (>= 1.0rc3), libpopt0 (>= 1.16), libsm6, libtheora0 (>= 0.0.0.alpha7.dfsg), libvorbis0a (>= 1.1.2), libvorbisenc2 (>= 1.1.2), libvorbisfile3 (>= 1.1.2), libx11-6, libxdamage1 (>= 1:1.1), libxext6, libxfixes3 (>= 1:4.0.1), zlib1g (>= 1:1.1.4)
Conflicts: gtk-recordmydesktop (<< 0.3.5)
Description: Captures audio-video data of a Linux desktop session
 The application produces an ogg-encapsulated theora-vorbis file.
 recordMyDesktop tries to be as unobstrusive as possible by proccessing only
 regions of the screen that have changed
Homepage: http://recordmydesktop.sourceforge.net
Original-Maintainer: José L. Redrejo Rodríguez <email address hidden>

Changed in recordmydesktop (Ubuntu):
status: New → Confirmed
Revision history for this message
Avi Romanoff (aroman) wrote :

I get the exact same error running fully-updated Oneiric. I also get a similar error when running ffmpeg:

aroman@crackedpipes:~$ ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mkv
ffmpeg version 0.7.1-4:0.7.1-1ubuntu2, Copyright (c) 2000-2011 the Libav developers
  built on Aug 1 2011 11:51:48 with gcc 4.6.1
  configuration: --extra-version='4:0.7.1-1ubuntu2' --arch=amd64 --prefix=/usr --enable-vdpau --enable-bzlib --enable-libgsm --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-pthreads --enable-zlib --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --enable-gpl --enable-postproc --enable-swscale --enable-x11grab --enable-libdc1394 --enable-shared --disable-static
  libavutil 51. 7. 0 / 51. 7. 0
  libavcodec 53. 5. 0 / 53. 5. 0
  libavformat 53. 2. 0 / 53. 2. 0
  libavdevice 53. 0. 0 / 53. 0. 0
  libavfilter 2. 4. 0 / 2. 4. 0
  libswscale 2. 0. 0 / 2. 0. 0
  libpostproc 52. 0. 0 / 52. 0. 0
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
[alsa @ 0xe27340] cannot open audio device pulse (No such device or address)
pulse: Input/output error
aroman@crackedpipes:~$

__

It would seem something has broken in alsa land.

Revision history for this message
mu3en (mu3en) wrote :

confirmed in oneiric i386:

mu3en@kin@04:41:32:~$ ffmpeg -f alsa -ac 2 -i pulse -f x11grab -r 30 -s 1024x768 -i :0.0 -acodec pcm_s16le -vcodec libx264 -vpre lossless_ultrafast -threads 0 output.mkv
ffmpeg version N-31855-g0a7164a, Copyright (c) 2000-2011 the FFmpeg developers
  built on Aug 13 2011 04:29:18 with gcc 4.6.1
  configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab
  libavutil 51. 11. 1 / 51. 11. 1
  libavcodec 53. 10. 0 / 53. 10. 0
  libavformat 53. 7. 0 / 53. 7. 0
  libavdevice 53. 3. 0 / 53. 3. 0
  libavfilter 2. 29. 1 / 2. 29. 1
  libswscale 2. 0. 0 / 2. 0. 0
  libpostproc 51. 2. 0 / 51. 2. 0
ALSA lib dlmisc.c:254:(snd1_dlobj_cache_get) Cannot open shared library /usr/lib/i386-linux-gnu/alsa-lib/libasound_module_pcm_pulse.so
[alsa @ 0xaa4b3c0] cannot open audio device pulse (No such device or address)
pulse: Input/output error

Revision history for this message
Martin Nordholts (enselic) wrote :

This bug report is now almost 10 years old, and as far I know this issue was sorted out several years ago. It works for me now at least.

If this can still be reproduced, please reopen with an updated step-by-step on how to reproduce.

Changed in recordmydesktop (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for recordmydesktop (Ubuntu) because there has been no activity for 60 days.]

Changed in recordmydesktop (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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