[FFmpeg-devel] Howto flush encoder on closing?

Michael Niedermayer michaelni
Mon Jan 19 20:53:14 CET 2009


On Mon, Jan 19, 2009 at 04:37:01PM +0100, Bitbreaker/METALVOTZE wrote:
> Imagine your encoder receives several frames by a multiple of 
> encode_frame calls. When having reached a certain amount of frames, it 
> then encodes them all in one go. Now if closing the encoder before the 
> desired amount of frames was reached, the still unencoded frames will be 
> dropped. A bad thing :-( So is it possible to make ffmpeg call 
> encode_frame again on close_encoder? Or are there any other (nice?) 

you are searching for CODEC_CAP_DELAY
also patch to document this better is welcome


[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I do not agree with what you have to say, but I'll defend to the death your
right to say it. -- Voltaire
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090119/085d38ba/attachment.pgp>



More information about the ffmpeg-devel mailing list