openh264 icon indicating copy to clipboard operation
openh264 copied to clipboard

framerate is always 25fps

Open grancia opened this issue 7 years ago • 2 comments

I am trying to change fps but it always set to 25.

Below shows what I did on code is, but output video is always 30 fps

SEncParamExt config; encoder->GetDefaultParams(&config); config. fMaxFrameRate = 60.0f; // tried with other fps, but output video is always 30 fps config.sSpatialLayers[layer].fFrameRate = config. fMaxFrameRate;

encoder_->SetOption(ENCODER_OPTION_SVC_ENCODE_PARAM_EXT, &config);

Is there any other places to change fps?

grancia avatar Dec 12 '18 00:12 grancia

your setting should be correct. How do you get to see the fps is 25? There should be no place to get the value in the encoded bitstream.

huili2 avatar Jun 17 '19 08:06 huili2

Can the input and output frame rates be set through the command line to be other than 25fps, such as 15fps?

REO-RAO avatar Sep 19 '23 07:09 REO-RAO