IMX6Q中VPU视频编码格式为YUYV问题

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

IMX6Q中VPU视频编码格式为YUYV问题

Jump to solution
1,710 Views
stevenhuang
Contributor III

在mxc_vpu_test里面中视频编码的例子中, 视频数据存放格式为:先保存所有像素的Y值, 再保存所有像素的CR值,然后存所有像素的CB 。实际摄像头获取的数据是保存顺序是 YUYVYUYVYUYV........, 请问这种数据能用vpu lib编码吗? 有没有例子参考? 谢谢!

Labels (1)
1 Solution
1,087 Views
joanxie
NXP TechSupport
NXP TechSupport

vpu doesn't yuv422, if you want to use yuv422, suggest that you can use gstreamer to test it, using IPU to convert yuv422 to yuv420

View solution in original post

5 Replies
1,088 Views
joanxie
NXP TechSupport
NXP TechSupport

vpu doesn't yuv422, if you want to use yuv422, suggest that you can use gstreamer to test it, using IPU to convert yuv422 to yuv420

1,087 Views
stevenhuang
Contributor III

thanks!

0 Kudos
1,087 Views
joanxie
NXP TechSupport
NXP TechSupport

for vpu, it only support yuv420, if you use other format, you need to change it to yuv420 by IPU, then input to vpu

0 Kudos
1,087 Views
stevenhuang
Contributor III

我的问题跟下面这个帖子的问题是相同的,但是没有从这个帖子中看出答案,

https://community.nxp.com/message/606001 

0 Kudos
1,087 Views
stevenhuang
Contributor III

不是420,就是422格式,但是储存方式比一样。 摄像头采集到的数据是Y和U,V间隔储存。VPU只能处理下面这存放格式吗(以8个像素为例)?

Y Y Y Y Y Y Y Y

U U U U

V V V V

实际摄像头采集到的数据是下面:

Y U Y V Y U Y V Y U Y V Y U Y V

0 Kudos