[x264-devel] Problem on using x264_encoder_encode

Alessandro Ferrari alessandroferrari87 at gmail.com
Wed Aug 26 00:07:53 CEST 2009


2009/8/25 Jason Garrett-Glaser <darkshikari at gmail.com>

> On Tue, Aug 25, 2009 at 2:57 PM, Alessandro
> Ferrari<alessandroferrari87 at gmail.com> wrote:
> > 2009/8/25 Jason Garrett-Glaser <darkshikari at gmail.com>
> >>
> >> > Ok, many thanks for support, you save me ;)  i try to install the last
> >> > version and then I retry. I hope i don't meet again this problem, else
> i
> >> > newly contact this mailing list. Only a last question, for disable
> >> > lookahead
> >> > i've only to put param.rc.i_lookahead = 0?
> >>
> >> Correct.
> >>
> >> Also, you can drop by #x264 or #x264dev on Freenode IRC (
> >> irc.freenode.net ) if you want more realtime/interactive help.
> >>
> >> Dark Shikari
> >
> > I update the x264 version and I've add this line before calling the
> encoder
> > function:
> >
> >     param.i_bframe_adaptive = 0;
> >     param.rc.i_lookahead = 0;
> >     param.i_bframe = 0;
> >
> > but the problem persists. Probably is not caused by frame delay.
>
> What is the problem you're talking about?  If you mean encoder_encode
> not returning a frame in the first few frames of input, that's
> normal--that's part of the frame delay.  Threads cause frame delay as
> well, and by default, x264 will automatically pick multiple threads
> depending on how many cores your system has.  To disable this, set
> threads to 1.
>
> Dark Shikari
> _______________________________________________
> x264-devel mailing list
> x264-devel at videolan.org
> http://mailman.videolan.org/listinfo/x264-devel
>


param.i_threads is set to one, but x264_encoder_encode( h, &nal, &i_nal,
pic, &pic_out) return zero and i_nal=0 and nal=NULL...Probably is some hide
error and i have to re-code my program, i don't know.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20090826/c7f92de3/attachment.htm>


More information about the x264-devel mailing list