hi all, I wrote last week asking for help implementing a video timmer using C.<div>I am able to scan packets and find frames (<font face="courier new, monospace">av_read_frame()</font> and <font face="courier new, monospace">av_decode_video2()</font>).</div>

<div>Every time a read a packet I can see its position in the timeframe with AVPacket.pts.</div><div>Now I am struggling with the seek functionality. </div><div><br></div><div>How can I use the AVPacket.pts information with av_seek_frame()?</div>

<div><br></div><div>I tried to use it "raw":</div><div><br></div><div><font face="courier new, monospace">av_seek_frame(pFormatCtx, videoStream, pts, backwardFlag)</font></div><div><br></div><div>but I am afraid that I'm doing something wrong as it doesn't work. And I read about conversions that I'm probably missing.</div>

<div>Any help will be greatly appreciated! :-)</div><div><br></div><div>cheers</div><div>Fabio</div><div><div><br></div>-- <br><div><br></div><a href="http://famsterdamlife.com" target="_blank">http://famsterdamlife.com</a><br>


</div>