The RunEncode() function returned MFX_ERR_NOT_INITIALIZED when I tried to encode a video stream using the h264_enc_filter.
My Graph snapshot is uploaded, named as capturegraph.png
It was the function EncodeFrameAsync() that returned MFX_ERR_NOT_INITIALIZED.
The video capture source has a resolution of 1280*720@50frame/s and the color format is YUY2.
The graph can be run by inserting a AVI Decompressor between Infinite Pin Tee and H264 Encoder, the AVI Decompressor actually changed the color format from YUY2 to RGB32.
What was going wrong with my graph?