语言

Menu
Sites
Language
MediaCodec / mediacodec_set_venc_info() : fps parameter

Hi!

Trying to use codec to render frames.

I call:

    mediacodec_set_venc_info(mediacodec, image_width, image_height, FPS, 0);

I get:

    FPS parameter value is ignored and actual fps is always 30.

Who knows how to overcome it ?

Thanks!

响应

1 回复
Armaan-Ul- Islam

There is a chance that the specific fps you are trying to set (suppose 75fps) is not applicable for specific media content you are using.

Have you tried to Set the video frame rate using the video_util_set_fps() function:

ret = video_util_set_fps(video_h, 75);

 

I hope you are alreay following this Guides & API References :

 

https://developer.tizen.org/development/guides/native-application/media-and-camera/media-conversions

 

https://developer.tizen.org/development/api-references/native-application?redirect=/dev-guide/2.3.1/org.tizen.native.wearable.apireference/group__CAPI__MEDIA__CODEC__MODULE.html#ga2e7775fb3609e4349c742b1d9eb5febc