[mythtv-users] /dev/video0 works UNTIL myth records, video1 works all the time

Justin Walther justin at walthernet.com
Tue Jan 2 14:16:43 UTC 2007


Hey folks,
Have a very strange issue.  Rebuilt my mythbox after running fine for
a few years on an older system.   Here is my very strange issue:

I have 2 PVR250 cards.  I can cat /dev/video0 > test0.mpg and cat
/dev/video1 > test1.mpg and that works fine after powering on the box.
 However, once I start up mythbackend and start a recording on both
tuners, /dev/video0 records just a blank signal.  Video1 works just
fine.  If I then kill mythbackend and retry my cat /dev/video0 >
test0.mpg, I get a blank signal until I either reboot the server or
reload ivtv.

Here are my system specs:
Intel WGH965 Mobo
Core 2 Duo proc
2 PVR-250 cards from several years ago
Running Fedora Core 6 x64
Installed using Jerod's guide

Here is my lspci -v output:
06:00.0 Multimedia video controller: Internext Compression Inc iTVC16
(CX23416) MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc. WinTV PVR 250
        Flags: bus master, medium devsel, latency 64, IRQ 58
        Memory at 54000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2

06:01.0 Multimedia video controller: Internext Compression Inc iTVC16
(CX23416) MPEG-2 Encoder (rev 01)
        Subsystem: Hauppauge computer works Inc. WinTV PVR 250
        Flags: bus master, medium devsel, latency 64, IRQ 90
        Memory at 50000000 (32-bit, prefetchable) [size=64M]
        Capabilities: [44] Power Management version 2

Here is my pertinent backend log during recording: (note: tuner 3 =
/dev/video1, tuner2 = /dev/video0)

2007-01-02 08:23:21.716 TVRec(3): Changing from None to RecordingOnly
2007-01-02 08:23:21.730 TVRec(3): HW Tuner: 3->3
2007-01-02 08:23:21.936 Started recording: Curious George "Zeros to Donuts; Curi
ous George, Stain Remover": channel 1004 on cardid 3, sourceid 1
2007-01-02 08:23:21.965 MPEGRec(/dev/video1) Error: Error getting codec params u
sing old IVTV ioctl
                        eno: Bad address (14)
2007-01-02 08:23:26.219 MainServer::HandleAnnounce Monitor
2007-01-02 08:23:26.223 adding: home as a client (events: 0)
2007-01-02 08:23:31.668 MainServer::HandleAnnounce Monitor
2007-01-02 08:23:31.669 adding: home as a client (events: 0)
0: start_time: 0.036 duration: 0.739
1: start_time: 0.026 duration: 0.715
stream: start_time: 0.289 duration: 8.319 bitrate=5411 kb/s
2007-01-02 08:23:31.850 AFD: Opened codec 0x964fd0, id(MPEG2VIDEO) type(Video)
2007-01-02 08:23:31.873 AFD: Opened codec 0x9653a0, id(MP2) type(Audio)
2007-01-02 08:23:31.936 MainServer::HandleAnnounce FileTransfer
2007-01-02 08:23:31.946 adding: home as a remote file transfer
2007-01-02 08:23:31.949 MythSocket(925280:-1): writeStringList: Error, socket we
nt unconnected.
2007-01-02 08:23:36.365 MainServer::HandleAnnounce Monitor
2007-01-02 08:23:53.102 TVRec(2): Changing from None to RecordingOnly
2007-01-02 08:23:53.106 TVRec(2): HW Tuner: 2->2
2007-01-02 08:23:53.268 Started recording: SpongeBob SquarePants "The New Leaf;
Once Bitten": channel 1043 on cardid 2, sourceid 1
2007-01-02 08:23:53.294 MPEGRec(/dev/video0) Error: Error getting codec params u
sing old IVTV ioctl
                        eno: Bad address (14)
2007-01-02 08:23:56.966 MainServer::HandleAnnounce Monitor
2007-01-02 08:23:56.969 adding: home as a client (events: 0)
2007-01-02 08:24:00.927 MainServer::HandleAnnounce Monitor
2007-01-02 08:24:00.929 adding: home as a client (events: 0)
0: start_time: 0.036 duration: 0.523
1: start_time: 0.026 duration: 0.497
stream: start_time: 0.291 duration: 5.915 bitrate=5631 kb/s
2007-01-02 08:24:01.019 AFD: Opened codec 0x9578a0, id(MPEG2VIDEO) type(Video)
2007-01-02 08:24:01.020 AFD: Opened codec 0x957d40, id(MP2) type(Audio)
2007-01-02 08:24:01.136 MainServer::HandleAnnounce FileTransfer
2007-01-02 08:24:01.137 adding: home as a remote file transfer
2007-01-02 08:24:01.142 MythSocket(2aaab0014280:-1): writeStringList: Error, soc
ket went unconnected.
2007-01-02 08:24:08.108 MainServer::HandleAnnounce Monitor
2007-01-02 08:24:08.110 adding: home as a client (events: 0)

As a side note, I have to chmod 666 /dev/video* to get mythtvsetup to
even see the video devices when I run mythtvset as mythtv user, per
jerod's guide.  Also note, back in the day when I built my last box
with myth .15, I had to add an options line in modprobe.conf to
manually specify tuner type for one of my cards but not the other.
Not sure why they're different or if this is related but thought I'd
mention it.

Thanks for any and all help!

--Justin Walther


More information about the mythtv-users mailing list