YUV Formats for vpu enocder

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

YUV Formats for vpu enocder

跳至解决方案
1,523 次查看
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

标签 (3)
0 项奖励
回复
1 解答
1,377 次查看
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 项奖励
回复
2 回复数
1,378 次查看
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 项奖励
回复
1,377 次查看
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 项奖励
回复