About imx6q VPU encoding

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

About imx6q VPU encoding

2,054 Views
397028133
Contributor III

Hi,All

   I refer to "took imx - test - 5.3" code, for video coding.Before calling a function, I value assigned to EncOpenParam the following figure:

E11E.tmp.jpgwxid_j12r32y9s5p322_1481254146535_79.png

The gopSize value set to 10, usually the H264 frame structure should be IPPPPPPPPP, but I found the video encoding only at the start of the first frame of the data for the I frame.I call a vpu_EncGetOutputInfo after vpu_EncStartOneFrame encoding a frame data access code data, when sEncOutInfo. PicType = 0, or P frame.

I use the kernel version is L3.14.52

Is there anyone who faced the same problem?Thank you very much!

0 Kudos
10 Replies

1,618 Views
juzichen
Contributor I

HI!

Your problem solved?I met the same problem.

0 Kudos

1,618 Views
397028133
Contributor III

你好,I帧的数量是自己控制的,在编码结束后出数据流出的结构体中有相应的标志位,比如你需要一个I帧,后面紧跟9个P帧,这个时候可以每10帧改变这个标志位,就可以了,我是这样做的,希望能帮到你。

-Original-

1,618 Views
juzichen
Contributor I

你好,非常感谢你的回复,您是修改哪个标志位的呢?调用哪个接口来修改呢?

0 Kudos

1,618 Views
397028133
Contributor III

你好,这个我记得不是很清楚,需要你自己去看看结构图参数了。

0 Kudos

1,618 Views
juzichen
Contributor I

谢谢,你还记得你是直接对这个参数赋值呢,还是需要调用VPU的接口来通知VPU?pastedImage_2.pngpastedImage_3.png

是这个标志位么?还有印象?

0 Kudos

1,618 Views
397028133
Contributor III

重点关注vpu的相关的结构体参数

-Original-

0 Kudos

1,618 Views
joanxie
NXP TechSupport
NXP TechSupport

did you try to use imx test? the same issue? like command "./mxc_vpu_test.out -E" the option "-g 10" for gopsize

0 Kudos

1,618 Views
397028133
Contributor III

Yes.

0 Kudos

1,618 Views
397028133
Contributor III

The test code is 'imx-test-5.3'.

0 Kudos

1,618 Views
397028133
Contributor III

BSP is L3.14.52

0 Kudos