[x264-devel] Re: discontinous encoding

Måns Rullgård mru at mru.ath.cx
Tue Aug 10 10:05:49 CEST 2004


Laurent Aimar <fenrir at via.ecp.fr> writes:

>> > Currently I just increase it by 1 every IDR, so that can fail, but
>> > it's easy to avoid : for N encoder threads, just init it for thread
>> > n to n and increase it by 2^X such as 2^X >= N and X < 16.  (you
>> > have to wrap i_idr_pic_id when >= 2^16)
>> 
>> That should work of course.  The problem is passing the information
>> from the threading module to x264 in a sensible way.  There would be
>> some changes required to x264, I suppose.
>  I think we can make it easy, just add a i_idr_pic_id_min and
> max to x264_param_t (maybe we can create a sub struct like
> x264_param_t->advanced.*), by default 0/65535.
>  Then each x264_t will just start from min and increase until max and
> wrap...

Good idea.  It should work.

-- 
Måns Rullgård
mru at mru.ath.cx

-- 
This is the x264-devel mailing-list
If you are in trouble, please contact <postmaster at videolan.org>



More information about the x264-devel mailing list