PDA

View Full Version : How to avoid AVIStreamSetFormat dialog box for "XviD" codec


kulkarnihemant2000
30th October 2006, 06:13
Hi,

I am writing an application where I convert the set of images to .avi file. I want to use XviD MPEG4 codec as a default codec. I set this as default codec to “xvid”. Now my AVIStreamSetFormat function displays a dialog box with title "XviD Status". How can I avoid this dialog box?



Regards,
Hemant Kulkarni

foxyshadis
30th October 2006, 08:10
Either check the box on it that says don't show it, or set HKEY_CURRENT_USER\Software\GNU\XviD\display_status to 0 in the code. Both are permanent.

kulkarnihemant2000
30th October 2006, 09:50
Hi,
Thanks for reply.

But the registry is not having the "display_status" key. Then how I can set it to zero.?

Regards,
Hemant.

foxyshadis
30th October 2006, 10:54
Any specific programming language? The hacky way is to call regedit like system("regedit -s \"%temp%\\xvidstatus.reg\""); (for C, even language has a similar functionality), where xvidstatus.reg is:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\GNU\XviD]
"display_status"=dword:00000000

Some languages can manipulate the registry directly, which is better if you're changing parameters a lot, but isn't necessary for a quick fix.