Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

DirectShow Merits
Started by Otis at 06-12-2008 12:13. Topic has 0 replies.

Print Search « Previous Thread Next Thread »
  06-12-2008, 12:13
Otis is not online. Last active: 10/1/2008 9:21:00 PM Otis



Top 10 Posts
Joined on 10-19-2004
Charlotte, NC
Posts 308
DirectShow Merits

Attachment: SetMeritCommandLine.zip
When deciding which codecs and filters to load, DirectShow uses the Merit system. The Merit system basically gives each codec or filter a rank and when a file is decoded, the codec with the highest merit who claims to be able to handle that media type will be used. This can sometimes cause problems in Multimedia applications because the specific decoder you would like your application to use may not necessarily be used if there is a another decoder on the machine which can handle the same media type with a higher merit.

There are many utilities available to change the filter merit, but when developing an application, you may want your installation to set the merit rather have the client run a utility. Attached is a command line utility which allows you to set the merit from your application or installation.

The usage is as follows:

SetMeritCommandLine [{class-id}] [merit]"

MERIT_Values:
MERIT_PREFERRED = 0x800000
MERIT_NORMAL = 0x600000
MERIT_UNLIKELY = 0x400000
MERIT_DO_NOT_USE = 0x200000
MERIT_SW_COMPRESSOR = 0x100000" << endl;
MERIT_HW_COMPRESSOR = 0x100050" << endl;

Errors:
-1 = Invalid number of arguements
-2 = Error obtaining class-id
-3 = Error setting merit

Example:

SetMeritCommandLine "{E2B7DF46-38C5-11D5-91F6-00104BDB8FF9}" "0x800000"
Otis Goodwin
LEAD Developer Support
   Report 
Post
LEAD Support Fo... » Developer » Multimedia » DirectShow Merits

Powered by Community Server, by Telligent Systems