Hi!
I have another question about videocaptre, example CameraDemo. I use Colibri T20, WinCE7.
Please explain me, how during the recording of the video at some point to close the current file and start next file? As I understand it, I should:
- set property NvPropertyId_MuxWriterReinitializefilename in filter m_pFileSinkFilter (for video)
- set property “VIDEO_IFRAME_INSERT” in filter m_pEncoderFilterVideo
But I can’t. Code is here, I get error E_FAIL (on call pPropertyBag->Write())
IPropertyBag *pPropertyBag = NULL;
hr = m_pEncoderFilterVideo->QueryInterface(IID_IPropertyBag, (void**)&pPropertyBag);
FAILEDHR(hr, "QueryInterface for IPropertyBag failed.\n", CleanUp);
const WCHAR *NameProp = L"VIDEO_IFRAME_INSERT";
VARIANT var;
VariantInit(&var);
var.vt = VT_BOOL;
var.boolVal = TRUE;
hr = pPropertyBag->Write(NameProp, &var);
VariantClear(&var);
FAILEDHR(hr, "Write IPropertyBag failed.\n", CleanUp);
Seting of NvPropertyId_MuxWriterReinitializefilename is successful, the file name changes, but then loses sync, the recording is not ongoing.
What am I doing wrong?
Can I somehow get documentation NVIDIA to work with their DirectShow filters? Iinformation on Toradex website is not enough.
Thanks