[x264-devel] Problem on using x264_encoder_encode
Jason Garrett-Glaser
darkshikari at gmail.com
Tue Aug 25 18:54:28 CEST 2009
On Tue, Aug 25, 2009 at 2:57 AM, Alessandro
Ferrari<alessandroferrari87 at gmail.com> wrote:
> Hi dear community,
> I have a problem with the encoding using x264.
> After I call x264_encoder_encode( h, &nal, &i_nal, pic, &pic_out) function
> I have nal= NULL, i_nal=0 and the function return 0. I'm sure that pic
> contain the correct image. The x264_t h is open using the default
> parameters, i only change width and length of the video. The function don't
> give me any error, it seems that it not encode any data. I include the code
> of encoding function that I implement watching x264.c.
x264 has an encoding delay depending on your parameters; it will not
return frames until a number of frames have been inputted. This delay
is used for lookahead purposes. Keep inputting frames and you will
eventually get frames out.
Dark Shikari
More information about the x264-devel
mailing list