Hello, what is the suggested way to seek all the way to the beginning of a movie? I tried:
av_seek_file(pAVFormatCtx, -1, INT64_MIN, 0, INT64_MAX, 0); This works fine most of the time but sometimes it produces some strange results with certain video formats (for example DivX). You can reproduce the effect easily with FFplay. Just do the following on a DivX movie: ffplay -ss 0 <DivX-movie-file> The "-ss 0" causes ffplay to call av_seek_file() passing 0 as the time stamp. Because the movie is already at the very beginning, one would think that this call to av_seek_file() should do nothing at all. And most of the time it seems that it really does nothing at all. So that's good. But when using "-ss 0" on a DivX movie, the first few seconds are suddenly played very fast. When I leave out "-ss 0" the movie is playing normally. When I add "-ss 0" the first few seconds are played much too fast. Does someone have an explanation for this behaviour? Why does a simple call to seek to 0 cause such a misbehaviour? I know that seeking is complicated stuff but there should be one exception and that is seeking to 0. That should be a pretty safe and straight-forward thing to do, shouldn't it? Thanks, Marco -- Neu: GMX De-Mail - Einfach wie E-Mail, sicher wie ein Brief! Jetzt De-Mail-Adresse reservieren: http://portal.gmx.net/de/go/demail _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
