On Wednesday 31 August 2005 09:29, John Harvey wrote:
> http://dl.ivtvdriver.org/xdriver/0.10.6/
>
> This reduces the CPU usage of the xdriver quite considerably. The smaller
> the image being rendered the greater the gain will be though it does seem
> to reduce the cpu usage by about 50% even for full screen PAL.
> John

Hi,

When you say the CPU usage goes down, what exactly do you mean? Will Xorg use 
fewer CPU? Or mplayer? Or the ivtv-fb module?
I'm asking because my xorg uses between 60% and 80% of the CPU (Athlon64 
3200+) when I play a video file in MythTV using mplayer -vo xv -fs (for 
mplayer output see below).

# top
top - 12:21:09 up 1 day,  1:25,  5 users,  load average: 3.61, 3.65, 3.73
Tasks: 130 total,   1 running, 119 sleeping,  10 stopped,   0 zombie
Cpu(s):  4.3% us, 68.8% sy,  0.0% ni, 26.6% id,  0.0% wa,  0.0% hi,  0.3% si
Mem:   1025544k total,   789788k used,   235756k free,    64692k buffers
Swap:   498004k total,   237724k used,   260280k free,   406416k cached

USER      PR  NI        VIRT    RES   SHR S     %CPU    %MEM    TIME+           
COMMAND
root    15   0  36272   14m  1424 S     68.8    1.4             114:39.21       
Xorg
mythtv  15   0  41720   18m  8200 S       3.0   1.9     1:17.86                 
mplayer32
loial   15   0  153m    4244 2856 S       1.0   0.4     3:00.58                 
xmms
root            15   0          0               0        0        S       0.3   
0.0     2:53.69                 lirc_dev

Why would there be a 68.8% sy CPU usage for Xorg? It seems awfully much, not?

Could it be that something is going wrong with the scaling? I use
mplayer -vo xv -fs, so the movie is scaled up someway or another. I was under 
the impression that the scaling would be done using the PVR350's hardware and 
would not touch the CPU...


I hope anyone can shed some light here.

Thanks,
Rutger


Version info:
ivtv: version 0.3.9 (development svn snapshot revision 2702)
xdriver: 0.10.6
mplayer-1.0_pre7-r1
xorg-x11-6.8.2-r4

Mplayer output:

Cache fill: 19.92% (417792 bytes)    ASF file format detected.
VIDEO:  [WMV3]  368x276  24bpp  1000.000 fps    0.0 kbps ( 0.0 kbyte/s)
Clip info:
 name:
 author:
 copyright:
 comments:
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, s16le, 48.0 kbit/6.81% (ratio: 6003->88200)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
vo: X11 running at 720x576 with depth 24 and 32 bpp (":1.0" => local display)
==========================================================================
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0   size:304704  align:1
StreamCount r=0x0  1  1
Decoder supports the following YUV formats: YV12 YUY2 UYVY YVYU   ▒
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 368 x 276 (preferred csp: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 368x276 => 368x276 Planar YV12  [fs]
Selected video codec: [wmv9dmo] vfm:dmo (Windows Media Video 9 DMO)
==========================================================================
Checking audio filter chain for 44100Hz/1ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/1ch/s16le
AO: [oss] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/1ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
Exiting... (Quit)

Attachment: pgplaAn9Ex8Ot.pgp
Description: PGP signature

Reply via email to