YUV Formats for vpu enocder

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

YUV Formats for vpu enocder

Jump to solution
670 Views
itzikperetz
Contributor I

Hi,

I'm trying to use the vpu encoder for encoding yuv stream from my camera to H264.

My camera (Microsoft LiveCam 1080p) generates YUYV format. I tried to give this raw file to the encoder test app (./mxc-vpu-test -E "-i itzik.yuv -w 640 -h 480 -f 2 -o itzik2.h264"), but i got corrupted H264 file.

Is this possible at all? If not, What should I do to get it encoded (This is the only YUV i can get from my camera)?

Thanks,

Itzik

Labels (3)
0 Kudos
1 Solution
524 Views
saurabh206
Senior Contributor III

Hi Itzik,

VPU encoding support only YUV4:2:0.

You need to add support for YUV422 to YUV420 conversion.

Thanks

Saurabh

View solution in original post

0 Kudos
2 Replies
525 Views
saurabh206
Senior Contributor III

Hi Itzik,

VPU encoding support only YUV4:2:0.

You need to add support for YUV422 to YUV420 conversion.

Thanks

Saurabh

0 Kudos
524 Views
itzikperetz
Contributor I

Hi Saurabh,

I have some other questions:

1. Can you explain me what is the sliceMode parameter in the encoder?

2. What the differences between the available modes? Is sliceSize related to NALU Size?

3. i saw that the encoder only supports Base profile, but i didn't see any limitation regarding to set H264 level. Can you explain me how to set the level for the encoder?

Thanks,

Itzik

0 Kudos