i.MX6Q VPU: Changing H.264 Profile and Level

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

i.MX6Q VPU: Changing H.264 Profile and Level

Jump to solution
3,378 Views
rebelalliance
Contributor III

Hi,

In the specs for the i.MX6Q VPU, it states that the encoder supports H.264 Base Profile, Main Profile, and High Profile.  However I was unable to find a way that I can select which profile to use.  I tried encoding video using the following pipeline:

gst-launch mfw_v4lsrc device=/dev/video1 capture-mode=5 ! vpuenc codec=6 seqheader-method=3 ! mpegtsmux ! filesink location=/path/to/myfile.ts

I take the encoded TS file and run it through an advanced H.264 video analysis software and it always indicates a Constrained Baseline profile.

My capture camera is a OV5640 MIPI camera that comes with the i.MX6Q SabreSD Platform.

My question is, how can I change the encoding H.264 profile to Main Profile or High Profile?  I have already looked through the documents but saw nothing pertinent.

Please advise.

Thanks.

Labels (3)
0 Kudos
1 Solution
1,289 Views
varsmolta
Contributor V

According to the i.mx6 reference manual, the VPU can only encode "H.264 BP/CBP,", but can decode "H.264 BP/CBP/MP/HP". So you cannot use the VPU to encode Main Profile or High Profile

View solution in original post

0 Kudos
4 Replies
1,289 Views
edison_fernande
Contributor III

Hi all,

I know this thread is already closed but I have a similar question. I know the vpu can only encode in baseline or constrained baseline profile level 4.0. Analyzing the stream it seems it is encoding constrained baseline level 3.1 so my question is, is there a way of changing the profile to baseline? Or maybe the level?

Thanks for your help.

Regards,

Edison

0 Kudos
1,289 Views
rebelalliance
Contributor III

That's correct.  Thanks for the clarification.

0 Kudos
1,290 Views
varsmolta
Contributor V

According to the i.mx6 reference manual, the VPU can only encode "H.264 BP/CBP,", but can decode "H.264 BP/CBP/MP/HP". So you cannot use the VPU to encode Main Profile or High Profile

0 Kudos
1,289 Views
varsmolta
Contributor V

Chapter 68 (page 5639 of

Document Number: IMX6DQRM

Rev. 0, 11/2012)

Video Processing Unit (VPU)

68.1 Overview

Video Processing Unit of i.MX 6Dual/6Quad is a high performance multi-standard video

codec

which can decode H.264 BP/CBP/MP/HP, VC-1 SP/MP/AP, MPEG-4 SP/ASP, H.263

P0/P3, MPEG-1/2 MP, Divx (Xvid) HP/PP/HTP/HDP, RV8/9/10, VP8 (1280x720),

AVS, H.264-MVC (1280x720), MJPEG BP (max. 8192x8192) up to full-HD 1920x1088

@30fps plus D1 @30fps. It can also perform H.264 BP/CBP, MPEG-4 SP, H.263 P0/P3,

MJPEG BP (max. 8192x8192) encoding up to full-HD 1920x1088@30fps.