VfW Saving Compression Options
-
hi! i wrote a very simple app to capture videos with VfW.
HWND hwnd = capCreateCaptureWindow ("MyWindow", WS_CHILD | WS_VISIBLE , 0, 0, 160, 120, hwndParent, nID);
capDriverConnect (hWndC, 0);
capDlgVideoCompression(hwnd); // this displays the compression settings dialog
capCaptureSequence (hwnd);does anyone know how to store the compression settings to reuse them? is there any possibility to access the internal data of the capture window? thanks in advance -arni
-
hi! i wrote a very simple app to capture videos with VfW.
HWND hwnd = capCreateCaptureWindow ("MyWindow", WS_CHILD | WS_VISIBLE , 0, 0, 160, 120, hwndParent, nID);
capDriverConnect (hWndC, 0);
capDlgVideoCompression(hwnd); // this displays the compression settings dialog
capCaptureSequence (hwnd);does anyone know how to store the compression settings to reuse them? is there any possibility to access the internal data of the capture window? thanks in advance -arni
-
Yes, but it depends how the information is stored by the library functions. The documentation should help.
Thanks for the reply...you are right - that's the question! the documentation doesn't say anything about that.
-
Thanks for the reply...you are right - that's the question! the documentation doesn't say anything about that.
-
How are these values set in the first place? And, surely if you can display them then you can save the results somewhere.
the call to:
capDlgVideoCompression(hwnd);
displays a dialog to choose compression an parameters, and after "OK" they are stored somewhere (in the hwnd?) this process does work for the current session, but when i restart my app everything is gone. none of the structures (CAPDRIVERCAPS,CAPINFOCHUNK,CAPSTATUS,CAPTUREPARMS,etc.) gives me valid information about the chosen compression. what i need is the COMPVARS or AVICOMPRESSIONOPTIONS structure, but to access these seems to be a completely different approach. tia. -arno
-
the call to:
capDlgVideoCompression(hwnd);
displays a dialog to choose compression an parameters, and after "OK" they are stored somewhere (in the hwnd?) this process does work for the current session, but when i restart my app everything is gone. none of the structures (CAPDRIVERCAPS,CAPINFOCHUNK,CAPSTATUS,CAPTUREPARMS,etc.) gives me valid information about the chosen compression. what i need is the COMPVARS or AVICOMPRESSIONOPTIONS structure, but to access these seems to be a completely different approach. tia. -arno
The HWND object only exists for the life of the application, so any values stored inside it will be lost when the application terminates. You will need to save all the values yourself in some permanent storage area. See Where should I store my data?[^]; it's written for .NET but can easily be adapted to a Win32 app.
-
The HWND object only exists for the life of the application, so any values stored inside it will be lost when the application terminates. You will need to save all the values yourself in some permanent storage area. See Where should I store my data?[^]; it's written for .NET but can easily be adapted to a Win32 app.
ok, i know that my classes and variables won't survive - the question was not how to SAVE the data, it's how to ACCESS it! thanks richard. anyone else has any idea?
-
ok, i know that my classes and variables won't survive - the question was not how to SAVE the data, it's how to ACCESS it! thanks richard. anyone else has any idea?
Quote:
the question was not how to SAVE the data,
from the OP
Title:
VfW Saving Compression Options
Quote:
does anyone know how to store the compression settings to reuse them?
:confused:
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
-
Quote:
the question was not how to SAVE the data,
from the OP
Title:
VfW Saving Compression Options
Quote:
does anyone know how to store the compression settings to reuse them?
:confused:
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment "Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst "I don't drink any more... then again, I don't drink any less." - Mike Mullikins uncle
plz read the whole thread! i want to store the settings, that i made in the dialog! i haven't found a way to ACCESS the data/settings programmatically - that was my question. i know thousands of ways to store/serialize/dump the data. thank you.