Commit b6c2c6bc authored by Jean-Paul Saman's avatar Jean-Paul Saman

davinci encoder: honor the fps request of the user

parent cafc7687
......@@ -141,12 +141,12 @@ int OpenVideoEncoder( vlc_object_t *p_this )
params.maxFrameRate = p_enc->fmt_out.video.i_frame_rate_base ?
p_enc->fmt_out.video.i_frame_rate * 1000 /
p_enc->fmt_out.video.i_frame_rate_base :
50000; /* Frames per 1000 seconds */
p_enc->i_iframes * 1000; /* Frames per 1000 seconds */
params.maxBitRate = p_enc->fmt_out.i_bitrate
+ p_enc->i_tolerance;
//params.maxBitRate *= 10;
params.dataEndianness = XDM_BYTE;
params.maxInterFrameInterval = 0; //p_enc->i_iframes;
params.maxInterFrameInterval = p_enc->i_iframes;
params.inputChromaFormat = VlcChromaToXdm( p_enc->fmt_in.i_codec );
msg_Info( p_enc, "max %dx%d at %.3f fps (max bitrate %d kBps, I-Frame interval %d)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment