Programmatically changing preffered Direct Show decoding filters
2 posters
Page 1 of 1
Programmatically changing preffered Direct Show decoding filters
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.
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
Re: Programmatically changing preffered Direct Show decoding filters
See the CTT help for command line parameters.
Re: Programmatically changing preffered Direct Show decoding filters
Excellent, thank you for your help!
Works a treat!
Kind regards,
Matthew Charrington
Works a treat!
Kind regards,
Matthew Charrington
mcharrington- Posts : 5
Join date : 2015-06-06
Re: Programmatically changing preffered Direct Show decoding filters
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.
Re: Programmatically changing preffered Direct Show decoding filters
Hi,
Just wondering, is there a way to change the System Tray Icons via the command prompt or registry?
Thanks.
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
Re: Programmatically changing preffered Direct Show decoding filters
You can turn them on/off in the settings of the LAV Filter. These settings are stored in the Registry.
Re: Programmatically changing preffered Direct Show decoding filters
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.
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
Re: Programmatically changing preffered Direct Show decoding filters
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.
The codec pack has an option for the tray icons in the installer.
Re: Programmatically changing preffered Direct Show decoding filters
Perfect, that works thank you.
I wanted to install as unattended so I will set everything else up thereafter.
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
Re: Programmatically changing preffered Direct Show decoding filters
The codec pack has the ability to create custom unattended installs.
Use /unattended command line switch and select the desired settings.
Use /unattended command line switch and select the desired settings.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum