Open GoogleCodeExporter opened 8 years ago
Try with latest revision
Original comment by boss...@yahoo.fr
on 23 Apr 2014 at 8:24
Still the same issue
Error code is now 2147500037 when calling load
Also there is a problem with CODECAPI_AVEncSliceControlMode when using Intel Quick Sync Video the minimum is 2 and not 1.
if ((m_eId == MFCodecId_H264Base || m_eId == MFCodecId_H264Main)) {
if (m_pCodecAPI->IsSupported(&CODECAPI_AVEncSliceControlMode) == S_OK && m_pCodecAPI->IsSupported(&CODECAPI_AVEncSliceControlSize) == S_OK) {
VARIANT var = { 0 };
var.vt = VT_UI4;
var.ulVal = 2; // Bits
CHECK_HR(hr = m_pCodecAPI->SetValue(&CODECAPI_AVEncSliceControlMode, &var));
var.ulVal = (nSliceMaxSizeInBytes << 3); // From Bytes to Bits
CHECK_HR(hr = m_pCodecAPI->SetValue(&CODECAPI_AVEncSliceControlSize, &var));
}
Original issue reported on code.google.com by
hithanky...@gmail.com
on 6 Jan 2014 at 3:11