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:
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!
HI!
Your problem solved?I met the same problem.
你好,I帧的数量是自己控制的,在编码结束后出数据流出的结构体中有相应的标志位,比如你需要一个I帧,后面紧跟9个P帧,这个时候可以每10帧改变这个标志位,就可以了,我是这样做的,希望能帮到你。
-Original-
你好,非常感谢你的回复,您是修改哪个标志位的呢?调用哪个接口来修改呢?
你好,这个我记得不是很清楚,需要你自己去看看结构图参数了。
谢谢,你还记得你是直接对这个参数赋值呢,还是需要调用VPU的接口来通知VPU?
是这个标志位么?还有印象?
重点关注vpu的相关的结构体参数
-Original-
did you try to use imx test? the same issue? like command "./mxc_vpu_test.out -E" the option "-g 10" for gopsize
Yes.
The test code is 'imx-test-5.3'.
BSP is L3.14.52