AnsweredAssumed Answered

AMF_VIDEO_ENCODER_EXTRADATA always NULL

Question asked by phonetic on Apr 4, 2016
Latest reply on Apr 4, 2016 by phonetic

Hi I'm trying to get the AMF_VIDEO_ENCODER_EXTRADATA from AMF (SDK 1.1) encoder.

 

Excerpt:

...

res = pimpl->encoder->SetProperty(AMF_VIDEO_ENCODER_USAGE, AMF_VIDEO_ENCODER_USAGE_LOW_LATENCY);

res = pimpl->encoder->Init(pimpl->formatIn, inputWidth_, inputHeight_);

 

amf::AMFBufferPtr extradata;

 

if (pimpl->encoder->HasProperty(AMF_VIDEO_ENCODER_EXTRADATA) == AMF_OK)

{

res = pimpl->encoder->GetProperty(AMF_VIDEO_ENCODER_EXTRADATA, reinterpret_cast<amf::AMFInterfacePtr*>(&extradata));

 

if (res == AMF_OK && extradata != nullptr)

{

// process

}

}

 

Problem is that it is always NULL. I also have AMF_VIDEO_ENCODER_INSERT_SPS, AMF_VIDEO_ENCODER_INSERT_PPS and is verified to be present in the output stream.

 

Also please whitelist. Thanks in advance.

 

 

 

Outcomes