This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

I set slice nunber = 5 but get 264 file with slice = 3

Other Parts Discussed in Thread: TEST2

Hi,all:

I want to produce a H264 bitstream 352x288 with slice number=5.I run H264 C66x_h264hpvenc_01_00_01_03_ELF. I set params in the encoder.cfg like below:

 

ncores                  = 3

CoreTeamMap             = 0,1,2

sliceMode                    = 1  //slice

sliceUnitSize = 352x288/ 256 / 5  =  79   // slice number=5

 

But when I view the out.264 file .It show 3 slices like below:

Why?Any suggestion will be appreciated.

  • Hi Yaya,


    Please update your configuration with sliceCodingPreset            = 1 which will take user defined settings.

    Please be noted that slice ends at row boundaries, so number of MBs in slice will be approximated to multiples of rows.

    Thanks and regards

    Sudheesh

  • Hi,Sudheesh:

    Sudheesh said:

    Please be noted that slice ends at row boundaries, so number of MBs in slice will be approximated to multiples of rows.

    What does your that word exactlly mean?

    How to calculate the sliceUnitSize in order to get the right slice number which I expect ? I do 3 tests,Only test1 I set slice num =5 and I also get the slicenum = 5.

    But other tests ,For test2 I set slice = 8 but get slice = 5 ;For test3 ,I set slice = 6 but still get slice = 5 .

  • Hi Yaya,

    There is no configuration parameter called "slice num". Please refer to user guide for details regarding slice Mode, slicecoding preset etc.

    You can divide height in MBs to required number of slices to get MB Rows per slice. For that you will get MBs per slices which is sliceUnitSize when sliceMode = 1.

    Regards

    Sudheesh