Welcome Guest! To enable all features, please Login or Register.



Last Go to last post Unread Go to first unread post
#1 Posted : Thursday, June 12, 2008 7:08:47 AM(UTC)


Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

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_NORMAL = 0x600000
MERIT_DO_NOT_USE = 0x200000
MERIT_SW_COMPRESSOR = 0x100000" << endl;
MERIT_HW_COMPRESSOR = 0x100050" << endl;

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


SetMeritCommandLine "{E2B7DF46-38C5-11D5-91F6-00104BDB8FF9}" "0x800000"
File Attachment(s):
SetMeritCommandLine.zip (10kb) downloaded 205 time(s).

Try the latest version of LEADTOOLS for free for 60 days by downloading the evaluation: https://www.leadtools.com/downloads

Wanna join the discussion? Login to your LEADTOOLS Support accountor Register a new forum account.

#2 Posted : Thursday, October 1, 2009 6:03:41 AM(UTC)


Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

I have updated this utility to VS2008 (attached).
File Attachment(s):
SetMeritCommandLine.zip (11kb) downloaded 191 time(s).
#3 Posted : Sunday, December 26, 2010 5:21:40 AM(UTC)

Adam Boulad  

Groups: Guests
Posts: 3,022

Was thanked: 2 time(s) in 2 post(s)

The new LEADTOOLS version 17 setup has a 'DirectShow Filters Merits' utility which shows the merit of the installed DirectShow filters and enables you to easily control the merit of each filter.

Also, you can now programmatically set the preferred decoders using our Multimedia toolkits.
For more information, please see the help topic " SetPreferredFilter Method" or contact support@leadtools.com

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Powered by YAF.NET | YAF.NET © 2003-2021, Yet Another Forum.NET
This page was generated in 0.104 seconds.