From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ben Lancki
Sent: 04 October 2005 20:07
To: [email protected]
Subject: [ivtv-devel] xdriver 0.10.6 high cpu usage

 

I have a PVR350 and have been very pleased with the output of the xdriver, so I switched my livetv output to use xv rather than the mpeg2 decoder. It works great, but I do notice that when I'm recording and playing back at the same time on the 350 (livetv), the cpu usage of X goes from around 12% to 50% on my Athlon XP 3200. It starts at around 12% and holds for around 5 to 10 minutes and then climbs to 50% where it remains. I have not seen this behavior when I watch something prerecorded (and my card isn't recording anything else). Has anyone else seen this? I'm using development snapshot 2718 of ivtv.

What is happening (as far as I can tell) is that the code that is trying to display stuff gets gradually more and more out of sync with the rate at which the 350 is displaying it. There is a small buffer in the code and if it fills up it has to wait to insert the data. The wait for this appears to be counted as time allocated to X even though the driver is sleeping. At this point the audio is probably 3-4 frames out of sync with the video.

What I think really needs to happen is that the playback programs can use the 350 for it synchronization.

I’m about to start looking at this. If we get it right the CPU usage could drop but then it may just be we move it into the wait for vsync call.

On an unrelated note, when I use xv to view things recorded by the 350, the output looks great, including interlaced video like CNN. But when I use it to view DVDs with xine, it seems that the field order is reversed. Is there a good command line for xine to get proper scaling/positioning of interlaced DVD output (without deinterlace filters thanks)? My current command line is: xine -pfhqB --auto-scan dvd

 

Should just work. Maybe post the messages in the kernel logs when starting to play a dvd and we can look for anything obvious.

 

John

_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel

Reply via email to