<div dir="ltr"><div>Hello there, <br></div><div><br></div><div>I'm writing <a href="https://github.com/leandromoreira/ffmpeg-libav-tutorial">this tutorial</a> and right now I'm attempting to create a section for <a href="https://github.com/leandromoreira/ffmpeg-libav-tutorial/tree/transcoding">transcoding</a>. <br></div><div><br></div><div>1) Is there a single way to setup GOP and scenecut for h264 and h265? <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><font size="1">I tried to use avcodectxt->gop_size, avcodectxt->keyint_min, av_opt_set(avcodecctxt->priv_data, "sc_threshold", "0", 0) but it seemed to work only for h264... to make it work I forced the priv_data x264 and x265-params while looking at the source code of both plugins I saw h264 uses gop_size but not h265 (both x___ libs)<br></font></div></blockquote><div>2) Is there a single way to setup "CBR" for h264 and h265?<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><font size="1">I could get the expected results while using x264 but no x265 using<br>|encoder_codec_context->bit_rate = 1200 * 1000;<br>|encoder_codec_context->rc_max_rate = 1200 * 1000;<br>|encoder_codec_context->rc_min_rate = 1200 * 1000;<br>|encoder_codec_context->rc_buffer_size = 2 * 1200 * 1000;<br>here it's weird because at source code level both libs seems to use <span class="gmail-pl-smi">rc_max_rate and <span class="gmail-pl-smi">rc_buffer_size</span></span></font></div></blockquote><div>3) After I transcoded <a href="https://github.com/leandromoreira/ffmpeg-libav-tutorial/blob/transcoding/2_transcoding.c">with my code</a> I'm getting a 60.11 fps while the original video has fixed 60fps, why this usually happens?<br></div><div><br></div><div>Thanks<br></div></div>