John / Xv users, [moved to ivtv-users]
This thread is 5 months old but I've still not managed to achieve what others have with Xv. I've just started hacking hard at my system again and I still see ~50% X CPU usage... Here's my current specs: 2.53GHz Celeron D w/ 512Mb RAM FC3 distro (Xorg 6.8.2) w/ 2.6.15.6 kernel ivtv: 0.4.4 (3170) w/ mpg_buffers=16 ivtv_xdriver: 0.10.6 (from atrpms) (I've also tested with different versions of ivtv and kernel during this period) Tests with DVD (720x576 MPEG2) playback: Both xine and mplayer always cause X to consume ~40-50% CPU. Until recently, I was using a stock FC3 2.6.12 kernel (no preemption and 1KHz timer) and X CPU was ~35-40% but since hand-compiling 2.6.15.6 with voluntary preemption and 250Hz timer, X CPU has actually risen. mplayer/xine typically adds another 10-20%. Xv does work and displays smoothly unless the encoder is running simultaneously. In this case, I typically get choppy Xv playback and a recording with dropped frames. I've also seen DMA errors like this, althoug they don't appear to be related to the high X CPU: 06:06:44 kernel kernel: ivtv0-osd warning: Need to adjust to width 720 src_w 720 dst_w 720 src_x 0 dst_x 0 06:06:44 kernel kernel: ivtv0-osd warning: Need to adjust to height 576 src_h 576 dst_h 576 src_y 0 dst_y 0 06:06:44 kernel kernel: ivtv0-osd warning: Source video: Interlaced 06:06:44 kernel kernel: ivtv0 warning: Enable video output 06:16:57 kernel kernel: om b7d4afe8 of 720896 bytes failed with (-5) offset = 0xbefe0, total 1503200 06:16:57 kernel kernel: ivtv0 warning: prep_user_dma: SG_length 400 page_count 400 still full? 06:16:57 kernel kernel: ivtv0-osd warning: ivtvfb_prep_dec_dma_to_device, Error with get_user_pages: 720896 bytes, 400 pages returned 06:16:57 kernel: ivtv0-osd warning: Error: prep osd dma to device rc=-5 06:16:57 kernel: ivtv0-osd warning: DMA xfer from b7d4afe8 of 720896 bytes failed with (-5) offset = 0xbefe0, total 1503200 If others are really seeing <5% X CPU when displaying an interlaced PAL DVD using Xv, does anyone have a clue what I'm doing wrong? If you have this working fine on x86 running Xorg 6.8.2 w/ glibc 2.3.6 - please send me your ivtv_xdriver binary. If you have it working with some other combination, please let me know what combination works for you. Here's my mplayer line (it uses Xv by default): % mplayer -geometry 720x576+0+0 -noaspect dvd:// -ao alsa:noblock -vo xv -afm hwac3 -alang en ...and it's using the rtc. Thanks, Wilf. On 08/10/05, John Harvey <[EMAIL PROTECTED]> wrote: > A lot comes down to how accurately things sync up. > Have you enabled the real time clock as recommended when mplayer starts (if > it's not there)?me clock as recommended when mplayer starts (if > it's not there)? > What CPU do you have? > You could mail me the output of mplayer & xine if you like which might give > some clues as to what is happening. > > John > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:ivtv-devel- > > [EMAIL PROTECTED] On Behalf Of Graeme Wilford > > Sent: 08 October 2005 10:32 > > To: Discussion list for development of the IVTV driver > > Subject: Re: [ivtv-devel] 350 Cpu usage for Xv playback reduced a lot - > > mayhelp video/audio sync > > > > John, > > > > This is looking good - I'm definitely seeing a significant drop in X > > CPU for some video but not all. It also seems to depend on using > > mplayer - > > > > When playing a 720x576 vob, I see this: > > > > App 'app CPU' 'X CPU' > > mplayer 15% 35% > > xine 12% 45% > > > > When playing a 688x416 XVID, I see this: > > > > xine 14% 25% > > mplayer 10% 5% > > > > Here are the options I'm using: > > % mplayer -fs -v -monitoraspect 16:9 > > % xine -f --verbose -r 4:3 > > > > Playing a 480 avi gave me very low X CPU usage with mplayer (1-2%) but > > about 14% under xine. Both apps are using Xv, xdriver 0.10.6 and svn > > 2757 for these tests. > > > > All of this made me wonder about the recommended configuration for use > > of Xv. John (or others), do you have any such recommendations or > > should we just figure it out using trial-and-error? > > > > Cheers, > > Wilf. > > > > On 07/10/05, John Harvey <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > I have just submitted a patch for the YUV playback code which > > significantly > > > reduces the cpu used during playback using the Xv code. > > > > > > Now the CPU usage for X has dropped from about 30-35% to about 0.5 - 2%. > > So > > > I can now play back stuff with mplayer burning ~13%cpu and I have > > between 80 > > > & 85% idle. > > > > > > Mplayer drops much fewer frames now (1 or 2 at start up) and the audio & > > > video should be more in sync than in the past. > > > > > > > > > > > > I have now finished all the planned changes for the Xv/yuv code before > > 0.4 > > > is branched other than fixing issues that anyone finds with the last few > > > changes. > > > > > > Thanks > > > > > > > > > > > > John > > > _______________________________________________ > > > ivtv-devel mailing list > > > [email protected] > > > http://ivtvdriver.org/mailman/listinfo/ivtv-devel > > > > > > > > > > > > -- > > [EMAIL PROTECTED] | MythTV blog: http://mezzanines.blogspot.com/ > > > _______________________________________________ > ivtv-devel mailing list > [email protected] > http://ivtvdriver.org/mailman/listinfo/ivtv-devel > -- [EMAIL PROTECTED] | MythTV blog: http://mezzanines.blogspot.com/ _______________________________________________ ivtv-users mailing list [email protected] http://ivtvdriver.org/mailman/listinfo/ivtv-users
