<div class="gmail_quote">2009/8/26 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 3:07 PM, 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 PM, Alessandro<br>
>> 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>
>> >> > Ok, many thanks for support, you save me ;) i try to install the<br>
>> >> > last<br>
>> >> > version and then I retry. I hope i don't meet again this problem,<br>
>> >> > else i<br>
>> >> > newly contact this mailing list. Only a last question, for disable<br>
>> >> > lookahead<br>
>> >> > i've only to put param.rc.i_lookahead = 0?<br>
>> >><br>
>> >> Correct.<br>
>> >><br>
>> >> Also, you can drop by #x264 or #x264dev on Freenode IRC (<br>
>> >> <a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> ) if you want more realtime/interactive help.<br>
>> >><br>
>> >> Dark Shikari<br>
>> ><br>
>> > I update the x264 version and I've add this line before calling the<br>
>> > encoder<br>
>> > function:<br>
>> ><br>
>> > param.i_bframe_adaptive = 0;<br>
>> > param.rc.i_lookahead = 0;<br>
>> > param.i_bframe = 0;<br>
>> ><br>
>> > but the problem persists. Probably is not caused by frame delay.<br>
>><br>
>> What is the problem you're talking about? If you mean encoder_encode<br>
>> not returning a frame in the first few frames of input, that's<br>
>> normal--that's part of the frame delay. Threads cause frame delay as<br>
>> well, and by default, x264 will automatically pick multiple threads<br>
>> depending on how many cores your system has. To disable this, set<br>
>> threads to 1.<br>
>><br>
>> Dark Shikari<br>
>> _______________________________________________<br>
>> x264-devel mailing list<br>
>> <a href="mailto:x264-devel@videolan.org">x264-devel@videolan.org</a><br>
>> <a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br>
><br>
><br>
> param.i_threads is set to one, but x264_encoder_encode( h, &nal, &i_nal,<br>
> pic, &pic_out) return zero and i_nal=0 and nal=NULL...Probably is some hide<br>
> error and i have to re-code my program, i don't know.<br>
<br>
</div></div>Read the API. It returns a negative value if there is an error.<br>
<br>
Come to IRC; it's far easier to deal with issues there than five dozen<br>
posts back and forth on a mailing list.<br>
<br></blockquote></div><br>I recode fully the program from zero and now it work.. I don't know the reason of the error of the other program, probably some error in other part of code.<br>