<div class="gmail_quote">2009/8/25 Jason Garrett-Glaser <span dir="ltr"><<a href="mailto:darkshikari@gmail.com">darkshikari@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
On Tue, Aug 25, 2009 at 10:51 AM, Alessandro<br>
<div><div></div><div class="h5">Ferrari<<a href="mailto:alessandroferrari87@gmail.com">alessandroferrari87@gmail.com</a>> wrote:<br>
> 2009/8/25 Jason Garrett-Glaser <<a href="mailto:darkshikari@gmail.com">darkshikari@gmail.com</a>><br>
>><br>
>> On Tue, Aug 25, 2009 at 2:57 AM, Alessandro<br>
>> Ferrari<<a href="mailto:alessandroferrari87@gmail.com">alessandroferrari87@gmail.com</a>> wrote:<br>
>> > Hi dear community,<br>
>> > I have a problem with the encoding using<br>
>> > x264.<br>
>> > After I call x264_encoder_encode( h, &nal, &i_nal, pic, &pic_out)<br>
>> > function<br>
>> > I have nal= NULL, i_nal=0 and the function return 0. I'm sure that pic<br>
>> > contain the correct image. The x264_t h is open using the default<br>
>> > parameters, i only change width and length of the video. The function<br>
>> > don't<br>
>> > give me any error, it seems that it not encode any data. I include the<br>
>> > code<br>
>> > of encoding function that I implement watching x264.c.<br>
>><br>
>> x264 has an encoding delay depending on your parameters; it will not<br>
>> return frames until a number of frames have been inputted. This delay<br>
>> is used for lookahead purposes. Keep inputting frames and you will<br>
>> eventually get frames out.<br>
>><br>
>> Dark Shikari<br>
><br>
> I have a strange error when i try to access at the fields of x264_t. I have<br>
> this compilation error:<br>
> transcoder.c:173: error: dereferencing pointer to incomplete type<br>
> The automatic code completion of my ide don't find any fields for the<br>
> pointer at x264_t h, but the compiler correct recognize the presence of the<br>
> type x264_t. I include on the x264.h header. Can this the cause of problem?<br>
> Many thanks.<br>
<br>
</div></div>x264_t is an opaque handler for the encoder; you are not supposed to<br>
be able to access its internal variables.<br>
<div><div></div><div class="h5"><br>
Dark Shikari<br></div></div></blockquote></div>Ok, now I understand. I have any possibilities to change this frame delay?<br>