i.MX8 MM vpuenc_h264 encode RGB format video

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

i.MX8 MM vpuenc_h264 encode RGB format video

1,027 次查看
shengfazhang
Contributor II

Hi, I run the following commands to check if i.MX8 MM VPU supports RGB format. And the answer seems no.

 

gst-inspect-1.0 vpuenc_h264

Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      video/x-raw
                 format: { (string)NV12, (string)I420, (string)YUY2, (string)UYVY, (string)RGBA, (string)RGBx, (string)RGB16, (string)RGB15, (string)BGRA, (string)BGRx, (string)BGR16 }
                  width: [ 64, 1920, 8 ]
                 height: [ 64, 1088, 8 ]
              framerate: [ 0/1, 2147483647/1 ]

 

And imxvideoconvert_g2d also can't convert RGB to the formats that VPU supports.

 

gst-inspect-1.0 imxvideoconvert_g2d
Pad Templates:
  SINK template: 'sink'
    Availability: Always
    Capabilities:
      video/x-raw
                 format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)I420, (string)NV12, (string)UYVY, (string)YUY2, (string)YVYU, (string)YV12, (string)NV16, (string)NV21 }
      video/x-raw(memory:SystemMemory, meta:GstVideoOverlayComposition)
                 format: { (string)RGB16, (string)RGBx, (string)RGBA, (string)BGRA, (string)BGRx, (string)BGR16, (string)ARGB, (string)ABGR, (string)xRGB, (string)xBGR, (string)I420, (string)NV12, (string)UYVY, (string)YUY2, (string)YVYU, (string)YV12, (string)NV16, (string)NV21 }

 

So is there any hardware acceleration supported to encode RGB video stream to H264 mp4.

Thanks!

标记 (1)
0 项奖励
回复
3 回复数

1,014 次查看
joanxie
NXP TechSupport
NXP TechSupport

try to use the command like this:

"videoparse format=xx width=xx height=xx framerate=xx ! vpuenc_h264! h264parse !"

0 项奖励
回复

1,011 次查看
shengfazhang
Contributor II

Dose videoparse support hardware acceleration? We need to parse 1080P 60FPS video stream. videoparse may be not available.

0 项奖励
回复

964 次查看
joanxie
NXP TechSupport
NXP TechSupport

videoparse should use software and vpu only supports yuv

 

0 项奖励
回复