You can't really seek with get_bits, there is one seeking function, but it's in AVStream I believe? it's been a few months since I've looked at the specifics.
but the most important part is that that function was for seeking to the next frame, not seeking back x bits which is necessary for verifying CRCs because the header size isn't constant, and is itself embedded within the header On Sun, Jan 25, 2015 at 4:57 AM, Lucas Soltic <[email protected]> wrote: > > Le 25 janv. 2015 à 04:43, Marcus Johnson <[email protected]> a > écrit : > > I'm new and don't know too much about the API, but honestly seeking is the > biggest issue I think we can all agree upon, I can't implement certain > features because we just can't seek properly > > I'm not sure how we could rectify this but there has to be something that > could be done. > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > > > I suppose this is not too off-topic and could help at designing the high > level API: what exactly is currently wrong with seeking in FFmpeg? Are > there use cases that just don't work? I'm asking because I got it working > for a personal project and for all the file formats I've tested it works > just fine. I admit it was a bit tricky to implement though, but after > understanding how the demuxer and streams work (I mean in general, not > FFmpeg specific) it just makes sense. > > Lucas > > _______________________________________________ > Libav-user mailing list > [email protected] > http://ffmpeg.org/mailman/listinfo/libav-user > >
_______________________________________________ Libav-user mailing list [email protected] http://ffmpeg.org/mailman/listinfo/libav-user
