[Libav-user] transcoding.c example does not flush the decoder
ikolev at gmail.com
Wed Jan 14 15:59:31 CET 2015
I followed the transcoding.c example to implement some video conversion and noticed that my output was missing some frames at the end.
I spent a lot of time investigating this problem until I found the note about CODEC_CAP_DELAY in the avcodec_decode_video2() header comment. I admit I should had noticed it earlier since I had read that comment before, so it was my mistake.
But anyway, it would be nice if transcoding.c was modified to account for that, to provide a more accurate example of video conversion. Its interesting that the decoding_encoding.c example does it correctly, but it's a bit less closer to "real world" usage so I had not looked into it more.
More information about the Libav-user