encodecapi: bug fix, recycle the input frame to encodeinput
encodeInputCamera: get from camera if user set resolution is not supported