On Fri, 2010-12-31 at 16:18 +0100, Stefan Brüns wrote:
> I am about to create a filter which needs some lookahead and lookback (about > 2 > frames each). For the lookback, I could just save the old frame (is there a > more efficient way than copying the data?), but what about the lookahead? > > Is it possible to somehow access a future frame? The other possibility would > be to delay a few frames, but how can I signal I have consumed a frame, but > will not output any frame (yet) when the stream begins, and output several > frames at the stream end? Hi there. The current transcode filter engine doesn't support lookahead and lookback. This is of course a major limitation, and the existing filters who needs one of those (or even both) workaround this limitation by using custom caching policies. This is of course very far from being satisfactory. There were plans to improve this condition, but quite everything is freezed right now. Bests, -- Francesco Romani ::: Ikitt http://github.com/mojaves ::: http://bitbucket.org/france