<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:205991215;
        mso-list-type:hybrid;
        mso-list-template-ids:-1190744066 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l0:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l0:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal">I&#8217;ve got a Debian 6 box running mythtv 24.1 installed via the debian-multimedia repo. It has a PVR-150 installed and is running as a SBE. I have run mythtv-setup and configured the capture card, sources, connections, etc. The problem is
 when I run the daemon using the mythtv user created during installation, the backend complains that there are no captured cards available--like this:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">2011-09-15 10:34:59.077 MythBackend: Running as a slave backend.<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 10:34:59.098 mythbackend: MythBackend started as a slave backend<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 10:34:59.099 MythBackend, Warning: No valid capture cards are defined in the database.<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 10:34:59.099 New DB connection, total: 2<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 10:34:59.104 Connected to database 'mythconverg' at host: LASRSVM.law.washington.edu<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 10:34:59.116 mythbackend: No capture cards are defined: This backend will not be used for recording.<o:p></o:p></p>
<p class="MsoNormal">The thing is, the capture card is there, and if I run mythbackend at the command line from my own user account, or if I replace the mythtv user in /etc/init.d/mythtv-backend with my own username, mythbackend is then able to find the capture
 card and record successfully.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Things I have tried already:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">1.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Add mythtv user to all groups that my user is a member of.<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">2.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Check permissions on /dev/video0: &#8220;crw-rw----&#43; 1 root video 81, 0 Sep&nbsp; 1 11:52 /dev/video0&#8221;<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">3.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Captured from the card directly as mythtv user using &#8220;cat /dev/video0 &gt; /myth/tmp/test-1.mpg&#8221; --this works.<o:p></o:p></p>
<p class="MsoListParagraph" style="text-indent:-.25in;mso-list:l0 level1 lfo1"><![if !supportLists]><span style="mso-list:Ignore">4.<span style="font:7.0pt &quot;Times New Roman&quot;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span></span><![endif]>Erased the card from mythtv-setup and re-added.<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">When I use my own username (i.e. when it&#8217;s working), I see these entries:<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.028 MythBackend: Running as a slave backend.<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.048 mythbackend: MythBackend started as a slave backend<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.049 New DB connection, total: 2<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.054 Connected to database 'mythconverg' at host: lasrsvm.law.washington.edu<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.065 TVRec(15): Start channel: 441.<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.065 Channel(/dev/video0): Device name 'Hauppauge WinTV PVR-150' driver 'ivtv'.<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.068 New DB connection, total: 3<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.073 Connected to database 'mythconverg' at host: lasrsvm.law.washington.edu<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.085 ChannelBase(15): Input #15: 'Composite 1' schan(441) sourceid(3) ccid(15)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.085 ChannelBase(15): Current Input #15: 'Composite 1'<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.090 Global TVFormat Setting 'NTSC'<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.090 Channel(/dev/video0): Input #15: 'Composite 1' schan(441) tun() v4l1(NTSC) v4l2(NTSC)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.090 Channel(/dev/video0): SetFormat(Default) fmt(NTSC) input(15)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.090 Channel(/dev/video0): SetInputAndFormat(15, NTSC) (v4l v2)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.090 Channel(/dev/video0): SetFormat(NTSC) fmt(NTSC) input(15)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.095 Channel(/dev/video0)::SwitchToInput(in 15, '')<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.097 Channel(/dev/video0): SetInputAndFormat(15, NTSC) (v4l v2)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.097 ChannelBase(15): SelectChannel 441<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.097 Channel(/dev/video0): SetChannelByString(441)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.106 Channel(/dev/video0): SetFormat(NTSC) fmt(NTSC) input(15)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.106 Channel(/dev/video0) Warning: You have not set an external channel changing<o:p></o:p></p>
<p class="MsoNormal">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; script for a composite or s-video input. Channel changing will do nothing.<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.111 Channel(/dev/video0): InitPictureAttribute(brightness):&nbsp; 128 [&nbsp;&nbsp;&nbsp; 0,&nbsp; 255] dflt(&nbsp; 128, 0.50, 128)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.117 Channel(/dev/video0): InitPictureAttribute(&nbsp; contrast):&nbsp; 63 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[&nbsp;&nbsp;&nbsp; 0,&nbsp; 127] dflt(&nbsp;&nbsp; 64, 0.50, 257)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.123 Channel(/dev/video0): InitPictureAttribute(&nbsp;&nbsp;&nbsp; colour):&nbsp; 63&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [&nbsp;&nbsp;&nbsp; 0,&nbsp; 127] dflt(&nbsp;&nbsp; 64, 0.50, 257)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.130 Channel(/dev/video0): InitPictureAttribute(&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; hue):&nbsp; 0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [ -128,&nbsp; 127] dflt(&nbsp;&nbsp;&nbsp; 0, 0.50, 128)<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.177 TVRec(15): SetFlags(RunMainLoop,) -&gt; RunMainLoop,<o:p></o:p></p>
<p class="MsoNormal">2011-09-15 17:25:09.177 TVRec(15): ClearFlags(ExitPlayer,FinishRecording,) -&gt; RunMainLoop,<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Does anyone have any ideas what else might inhibit mythbackend from detecting a capture card when started by one user vs another?<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">Jon<o:p></o:p></p>
<p class="MsoListParagraph"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>