[x264-devel] Problem on using x264_encoder_encode
Alessandro Ferrari
alessandroferrari87 at gmail.com
Wed Aug 26 12:08:39 CEST 2009
2009/8/26 Jason Garrett-Glaser <darkshikari at gmail.com>
> On Tue, Aug 25, 2009 at 3:07 PM, Alessandro
> Ferrari<alessandroferrari87 at gmail.com> wrote:
> > 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.
>
> Read the API. It returns a negative value if there is an error.
>
> Come to IRC; it's far easier to deal with issues there than five dozen
> posts back and forth on a mailing list.
>
>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20090826/c99c25d0/attachment.htm>
More information about the x264-devel
mailing list