<div dir="ltr"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br>Hello,<div><br></div><div>Thank you for your help.</div><div><br></div><div>That said, I'm only dealing with audio file (ogg and mp3), no video at all.</div><div>And my goal is to set the current position to, let say, 27994.717 milliseconds (well, as close as possible, if possible with an error margin below 1 millisecond), and start audio extraction from this very position (as I do in my <a href="https://gist.github.com/mregnauld/2538d98308ad57eb75cfcd36aab5099a" target="_blank">code example</a>).</div><div><br></div><div>So what is the right way to achieve that? Is there any tutorial or example somewhere?</div><div><br></div><div>Thanks.</div><div><br></div><div><br></div></div>
_______________________________________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" rel="noreferrer" target="_blank">http://ffmpeg.org/mailman/listinfo/libav-user</a></blockquote><div><br></div><div>There is a lot of useful info in headers, check it.</div><div>I think in your case this is what you need to use:</div><div>-do not specify stream index</div><div>-do not specify any flags</div><div>-position is in AV_TIME_BASE units which is ns if I remember correctly.</div><div> </div></div></div>