Output framerate setting RRS feed

  • Question

  • I am trying to set output frame rates and have been trying to look for examples on using CODECAPI_AVEncVideoOutputFrameRate property. This is how I am setting it:

    hr = encoder->GetValue(&CODECAPI_AVEncVideoOutputFrameRateConversion, &frameRateConversion);
    			if (FAILED(hr)) {
    				// Failure catch
    			} else {
    				if (frameRateConversion.intVal == eAVEncVideoOutputFrameRateConversion_Enable) {
    					InitVariantFromUInt32(30, &frameRate);
    					hr = encoder->SetValue(&CODECAPI_AVEncVideoOutputFrameRate, &frameRate);

    Is this the right approach? I've not been able to find examples.

    Monday, September 4, 2017 6:55 AM


All replies

  • For this call:

    hr = encoder->GetValue(&CODECAPI_AVEncVideoOutputFrameRateConversion, &frameRateConversion);
    I always get an error 0x80040314

    Wednesday, September 6, 2017 5:46 AM
  • VFW_E_CODECAPI_NO_CURRENT_VALUE means that the value is not applicable. Indeed, if you take a look at H.264 encoder documentation, you won't find CODECAPI_AVEncVideoOutputFrameRate there.


    • Marked as answer by Kadambi Tuesday, September 12, 2017 3:54 AM
    Wednesday, September 6, 2017 6:32 AM