Page 1 of 1

INPAvi

Posted: Sat Feb 07, 2009 12:18 pm
by TDV
Hi! Please, if somebody used INPAvi class for saving information to an AVI file post here your code. I tried to do something like this:

BSTR bstr=SysAllocString(L"c:\\123.avi");
hr = m_spAvi->put_FileName(bstr);
//hr = m_spAvi->put_FrameRate(100);
hr = m_spAvi->Start();


and after on every frame I call:
hr = m_spAvi->AddFrame(m_spCamera, m_spFrame);

AddFrame function returns value nonequal to S_OK, so I have empty result file :(
At the same place as AddFrame I call:

m_spCamera->DrawFrame(m_spFrame, Hwnd);

DrawFrame function draws the image on a window.

And one question more where I can find decription of all cameras options? OptiTrackAPI_1.1.035.doc doesn't contain information about for example NP_OPTION_MULTICAM, NP_OPTION_USER_HWND and etc.

Re: INPAvi

Posted: Wed Feb 11, 2009 4:31 am
by Birch
Hello,

Support has been discontinued for INPAvi in the OptiTrack SDK and is marked as such in the current SDK docs. We would not recommend using it. It was and remains difficult to get working.

If you wish to record video from OptiTrack cameras, you might consider using our DirectShow filter instead. We haven't posted the latest version as a standalone yet, but you can get it by installing Arena 1.4 or contacting support@naturalpoint.com.


Any of the NP_OPTION fields which are not covered in the SDK documentation will not be officially supported. It is possible to use them, but they are subject to change in functionality or behavior without notice.