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.

H.264 Encoder Multiple Slices per Frame - SPRABA9-April 2010

Expert 1130 points

If we want to encode multiple slices per frame do we use the sliceSize parameter? Is this the only way to do it? Why dows it state in section 2.2.2.1 on page 5 that the sliceSize parameter should be populated when H.241 is used?

 

Mike

  • Hi,

    If you want to encode multiple slices then you need to set sliceSize parameter accordingly. Previously only H241 was supported in DM365 encoders, so it says "sliceSize parameter should be populated when H.241 is used".

    But now in (2.00.00.xx releases) different types of Multiple slices are supported (MB based slices, Row based slices and H241).

    1. Standard Mode(encQuality = 0): Multiple slices based on number of MBs per slice and number of rows per slice. 

    2. High Mode(encQuality = 1): Multiple slices based on number of bits per slice.

    3.  Lite Mode(encQuality = 2): Multiple slices based on number of rows per slice.

    Now sliceMode along with sliceSize  is used to set MS in encoder.

    If sliceMode = 0 then sliceSize value is ignored. Entire frame will be encoded as a single slice.

    If SliceMode = 1 then sliceSize indicates: Size of each slice in bits.
    • 0 – Single Slice per Frame
    • >0 – Multiple Slices with the size of each slice <= sliceSize

    This feature is only present when encQuality =1 (High mode).
    This feature is only present when entropyCodingMode is 0 (CAVLC).

    If SliceMode = 2 then sliceSize indicates: Size of each slice in number of MBs.
    • 0 – Single Slice per Frame
    • >0 – Multiple Slices with each slice having MBs <= sliceSize.

    This feature is only present when encQuality = 0 (Standard Mode).

    If SliceMode = 3 then sliceSize indicates: Size of each slice in number rows per slice.
    • 0 – Single Slice per Frame
    • >0 – Multiple Slices with each slice having rows = sliceSize.
    Default value = 0
    This feature is supported in both encQuality = 0 (standard mode) and
    encQuality = 2 (lite mode).

    PS: Userguide of DM365 (SPRUEU9C) for more details.

    rgds, mahant