I've been tearing my hair out with the dreaded select timeout problem.
2007-01-09 00:38:02.455 MPEGRec(/dev/video0) Error: select timeout -
ivtv driver has stopped responding
I get no errors in the system (kernel) log file.
I tried everything disabling ht, disabling lvm, playing with ever
noapic, pci=routeirq, no preemptive.
After all this it seems that the problem was just with mythtv, and
mythtv was doing something stupid,
it was setting the wrong standard sometimes (just random memory,
because nothing was set in the database).
It seems the encoder gets very anonyied when the standard is wrong,
and dies.
removing the ivtv and reinserting, always fixed it, and cat /dev/
video0 > /file.mpg, always worked before running mythtv, and mythtv
would work sometimes and other times just die with the select
timeout, once it had died cat /dev/video0 > /file.mpg would stop
working.
ivtv0: ================= START STATUS CARD #0 =================
tveeprom 2-0050: Hauppauge model 48134, rev I121, serial# 6182597
tveeprom 2-0050: tuner model is Philips FM1216 (idx 21, type 5)
tveeprom 2-0050: TV standards PAL(B/G) (eeprom 0x04)
tveeprom 2-0050: audio processor is MSP4418 (idx 25)
tveeprom 2-0050: decoder processor is SAA7115 (idx 19)
tveeprom 2-0050: has radio, has IR remote
tuner 2-0061: Tuner mode: analog TV
tuner 2-0061: Frequency: 400.00 MHz
tuner 2-0061: Standard: 0x000000ff
saa7115 2-0021: Audio frequency: 48000 Hz
saa7115 2-0021: Input: S-Video 0
saa7115 2-0021: Video signal: broadcast/DVD -> This
would be
bad
saa7115 2-0021: Frequency: 50 Hz
saa7115 2-0021: Detected format: PAL
saa7127 2-0044: Standard: 50 Hz
-> This would be 60HZ
saa7127 2-0044: Input: normal
saa7127 2-0044: Output: S-Video + Composite
saa7127 2-0044: WSS: disabled
saa7127 2-0044: VPS: disabled
saa7127 2-0044: CC: disabled
msp3400 2-0040: MSP4418G-A2 rev1 = 0x0117 rev2 = 0x1242
msp3400 2-0040: Audio: volume 58950
msp3400 2-0040: Standard: could not detect sound standard (mono)
msp3400 2-0040: Audmode: 0x0001
msp3400 2-0040: Routing: 0x00222220 (input) 0x00000044 (output)
msp3400 2-0040: ACB: 0x0c00
ivtv0: ================== END STATUS CARD #0 ==================
The reason why the encoder had the wrong standard, was because a
field in the mythtv database in the channel table called tvformat for
my (old old old channels) hadn't been set, it was blank, not default.
(Probably because the database just keeps changing and it wasn't
updated, and then it was depended on, when the old method of forcing
pal (modprobe ivtv pal=1 stop being the way).
This isn't story isn't complete, as i haven't moved back up to the
2.6.18 kernel, i emerge the 2.6.17 and ivtv 0.7.3 drivers, to see if
that fixed it, and it didn't seem to.
So hopefully this is a soultion for some of you people with select
timeouts, check to see if the standard in ivtvctl/v4l2-ctl --log-
status is correct after the timeout, and if it isn't enable debuging
ivtv -D 23, and see if when the mythtv dies of select timeout, that
the standard hasn't been incorrectly set, it may work okay for a few
recordings with the wrong standard but will die.
Lookin dmesg for these lines.
-> CX2341X_DEC_SET_STANDARD
-> VIDIOC_S_STD
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel