[mythtv-users] capture card not detected as mythtv user

Jonathan Larson jtlarson at u.washington.edu
Fri Sep 16 00:38:35 UTC 2011


I'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:

2011-09-15 10:34:59.077 MythBackend: Running as a slave backend.
2011-09-15 10:34:59.098 mythbackend: MythBackend started as a slave backend
2011-09-15 10:34:59.099 MythBackend, Warning: No valid capture cards are defined in the database.
2011-09-15 10:34:59.099 New DB connection, total: 2
2011-09-15 10:34:59.104 Connected to database 'mythconverg' at host: LASRSVM.law.washington.edu
2011-09-15 10:34:59.116 mythbackend: No capture cards are defined: This backend will not be used for recording.
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.

Things I have tried already:


1.       Add mythtv user to all groups that my user is a member of.

2.       Check permissions on /dev/video0: "crw-rw----+ 1 root video 81, 0 Sep  1 11:52 /dev/video0"

3.       Captured from the card directly as mythtv user using "cat /dev/video0 > /myth/tmp/test-1.mpg" --this works.

4.       Erased the card from mythtv-setup and re-added.

When I use my own username (i.e. when it's working), I see these entries:

2011-09-15 17:25:09.028 MythBackend: Running as a slave backend.
2011-09-15 17:25:09.048 mythbackend: MythBackend started as a slave backend
2011-09-15 17:25:09.049 New DB connection, total: 2
2011-09-15 17:25:09.054 Connected to database 'mythconverg' at host: lasrsvm.law.washington.edu
2011-09-15 17:25:09.065 TVRec(15): Start channel: 441.
2011-09-15 17:25:09.065 Channel(/dev/video0): Device name 'Hauppauge WinTV PVR-150' driver 'ivtv'.
2011-09-15 17:25:09.068 New DB connection, total: 3
2011-09-15 17:25:09.073 Connected to database 'mythconverg' at host: lasrsvm.law.washington.edu
2011-09-15 17:25:09.085 ChannelBase(15): Input #15: 'Composite 1' schan(441) sourceid(3) ccid(15)
2011-09-15 17:25:09.085 ChannelBase(15): Current Input #15: 'Composite 1'
2011-09-15 17:25:09.090 Global TVFormat Setting 'NTSC'
2011-09-15 17:25:09.090 Channel(/dev/video0): Input #15: 'Composite 1' schan(441) tun() v4l1(NTSC) v4l2(NTSC)
2011-09-15 17:25:09.090 Channel(/dev/video0): SetFormat(Default) fmt(NTSC) input(15)
2011-09-15 17:25:09.090 Channel(/dev/video0): SetInputAndFormat(15, NTSC) (v4l v2)
2011-09-15 17:25:09.090 Channel(/dev/video0): SetFormat(NTSC) fmt(NTSC) input(15)
2011-09-15 17:25:09.095 Channel(/dev/video0)::SwitchToInput(in 15, '')
2011-09-15 17:25:09.097 Channel(/dev/video0): SetInputAndFormat(15, NTSC) (v4l v2)
2011-09-15 17:25:09.097 ChannelBase(15): SelectChannel 441
2011-09-15 17:25:09.097 Channel(/dev/video0): SetChannelByString(441)
2011-09-15 17:25:09.106 Channel(/dev/video0): SetFormat(NTSC) fmt(NTSC) input(15)
2011-09-15 17:25:09.106 Channel(/dev/video0) Warning: You have not set an external channel changing
                        script for a composite or s-video input. Channel changing will do nothing.
2011-09-15 17:25:09.111 Channel(/dev/video0): InitPictureAttribute(brightness):  128 [    0,  255] dflt(  128, 0.50, 128)
2011-09-15 17:25:09.117 Channel(/dev/video0): InitPictureAttribute(  contrast):  63      [    0,  127] dflt(   64, 0.50, 257)
2011-09-15 17:25:09.123 Channel(/dev/video0): InitPictureAttribute(    colour):  63        [    0,  127] dflt(   64, 0.50, 257)
2011-09-15 17:25:09.130 Channel(/dev/video0): InitPictureAttribute(       hue):  0         [ -128,  127] dflt(    0, 0.50, 128)
2011-09-15 17:25:09.177 TVRec(15): SetFlags(RunMainLoop,) -> RunMainLoop,
2011-09-15 17:25:09.177 TVRec(15): ClearFlags(ExitPlayer,FinishRecording,) -> RunMainLoop,


Does anyone have any ideas what else might inhibit mythbackend from detecting a capture card when started by one user vs another?

Jon


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20110916/a4d2f2e4/attachment.html 


More information about the mythtv-users mailing list