[Libav-user] How reliable the file position of a packet is?
max.vlasov at gmail.com
Wed Feb 11 14:15:10 CET 2015
Probably due to a urge to experiement, I implemented several ways of
locating an existing packet in a saved index. Probably most straightforward
is pts-based, but I tried also using file position.
Unfortunately I noticed at least two occasions when this didn't work:
- for mpg/ts files this position usually change after seek, so the same
packet may contain a different file position when visited second time after
- For mkv files two different packets may represent the same file position.
So should I forget about this field whatsoever? But If the field exists,
but might be so unreliable, does it exist only for the demuxer own needs?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user