[Libav-user] any way to interrupt avcodec_decode_video2 ?
donmoir at comcast.net
Tue Dec 31 08:57:02 CET 2013
----- Original Message -----
From: "Hendrik Leppkes" <h.leppkes at gmail.com>
To: "This list is about using libavcodec, libavformat, libavutil,libavdevice and libavfilter." <libav-user at ffmpeg.org>
Sent: Tuesday, December 31, 2013 2:09 AM
Subject: Re: [Libav-user] any way to interrupt avcodec_decode_video2 ?
> On Mon, Dec 16, 2013 at 8:08 AM, Don Moir <donmoir at comcast.net> wrote:
>> Would like to interrupt avcodec_decode_video2 at times like when starting a
>> new seek. Decoding takes the most time of anything I do. Since app is
>> timeline oriented, trying to keep seek time down to minimum and if
>> avcodec_decode_video2 has been called, seems there is no way out until its
>> finished and this decoding time can delay a new seek attempt.
> No, you cannot interrupt it.
> You'll have to wait until the current frame finishes decoding.
Could be a callback added to AVCodecContext I suppose and I realize it would take awhile before fully implemented, but could be
Not sure if anyone else cares enough though. The decoding can be heavy on slower machines.
More information about the Libav-user