<div class="gmail_quote">On Wed, Nov 9, 2011 at 1:35 AM, Zac Shenker <span dir="ltr"><<a href="mailto:zac@zacshenker.com" target="_blank">zac@zacshenker.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


Thanks Matthew.<div><br></div><div>That all helped, but I am still finding that if I do not set the pts before my call to avcodec_encode_video I keep getting "non-strictly-monotonic PTS" warning messages.</div>

<div>


<br></div><div>Do you not set the pts value on your AVFrame* before encoding?</div><div><br></div></blockquote><div><br></div></div>I don't do anything to the frame, I simply fill up the frame with my image buffer and send it to the encode function. Maybe it has something to do with how you set up your contexts? Anyway, ffmpeg.c does have some pts handling which you might want to look at <a href="http://www.ffmpeg.org/doxygen/trunk/ffmpeg_8c-source.html">http://www.ffmpeg.org/doxygen/trunk/ffmpeg_8c-source.html</a> line 2669 and then in output_packet() on line 1662. I'm not doing that however.<br>

<br>Matt<br>