[theora] Using VP3 codec in VC++
Rahul P
rahul.prasad at exaband.net
Mon Jul 17 23:59:07 PDT 2006
Hello ,
I am trying to use ON2's VP3 codec in a VC++ DirectX application. I get amazing clarity in the recorded video but simultaneous preview is very jerky. I am not sure how to change the codec properties in VC++ but theses are the changes i applied to the videoinfo header
VIDEOINFOHEADER *pvi1 = (VIDEOINFOHEADER *)pmt1->pbFormat;
pvi1->AvgTimePerFrame = (LONGLONG)(10000000 / 30);
pmt1->majortype = MEDIATYPE_Video;
pvi1->bmiHeader.biBitCount=24;
pvi1->bmiHeader.biWidth=width;
pvi1->bmiHeader.biHeight=height;
pvi1->dwBitRate = 40;
hr = pSC->SetFormat(pmt1);
However i realised that changing the framerate from 30 to 15 didnt help any as the video still recorded @ 30fps.
Any help regarding how to overcome the jerky preview will be greatly appreciated
Regards,
Rahul
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/theora/attachments/20060718/714608a7/attachment.html
More information about the theora
mailing list