Programmatically changing preffered Direct Show decoding filters

View previous topic View next topic Go down

Programmatically changing preffered Direct Show decoding filters

Post by mcharrington on Sat Jun 06, 2015 11:29 pm

Hi guys,

Sorry to bother you. We have written a music player that can play mp4 videos etc, etc. We standardly install k-lite as the codec package.

The problem is we set all decoders to use LAV instead of Microsoft/ffdshow/USE MERIT. After a period of time on some computers these return back to default and therefore crashes our program.

Is there a way for me to programmatically set each decoder to use LAV (if applicable) through a command prompt or registry (as seen using the Win7DSFilterTweaker - Preferred decoders)?

Many thanks,

Matthew Charrington.

mcharrington

Posts : 5
Join date : 2015-06-06

View user profile

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin on Sat Jun 06, 2015 11:53 pm

See the CTT help for command line parameters.

Admin
Admin

Posts : 2979
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by mcharrington on Sun Jun 07, 2015 12:22 am

Excellent, thank you for your help!

Works a treat!

Kind regards,

Matthew Charrington

mcharrington

Posts : 5
Join date : 2015-06-06

View user profile

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin on Sun Jun 07, 2015 12:56 am

If you require subtitles then it is recommended to use "USE MERIT". It should still use LAV since that has a higher merit than the Microsoft decoder.

Admin
Admin

Posts : 2979
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by mcharrington on Sun Jun 07, 2015 7:33 pm

Hi,

Just wondering, is there a way to change the System Tray Icons via the command prompt or registry?

Thanks.

mcharrington

Posts : 5
Join date : 2015-06-06

View user profile

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin on Mon Jun 08, 2015 3:01 am

You can turn them on/off in the settings of the LAV Filter. These settings are stored in the Registry.

Admin
Admin

Posts : 2979
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by mcharrington on Mon Jun 08, 2015 6:03 pm

Thank you for replying!

I have checked the reigstry for LAV and found items in:

HLM\SOFTWARE\LAV64\Audio\TrayIcon (REG_DWORD)
HLM\SOFTWARE\LAV64\Spliiter\TrayIcon (REG_DWORD)
HLM\SOFTWARE\LAV64\Video\TrayIcon (REG_DWORD)

HLM\SOFTWARE\Wow6432Node\LAV\Audio\TrayIcon (REG_DWORD)
HLM\SOFTWARE\Wow6432Node\LAV\Spliiter\TrayIcon (REG_DWORD)
HLM\SOFTWARE\Wow6432Node\LAV\Video\TrayIcon (REG_DWORD)

When I open LAV VIDEO or LAV VIDEO (x64) and change "Enable System Tray Icon", none of the above registry items change. Is there another registry path I'm missing?

Many thanks.

mcharrington

Posts : 5
Join date : 2015-06-06

View user profile

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin on Tue Jun 09, 2015 12:53 am

The values in HKLM are defaults that are read-only. If you change settings, then similar keys are created in HKCU.

The codec pack has an option for the tray icons in the installer.

Admin
Admin

Posts : 2979
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by mcharrington on Tue Jun 09, 2015 2:04 am

Perfect, that works thank you.

I wanted to install as unattended so I will set everything else up thereafter.

Thank you.

mcharrington

Posts : 5
Join date : 2015-06-06

View user profile

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin on Wed Jun 10, 2015 1:25 am

The codec pack has the ability to create custom unattended installs.

Use /unattended command line switch and select the desired settings.

Admin
Admin

Posts : 2979
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Programmatically changing preffered Direct Show decoding filters

Post by Sponsored content Today at 1:34 am


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum