I have a couple questions regarding seeking and timestamps.<div><br></div><div>1) If seeking in a video is a possible, will avformat_seek_file(formatContext, -1, 0, timestamp, timestamp, 0) ever fail? If this does fail and seeking is still possible, what can be done to seek?</div>
<div>2) If I call avformat_seek_file(formatContext, -1, 0, timestamp, timestamp, 0) and it succeeds, how can I know the timestamp of the frame I'm currently on now? I've tried decoding the frame and using frame->best_effort_timestamp, but it's set to AV_NOPTS_VALUE. How can I know how close/far I am from my desired timestamp in this case?</div>
<div><br></div><div>I think that covers everything. If I could get some help with this I'd really appreciate it.</div><div><br></div><div>Thanks,</div><div><br></div><div>Michael</div>