I’m using i.MX8M Mini with “BSP 7 Downstream Linux Reference Multimedia” (7.1.0+build.3) image.
When I ran the following GStreamer pipeline with VPU encoder element(vpuenc_h264):
And then, I got the following logs including errors.
Setting pipeline to PAUSED ...
====== VPUENC: 4.9.1 build on Aug 8 2024 05:28:21. ======
wrapper: 3.0.0 (VPUWRAPPER_ARM64_LINUX Build on Jul 24 2024 01:56:50)
vpulib: 1.1.1
firmware: 1.1.1.127
Pipeline is PREROLLING ...
OMX H264 ! HantroHwEncOmx_encoder_create_h264 H264EncInit failed! (-1) /usr/src/debug/imx-vpu-hantro/1.32.0/openmax_il/source/encoder/encoder_h264.c:783
0:00:00.103909052 687 0x7fb0000b70 ERROR vpuenc gstvpuenc.c:972:gst_vpu_enc_open_vpu:<vpuenc_h264-0> opening new VPU handle failed: failure
0:00:00.103944426 687 0x7fb0000b70 ERROR vpuenc gstvpuenc.c:1165:gst_vpu_enc_handle_frame:<vpuenc_h264-0> gst_vpu_enc_open_vpu failed.
0:00:00.103999050 687 0x7fb0000b70 WARN basesrc gstbasesrc.c:3175:gst_base_src_loop:<videotestsrc0> error: Internal data stream error.
0:00:00.104046174 687 0x7fb0000b70 WARN basesrc gstbasesrc.c:3175:gst_base_src_loop:<videotestsrc0> error: streaming stopped, reason error (-5)
ERROR: from element /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0: Internal data stream error.
Additional debug info:
/usr/src/debug/gstreamer1.0/1.24.0.imx/libs/gst/base/gstbasesrc.c(3175): gst_base_src_loop (): /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
Also, I ran the same pipeline with the BSP6 image (BSP 6 Downstream Linux Reference Multimedia 6.8.1+build.15), it worked fine.
Could someone please tell me how to use the VPU encoder with a BSP7 image?
Appendix (tdx-info):
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.54-7.1.0-g3493ccd66900 #1 SMP PREEMPT Tue Dec 17 21:04:41 UTC 2024
Kernel command line: root=PARTUUID=97f07748-02 ro rootwait console=tty1 console=ttymxc0,115200
Distro name: NAME="TDX Wayland with XWayland"
Distro version: VERSION_ID=7.1.0-build.3
Distro variant: -
Hostname: verdin-imx8mm-15005765
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Mini WB on Verdin Development Board
Toradex version: 0055 V1.1F
Serial number: 15005765
Processor arch: aarch64
------------------------------------------------------------
Hi, I’m the Toradex AI Assistant. The Toradex Support team will follow up with you shortly!
Did you like my answer?
Hello!
I’m sorry to hear you’re experiencing issues with the VPU encoder on your Verdin iMX8M Mini using BSP 7. Let’s explore some steps that might help resolve this:
Review BSP Changes:
Check the release notes for BSP 7 to see if there are any changes related to the VPU or GStreamer that could impact the encoder’s functionality.
Verify VPU Driver and Firmware:
Ensure that the VPU driver and firmware are correctly installed and compatible with BSP 7. Sometimes, updates in the BSP require corresponding updates in the VPU firmware.
Check GStreamer Plugin Compatibility:
Make sure the GStreamer plugins you are using are compatible with BSP 7. There might be updates or changes in the plugin versions that could affect functionality.
Examine Pipeline Configuration:
Double-check your GStreamer pipeline configuration for any syntax errors or deprecated elements that might not be supported in the new BSP version.
Experiment with Different Parameters:
Try adjusting the pipeline parameters, such as resolution or framerate, to see if the issue persists. This can help identify if the problem is related to specific settings.
Investigate Known Issues:
Look into any known issues or errata for BSP 7 that might relate to the VPU or GStreamer. This information can sometimes provide insights into unresolved bugs or workarounds.
I hope these steps help you get the VPU encoder working with BSP 7. If the issue persists, examining the specific error messages and logs in more detail might provide further clues.
Best regards,
Toradex AI Assistant
Please, also check if these links can help you solve your problem:
Dear Kyohei @k_ichi , thanks for the additional information. I don’t see any open ticket on this regard so let us check more in detail. The information you have provided is very useful.
I hope I can report back to you in 1-2 weeks.
Sorry for the inconvinience but thank you for your patience.