<div dir="ltr">Thank you very much.<div>Now it works the same way for both mp3 and ogg (and actually, position is in microseconds, for your information).<br></div><div><br></div><div>But I still have a slight delay between the requested position and the actual position (which is the same if I try with the same song in mp3 or ogg), even if I ask to position to the very beginning of the file, like this:</div><div><br></div><div>   <span class="gmail-pl-c1" style="box-sizing:border-box;color:rgb(0,92,197);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">av_seek_frame</span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre">(formatContext, -1, 0, 0);</span></div><div><br></div><div>I wonder if, maybe, the actual position is the closest keyframe (but is there any keyframe in ogg or mp3?).</div><div>I read the avformat header, but I don't find that much information, especially since I'm quite new to ffmpeg...</div><div><br></div><div>Is there any way that I can fix this annoying delay?</div><div><br></div><div>Thank you.</div><div><br></div></div>