On 11/05/2016 11:46 a.m., Anton Shekhovtsov wrote: > Hello, > > I used the following code: av_seek_frame(ctx, id, pos, > AVSEEK_FLAG_BACKWARD); In principle that should work for all files. How are you calculating pos and selecting id?