First of all, I originally posted my problems on the forum on July 30th, but
it doesn't seem anyone's answering questions there and I'd like to get these
problems solved.

I'm running 0.3.6q of ivtv.

The info from messages is as follows:

Aug 13 14:59:49 thor kernel: ivtv: ==================== START INIT IVTV
====================
Aug 13 14:59:49 thor kernel: ivtv: version 0.3.6 (q) loading
Aug 13 14:59:49 thor kernel: ivtv: Linux version: 2.6.9-1.667 686 REGPARM
4KSTACKS gcc-3.4
Aug 13 14:59:49 thor kernel: ivtv: In case of problems please include the
debug info
Aug 13 14:59:49 thor kernel: ivtv: between the START INIT IVTV and END INIT
IVTV lines when
Aug 13 14:59:49 thor kernel: ivtv: mailing the ivtv-devel mailinglist.
Aug 13 14:59:49 thor kernel: ivtv: Autodetected WinTV PVR 150 card
Aug 13 14:59:49 thor kernel: ivtv: Found an iTVC16 based chip
Aug 13 14:59:49 thor kernel: ACPI: PCI interrupt 0000:00:0a.0[A] -> GSI 3
(level, low) -> IRQ 3
Aug 13 14:59:49 thor kernel: ivtv: Unreasonably low latency timer, setting
to 64 (was 32)
Aug 13 14:59:49 thor kernel: ivtv: XXX PCI device: 0x0661 vendor: 0x1039
Aug 13 14:59:50 thor kernel: tveeprom: Hauppauge: model = 26032, rev = C199,
serial# = 7783501
Aug 13 14:59:50 thor kernel: tveeprom: tuner = TCL 2002N 5H (idx = 99, type
= 50)
Aug 13 14:59:50 thor kernel: tveeprom: tuner fmt = NTSC(M) (eeprom = 0x08,
v4l2 = 0x00001000)
Aug 13 14:59:50 thor kernel: tveeprom: audio_processor = TDA9850 (type = 3)
Aug 13 14:59:50 thor kernel: ivtv: i2c attach [client=tveeprom[50],ok]
Aug 13 14:59:50 thor kernel: cx25840: requesting /lib/modules/HcwMakoA.ROM
Aug 13 14:59:52 thor kernel: cx25840: firmware loaded
Aug 13 14:59:52 thor kernel: ivtv: i2c attach [client=cx25840[50],ok]
Aug 13 14:59:52 thor kernel: tuner: chip found at addr 0xc2 i2c-bus ivtv i2c
driver #0
Aug 13 14:59:52 thor kernel: ivtv: i2c attach [client=(tuner unset),ok]
Aug 13 14:59:52 thor kernel: ivtv: i2c attach [client=wm8775[50],ok]
Aug 13 14:59:52 thor kernel: ivtv: Tuner Type 50, Tuner formats 0x00001000,
Radio: yes, Model 0x008d1659, Revision 0x00000000
Aug 13 14:59:52 thor kernel: ivtv: NTSC tuner detected
Aug 13 14:59:52 thor kernel: ivtv: Radio detected
Aug 13 14:59:53 thor kernel: ivtv: Encoder revision: 0x02050032
Aug 13 14:59:53 thor kernel: ivtv: Encoder Firmware may be buggy, use
version 0x02040011
Aug 13 14:59:53 thor kernel: ivtv: Configuring WinTV PVR 150 card with 5
streams
Aug 13 14:59:53 thor kernel: ivtv: Registered v4l2 device for encoder MPEG
minor 0
Aug 13 14:59:53 thor kernel: ivtv: Create DMA encoder MPEG stream: 128 x
32768 buffers (4096KB total)
Aug 13 14:59:53 thor kernel: ivtv: Registered v4l2 device for encoder YUV
minor 32
Aug 13 14:59:53 thor kernel: ivtv: Create DMA encoder YUV stream: 194 x
10800 buffers (2048KB total)
Aug 13 14:59:53 thor kernel: ivtv: Registered v4l2 device for encoder VBI
minor 224
Aug 13 14:59:53 thor kernel: ivtv: Create DMA encoder VBI stream: 240 x 8736
buffers (2048KB total)
Aug 13 14:59:53 thor kernel: ivtv: Registered v4l2 device for encoder PCM
audio minor 24
Aug 13 14:59:53 thor kernel: ivtv: Create DMA encoder PCM audio stream: 455
x 4608 buffers (2048KB total)
Aug 13 14:59:53 thor kernel: ivtv: Registered v4l2 device for encoder radio
minor 64
Aug 13 14:59:53 thor kernel: ivtv: Create encoder radio stream
Aug 13 14:59:53 thor kernel: ivtv: Setting Tuner 50
Aug 13 14:59:53 thor kernel: tuner: type set to 50 (TCL 2002N) by ivtv i2c
driver #0
Aug 13 14:59:53 thor kernel: ivtv: ivtv_enc_thread: pid = 4444, itv =
0x40d6d220
Aug 13 14:59:53 thor kernel: ivtv: ivtv_enc_vbi_thread: pid = 4445, itv =
0x40d6d220
Aug 13 14:59:53 thor kernel: ivtv: Switching standard to NTSC.
Aug 13 14:59:53 thor kernel: ivtv: Initialized WinTV PVR 150, card #0
Aug 13 14:59:53 thor kernel: ivtv: ====================  END INIT IVTV
====================


I have two problems:

1: Every once in a while, for roughly a day at a time, doing captures hogs
up to 40-60% of the CPU. I'm doing the captures with:

nice -n -20 cat /dev/video > movie.mpg

Most of the time, it only uses about 1% of CPU, but maybe one day a week it
will be using 40-60% during captures and when it does, the videos are
usually skipping frames.

Usually, the day after, the problem goes away and will stay away for a week
or so. There's nothing unusual going on. My machine's on 24/7 for months at
a time. I don't use it for much else except transcoding with mencoder
(usually niced to 15) and I use it as a firewall and file server with Samba.

The other problem I have, and this is pretty consistent, roughly every other
capture, there's about a 40 second lag time before it actually starts
capturing. 

Usually, the way I check is I try to do the capture. Then while it's trying
to capture, I check to see if the file is growing. If it isn't, I kill the
process. The process usually won't die until the 40 seconds have passed.
Then if I try to do a capture right after that, it will work fine.

Here's what messages shows. You can clearly see the delay:

Jul 30 08:08:06 thor kernel: ivtv: Allocate DMA encoder MPEG stream: 128 x
32768 buffers (4096KB total)
Jul 30 08:08:43 thor kernel: ivtv: Setup VBI API header 0x0000bd0d pkts 1
buffs4 ln 24 sz 1456
Jul 30 08:08:43 thor kernel: ivtv: Setup VBI start 0x002fea04 frames 4 fpi 1
lines 0x00000140


Here's an example when it doesn't lag:


Jul 30 08:12:03 thor kernel: ivtv: Allocate DMA encoder MPEG stream: 128 x
32768 buffers (4096KB total)
Jul 30 08:12:03 thor kernel: ivtv: Setup VBI API header 0x0000bd0d pkts 1
buffs4 ln 24 sz 1456
Jul 30 08:12:03 thor kernel: ivtv: Setup VBI start 0x002fea04 frames 4 fpi 1
lines 0x00000140

Looks more or less the same except without the 37 second delay.

Like I said, this is pretty reliably every other capture. Sometimes there's
variation, but usually it's pretty reliable.

Any help with either of these problems (particularly the CPU issue, since
the other I can work around pretty easily) would be greatly appreciated.

Thanks.

Pete





-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
ivtv-devel mailing list
ivtv-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ivtv-devel

Reply via email to