Max Vlasov <max.vlasov at ...> writes: > The idea was to read all packets saving pts and > keyframe flag (without decoding) and make a list > of them in order of ptses. (What are "packets" for you?) I don't know your exact requirements but at least for H.264 this approach cannot work. Carl Eugen