How to make H264 encoder accepts YUV422 format image

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to make H264 encoder accepts YUV422 format image

1,726 Views
leegd
Contributor I

  I'm using L3.0.35_4.1.0_130816 bsp(i.mx6q), vpu document say that the H264 encoder accepts YUV 4:2:2 image, but I don't know how to configure the parameters,  EncMjpgParam.Mjpg_sourceFormat specifies the input format for JPEG encoder,  but for H264 encoder,which parameters should i use?

  The reason why i want to use 4:2:2 format is that the low price usb camera support MJPEG format at 30fps, i decide to decode MJPEG first and get YUV422, and send to h264 encoder.

  thanks in advance

Labels (3)
0 Kudos
2 Replies

994 Views
joanxie
NXP TechSupport
NXP TechSupport

which vpu document says that vpu only supports yuv422 for h264 encoding?

could you share with me? let me check it.

0 Kudos

994 Views
leegd
Contributor I

NOT "only supports yuv422 for h264 encoding?"

page 72:

"Before running a picture encoder operation, the host application should provide a 4:2:0 or 4:2:2 vertical formatted input YUV image with a pre-defined size for H.263, MPEG-4 and H.264"

"Source format-The VPU supports 4:2:2 vertical format source image. The source image is converted to 4:2:0 format

automatically"

0 Kudos