<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">HI, <br>
</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I'm having trouble writing video with differing framerates.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">I am experimenting with the sample output program found in your repo at doc/examples/encode_video.c.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">In that sample the framerate set to 25 with the lines:</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0"></p>
<div>    c->time_base = (AVRational){1, 25};<br>
    c->framerate = (AVRational){25, 1};</div>
<div><br>
</div>
<div>and then the for loop later on simply puts out the same number of frames.</div>
<div><br>
</div>
<div>I have been trying to vary the framerate between 10 - 60, replacing the initialization of timebase and framerate and the number of frames outputted. However the resulting video plays for different durations, when I would expect it to always be the same.<br>
</div>
<div><br>
</div>
<div>How would I produce videos with the same duration but differing framerates? What am I missing?
<br>
</div>
<div><br>
</div>
<div>I am currently experimenting on windows and using the nvenc_h264 codec, but I have the same problem with wmv, raw video with a linux machine/build.</div>
<div><br>
</div>
<div>Any help or advice much appreciated.<br>
</div>
<br>
<p></p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
</div>
</body>
</html>