Welcome to Firefly
Switch language
Firefly Docsss
Last Updated: 2026-08-27 07:36:09

MPP Hardware Decoding

Rockchip Platform Support

7.4 MPP Hardware Decoding

Select the decoder automatically:

gst-play-1.0 --flags=3 --videosink=waylandsink test.mp4

When mppvideodec has a sufficiently high rank and supports the input format, automatic pipeline selection will normally choose the MPP decoder. For troubleshooting, explicitly specify it:

gst-launch-1.0 filesrc location=test.mp4 \
  ! parsebin \
  ! mppvideodec \
  ! waylandsink

JPEG hardware decoding:

gst-launch-1.0 filesrc location=input.jpg \
  ! jpegparse \
  ! mppjpegdec \
  ! filesink location=output.yuv

Common mppvideodec properties:

PropertyDescription
arm-afbcOutput AFBC-compressed data; disabled by default
fast-modeEnable MPP Fast Mode; enabled by default and may improve parallel decoding efficiency on some platforms
ignore-errorIgnore some MPP decoding errors and continue output; enabled by default
formatSpecify the output pixel format; conversion may be performed through RGA
width, heightSpecify the output dimensions; scaling may be performed through RGA
rotationRotate by 0/90/180/270 degrees; rotation may be performed through RGA
crop-rectangleCrop using <x,y,width,height>
dma-featureEnable the DMA buffer feature; refer to the current plugin documentation

On this page