[ivtv-devel] 350 Cpu usage for Xv playback reduced a lot - may help video/audio sync
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 ivtv-devel@ivtvdriver.org http://ivtvdriver.org/mailman/listinfo/ivtv-devel
Re: [ivtv-devel] 350 Cpu usage for Xv playback reduced a lot - may help video/audio sync
Hey John, it still works :-) When playing back a recorded mpg over Xv, I get +- 20% usage for mythfrontend, and 7% usage for X. This is on an athlon 2000xp. I've just started playback of a multihour recording. Untill now a/v sync usually drifts off so that I had to rewind every 10 minutes orso. I'll go back in a few hours to see if the a/v sync is still ok. Thanks for all the Xv work, it's really the thing that made my mediabox come together. Bye, Lucas 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 ivtv-devel@ivtvdriver.org http://ivtvdriver.org/mailman/listinfo/ivtv-devel ___ ivtv-devel mailing list ivtv-devel@ivtvdriver.org http://ivtvdriver.org/mailman/listinfo/ivtv-devel
Re: [ivtv-devel] 350 Cpu usage for Xv playback reduced a lot - may help video/audio sync
Lucas Meijer wrote: I've just started playback of a multihour recording. Untill now a/v sync usually drifts off so that I had to rewind every 10 minutes orso. I'll go back in a few hours to see if the a/v sync is still ok. Checked the playback after an hour. Normally a/v would have drifted terribly by now. With your new patch in svn I still have perfect a/v sync. Woohoo. Lucas ___ ivtv-devel mailing list ivtv-devel@ivtvdriver.org http://ivtvdriver.org/mailman/listinfo/ivtv-devel
Re: [ivtv-devel] 350 Cpu usage for Xv playback reduced a lot - may help video/audio sync
On Friday 07 Oct 2005 14:07, Rutger Hendriks wrote: snip I can confirm this works really nice. Last week has been very good. I started with 60-70% CPU usage for Xorg with CPU running at 2GHz. Now CPU usage has dropped to 1% for Xorg and the CPU is only running at 800MHz (powernow)! Very nice indeed! This is all with mplayer -vo xv -fs. The only 'problem' with this command is that a not unsignificant portion of the picture falls off the screen due to the overscan of the PVR350 or the TV. I can solve this by doing some mplayer magic and use this command to play video: mplayer -vo xv -vf scale=660:-3,expand=760:576:64:50 Unfortunately when I do that, I have around 20% CPU usage for Xorg with CPU running at 2GHz again. For me this is a trade off I will not make, so I'm using mplayer -vo xv -fs again. Is that a typo for the expand setting ? 760 is too wide for the 350 to handle in hardware alone. That could explain the high CPU usage. Related to this issue I have 2 questions: - Will it be possible to 'fix' this so that mplayer -vo xv -fs will display the full picture on the TV and still use only a few percent CPU usage? I know every TV is different, so if at all possible this would probably involve passing 4 arguments to maybe ivtv-fb or xdriver or ... This should be possible at some point. The video size is limited to the size of the X screen. Depending on how it's done, when the xdriver is changed to allow sizing positioning to reduce the overscan of X itself, the maximum size of the video will be reduced as well. -- Ian ___ ivtv-devel mailing list ivtv-devel@ivtvdriver.org http://ivtvdriver.org/mailman/listinfo/ivtv-devel
Re: [ivtv-devel] 350 Cpu usage for Xv playback reduced a lot - may help video/audio sync
On Friday 07 October 2005 17:58, Ian Armstrong wrote: On Friday 07 Oct 2005 14:07, Rutger Hendriks wrote: snip I can solve this by doing some mplayer magic and use this command to play video: mplayer -vo xv -vf scale=660:-3,expand=760:576:64:50 Unfortunately when I do that, I have around 20% CPU usage for Xorg with CPU running at 2GHz again. Is that a typo for the expand setting ? 760 is too wide for the 350 to handle in hardware alone. That could explain the high CPU usage. Point taken, I will check if 720 improves stuff CPU usage wise. Only, I found that when I used anything under 760 there was still some part visible of the Myth background at the edges of my TV screen. But since, as I said, the scale and expand numbers are not accurate at this moment, I will simply start over again with expand=720:576 and see where I end now. As a side note, if I remember correctly, expand=760 was as high as I could go... anything above 760 gave a green screen I think. Greetings Rutger pgpYkaGaKjP6p.pgp Description: PGP signature ___ ivtv-devel mailing list ivtv-devel@ivtvdriver.org http://ivtvdriver.org/mailman/listinfo/ivtv-devel