Programmatically changing preffered Direct Show decoding filters

2 posters

Go down

Programmatically changing preffered Direct Show decoding filters Empty Programmatically changing preffered Direct Show decoding filters

Post by mcharrington Sat Jun 06, 2015 1: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

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin Sat Jun 06, 2015 1:53 pm

See the CTT help for command line parameters.

Admin
Admin

Posts : 7331
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by mcharrington Sat Jun 06, 2015 2:22 pm

Excellent, thank you for your help!

Works a treat!

Kind regards,

Matthew Charrington

mcharrington

Posts : 5
Join date : 2015-06-06

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin Sat Jun 06, 2015 2:56 pm

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 : 7331
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by mcharrington Sun Jun 07, 2015 9:33 am

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

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin Sun Jun 07, 2015 5:01 pm

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

Admin
Admin

Posts : 7331
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by mcharrington Mon Jun 08, 2015 8:03 am

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

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin Mon Jun 08, 2015 2:53 pm

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 : 7331
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by mcharrington Mon Jun 08, 2015 4:04 pm

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

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by Admin Tue Jun 09, 2015 3:25 pm

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

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

Admin
Admin

Posts : 7331
Join date : 2011-06-17

https://codecs.forumotion.net

Back to top Go down

Programmatically changing preffered Direct Show decoding filters Empty Re: Programmatically changing preffered Direct Show decoding filters

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top


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