Verdin iMX8MP GStreamer Hardware Decoder/Encoder

I am trying to run a pipeline on the Dahlia Carrier Board for the Verdin iMX8MP, including the iMX-supplied hardware encoder and decoder. However, when running the pipeline, I am coming up against the error “vpuenc_h264-0: Could not initialize supporting library”. I am using the Reference Multimedia Image with Dunfell-5 as an image to test on.

The pipeline I am using is the following:
gst-launch-1.0 rtspsrc location=“rtsp://192.168.1.1:8554/visible” ! rtph264depay ! h264parse confg-interval=-1 ! vpudec ! imxvideoconvert_g2d ! video/x-raw, width=640, height=480 ! videorate ! video/x-raw, framerate=10/1 ! vpuenc_h264 bitrate=700 ! rtph264pay pt=96 name=“pay0” ! udpsink host=“192.168.10.1” port=1234

This pipeline has been proven to work correctly on other iMX8MP boards from a different manufacturer.

Hi @bfleming !

I was able to run the following pipeline on:

  • Reference Multimedia Image from BSP 5.7.0 on a
  • Verdin iMX8MP Q 4GB WB IT V1.0B and
  • Verdin Development Board V1.1A and
  • output the result via DSI to HDMI converter
gst-launch-1.0 filesrc location=video/testvideo_h264.mp4 \
! video/quicktime ! aiurdemux \
! vpudec \
! imxvideoconvert_g2d \ 
! video/x-raw,width=200,height=100 ! videorate ! video/x-raw,framerate=10/1 \
! vpuenc_h264 \
! vpudec \
autovideosink

Peek 2022-11-01 12-11

Here is the explanation of the pipeline

  • gst-launch-1.0 filesrc location=video/testvideo_h264.mp4
    • get example video available on the image
  • video/quicktime ! aiurdemux
    • set caps and demuxing
  • vpudec
    • decoding in VPU
  • imxvideoconvert_g2d
    • convert video using GPU-2D
  • video/x-raw,width=200,height=100 ! videorate ! video/x-raw,framerate=10/1
    • setting very low resolution and framerate
  • vpuenc_h264
    • encoding again using VPU
  • vpudec
    • decoding again using VPU
  • autovideosink
    • outputing to display

Please share more information about your current setup:

  • Which exact Verdin iMX8MP module and version are you using? Please share its full name.
  • Which version is your Dahlia carrier board?
  • Please share the outputs of:
    • cat /etc/os-release
    • cat /etc/issue
    • uname -a
  • Did you build your own image or installed it from Toradex feeds (e.g. from Toradex Easy Installer image list)?

Best regards,
Henrique

1 Like

Hi @bfleming!

Do you have news regarding this topic?

Best regards,