<div dir="ltr"><div><div><div><div><div><div><div>Hope someone can clarify these, thanks.<br><br>1)<br></div>In order to call av_seek_frame, I have to give it a "dts" of the desired frame.<br></div>The problem is, assuming even framerate I can compute "pts".<br></div>Is there a consistent way to derive "dts" from "pts", or its lower/upper bounds?<br><br>2)<br></div>The meaning of AVStream::duration and AVStream::start_time<br></div>In the specific sample I observe the following (for reference it is hevc in mp4, but this is not unique case):<br></div>"start_time" is 3000 and "duration" seems to include "start_time", therefore to get the real duration (which is the difference between start and end) I have to deduce "start_time" from it.<br></div>Is this the rule or deviation?<br><br></div>