<div dir="ltr">Hi,<div>I'm encoding VFR frame sequence to Constant Frame Rate output stream (in real-time)</div><div>E.g. to maintain 60 fps I have to DUPLICATE frames from 30 fps stream (or any VFR video streams).<br>To do this I`m copying the same frame binary data and feed it to avcodec_receive_packet() once again. (It works but is not optimal)<br>What is the proper way to tell the encoder that the new frame is the same as the last one besides timestamp data (PTS/DTS). In other words how to duplicate last frame in the stream without reencoding the frame again?<br></div><div>I've seen  this type of video ( generated by OBS ) where MANY frames were really duplicated, where pkt_size=48 or lower! </div><div><br clear="all"><div>With best regards,</div><div>Alex K</div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><br></div></div></div>