Hello :
May I know is framerate could be set on the fly while H264 encoding on omap4430 ?
In our project, gstreamer and gst-openmax are used for camera and h264 encoder, and requirement is framerate and resolution are set on the fly, that's OMX Encoder and OMX camera maybe running for a while, when network condition slow down, framerate and resolution change on the fly;
I try to set framerate to omx_camera and omx_h264enc, but both failed;
test code is:
OMX_CONFIG_FRAMERATETYPE framerateType;
InitOMXParams(&framerateType);
framerateType.nPortIndex = 0;
status_t err = OMX_GetConfig(omx_handle, OMX_IndexConfigVideoFramerate,&framerateType);
if (err != OK) {
return BAD_VALUE;
}
framerateType.xEncodeFramerate = frameRate << 16;
err = OMX_SetConfig(omx_handle, OMX_IndexConfigVideoFramerate, &framerateType);
if (err != OK) {
return BAD_VALUE;
}
There is no error returned, but when I try to find the encoded file, the framerate is not changed.
Could you suggest? Thank you very much.
Br,
Ning.