WM Encoder bit rate,fps vs performance

hi,

I am trying to explore the WM Encoder tool for a screen capture. I

noticed that the encoder always had a different bit rate and capture

rate for each session. I chose to have medium quality output file every

time. I am trying to emulate the performance issues i have with

my application to help me with the same. I have an application which

uses the WM Screen Encoder to do the capture. However, i am

facing performance problems. The CPU resources always max to 90+ pc. Is

there any way to tune my encoder to give me better performance? I am

getting a slightly better performance with your tool. But even in the

case of the tool the resources max to 90pc often. I was wondering how

the bit rate and fps is chosen and how to tune the encoder?

I have a 1.33 Ghz toshiba protege tablet pc.

Thanks.

Samantha

[835 byte] By [samanthachandrasekar] at [2007-12-23]
# 1

Try to set complexity mode to Live (1):

CComQIPtr<IPropertyBag> propertyBag = encoder;

VARIANT varComplexety;

VariantInit(&varComplexety);

varComplexety.vt = VT_I4;

varComplexety.lVal = 1;

propertyBag->Write(g_wszWMVCComplexityEx, &varComplexety);

Vadun at 2007-8-30 > top of Msdn Tech,Audio and Video Development,Media Foundation Development...
# 2
Many thanks for your help. But, i seem to be a bit lost as in where to

put this code?Can you please elaborate on this above piece of

code?Sorry for bothering you.

Thanks.

Samantha

samanthachandrasekar at 2007-8-30 > top of Msdn Tech,Audio and Video Development,Media Foundation Development...
# 3

Samantha,

Vadun's suggestion would work if you were writing code to do this compression against, say, the Windows Media Format SDK; what he's suggesting is a way to tell the codec to do lower-quality and hopefully less CPU-intensive encoding.

However, it sounds like you're not writing code and instead are just using the WM Encoder tool directly. I unfortunately don't know whether these complexity settings can be set by hand through the user interface. The best place for WM Encoder questions is the WMEncoder newsgroup, which is here: http://www.microsoft.com/windows/windowsmedia/community/newsgroups/WindowsMedia/default.mspx?dg=microsoft.public.windowsmedia.encoder&lang=en&cr=US ... This forum deals with Media Foundation, which is the multimedia programming platform for Windows Vista.

Becky

BeckyWeiss-MSFT at 2007-8-30 > top of Msdn Tech,Audio and Video Development,Media Foundation Development...
# 4
Hi Becky,

Thanks so much or your response. I figured out what Vandun was trying

to say and i am implementing that in my code.Yes, i am trying to write

my code. I have the code which uses the WM Screen encoder. I am sorry

for the prev. post as I did understand it at once.

many thanks for the pointer to the encoder forum.

Samantha

samanthachandrasekar at 2007-8-30 > top of Msdn Tech,Audio and Video Development,Media Foundation Development...