[Libav-user] FFMPEG CustomIO Seeking
mczarnek at edge360.com
Mon Feb 24 18:12:30 EET 2020
What do you mean by "when you seek with MY software"?
Have you tried "avio_seek"?
And I don't think it is, but if what you mean is that you want to act when
your software makes a call to ffmpeg that causes it to seek. You can set up
a "AVIOContext::seek" callback that will tell you details about that
On Sat, Feb 22, 2020 at 5:15 AM Alexis <alexis.tran9713 at gmail.com> wrote:
> Hi there,
> I'm using FFMPEG (with a custom IO, so not a file but byte as input) to
> decode video in my software.
> So when I seek with MY software, i just send corresponding bytes to the
> decoder, how can i tell to my decoder that i seeked?
> When i seek i flush the buffer with:
> avcodec_send_packet() with null as packet to enter in the draining mode
> and read until EOF
> then avcodec_flush_buffers
> It looks like it clean properly.
> Then come the real problem, the next frame given by the decoder have a
> timestamp corresponding to before the seek, I guess the decoder have an
> incomplete frame in his own buffer waiting to be completed before
> outputting it, but how can i clear this?
> I'm missing something?
> Libav-user mailing list
> Libav-user at ffmpeg.org
> To unsubscribe, visit link above, or email
> libav-user-request at ffmpeg.org with subject "unsubscribe".
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user