I'm still running 2:0.27.0+fixes.20140324 (installed in a hardware
upgrade 2 years ago) and the backend audio input just suddenly started
recording hiss for no reason after working for 2 years.  Arecord and
aplay still worked fine though.  I put PULSE_INTERNAL=1 in the
environment in the systemd .service page for the backend and the problem
went away.

THANKS!!!  :)

-- 
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythtv in Ubuntu.
https://bugs.launchpad.net/bugs/633452

Title:
  MythTV Backend fails to record audio, due to PulseAudio

Status in mythtv package in Ubuntu:
  Confirmed

Bug description:
  Binary package hint: mythtv

  I have my MythTV backend set up to record audio directly from an ALSA
  device provided by my capture card. Most attempts to record produce
  the following errors in mythbackend.log:

  2010-09-08 11:42:36.208 AudioInALSA(tuner) Error: pcm open failed: Device or 
resource busy
  2010-09-08 11:42:36.401 NVR(/dev/tuner/video) Error: Failed to open audio 
device ALSA:tuner
  2010-09-08 11:42:36.459 NVR(/dev/tuner/video) Error: Failed to init audio 
input device

  I have determined that this is due pulse's support for re-routing ALSA
  access to the pulseaudio daemon. This behavior doesn't make much sense
  for the MythTV backend, since pulseaudio is a user-level daemon by
  default and mythbackend is system-wide and should work even when no
  users are logged in. Therefore it's best to bypass pulseaudio in
  mythbackend. The environment variable PULSE_INTERNAL can do that.

  If mythbackend is started with PULSE_INTERNAL=1 in its environment,
  the problem goes away and it records sound successfully every time.

  What I'm doing right now is I edited /etc/init/mythtv-backend.conf and 
replaced
    exec /usr/bin/mythbackend --logfile /var/log/mythtv/mythbackend.log --user 
mythtv
  with
    script
        PULSE_INTERNAL=1 exec /usr/bin/mythbackend --logfile 
/var/log/mythtv/mythbackend.log --user mythtv
    end script

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mythtv/+bug/633452/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~mythbuntu-bugs
Post to     : mythbuntu-bugs@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mythbuntu-bugs
More help   : https://help.launchpad.net/ListHelp

Reply via email to