i.MX8 MM vpuenc_h264 encode RGB format video

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

i.MX8 MM vpuenc_h264 encode RGB format video

711 Views
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!

Tags (1)
0 Kudos
3 Replies

698 Views
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 Kudos

695 Views
shengfazhang
Contributor II

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

0 Kudos

648 Views
joanxie
NXP TechSupport
NXP TechSupport

videoparse should use software and vpu only supports yuv

 

0 Kudos