mythbuntu-bugs team mailing list archive
-
mythbuntu-bugs team
-
Mailing list archive
-
Message #02848
[Bug 633452] [NEW] MythTV Backend fails to record audio, due to PulseAudio
Public bug reported:
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
** Affects: mythtv (Ubuntu)
Importance: Undecided
Status: New
--
MythTV Backend fails to record audio, due to PulseAudio
https://bugs.launchpad.net/bugs/633452
You received this bug notification because you are a member of Mythbuntu
Bug Team, which is subscribed to mythtv in ubuntu.
Status in “mythtv” package in Ubuntu: New
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
Follow ups
-
[Bug 633452] Re: MythTV Backend fails to record audio, due to PulseAudio
From: Cliff, 2019-08-09
-
[Bug 633452] Re: MythTV Backend fails to record audio, due to PulseAudio
From: David M., 2013-05-29
-
[Bug 633452] Re: MythTV Backend fails to record audio, due to PulseAudio
From: nZain, 2012-06-23
-
[Bug 633452] Re: MythTV Backend fails to record audio, due to PulseAudio
From: Launchpad Bug Tracker, 2012-06-23
-
[Bug 633452] Re: MythTV Backend fails to record audio, due to PulseAudio
From: nZain, 2012-06-23
-
[Bug 633452] [NEW] MythTV Backend fails to record audio, due to PulseAudio
From: Brian Rogers, 2010-09-08
References