[FFmpeg-user] Mpeg Encode returns zero for the first frame

Jorge Fonseca jcbfonseca at gmail.com
Tue Aug 14 23:25:35 CEST 2012

Hi All,

I trying to create a mpeg video following FFmpeg examples.
Every time* "avcodec_encode_video"* returns ZERO only for the FIRST

Consequently, after insert more frames i got "*Encode Buffer underflow*" in
Encode function.

Does anyone know how MPEG encode works for the first frame? E why zero is

PS. in this case, the outbut buffer was not filled.



More information about the ffmpeg-user mailing list