Closed ds-hw-consultant closed 3 years ago
After adding more debugging I get the following output:
...
ION allocator created dma buffers just fine
...
0:00:00.104295304 21549 0xaaaaef23c0c0 DEBUG imxvpudec gstimxvpudec.c:336:gst_imx_vpu_dec_set_format:
again, swapping in avdec_h264 works perfectly with the same pipeline.
Is this a libimxvpuapi issue or a gstreamer-imx issue?
Turns out "could not open decoder: error" really means: could not open /dev/mxc_hantro device node file. A better error message could be useful.
I've built libimxdmabuffer with ION allocator support enable and DWL allocator disabled. I subsequently built libimxvpuapi, gstreamer, and gstreamer-imx successfully. However, when I attempt to use imxvpudec_h264 it produces:
Setting pipeline to PAUSED ... Pipeline is PREROLLING ... 0:00:00.099679567 21494 0xaaaac94a04c0 ERROR imxvpuapi imxvpuapi2_imx8m_hantro_decoder.c:1171:imx_vpu_api_dec_open: initializing DWL instance failed 0:00:00.099828485 21494 0xaaaac94a04c0 ERROR imxvpudec gstimxvpudec.c:555:gst_imx_vpu_dec_set_format: could not open decoder: error
0:00:00.104743128 21494 0xaaaac94a04c0 ERROR imxvpuapi imxvpuapi2_imx8m_hantro_decoder.c:1171:imx_vpu_api_dec_open: initializing DWL instance failed
0:00:00.104801567 21494 0xaaaac94a04c0 ERROR imxvpudec gstimxvpudec.c:555:gst_imx_vpu_dec_set_format: could not open decoder: error
0:00:00.109546533 21494 0xaaaac94a04c0 ERROR imxvpuapi imxvpuapi2_imx8m_hantro_decoder.c:1171:imx_vpu_api_dec_open: initializing DWL instance failed
0:00:00.109603052 21494 0xaaaac94a04c0 ERROR imxvpudec gstimxvpudec.c:555:gst_imx_vpu_dec_set_format: could not open decoder: error
0:00:00.114272300 21494 0xaaaac94a04c0 ERROR imxvpuapi imxvpuapi2_imx8m_hantro_decoder.c:1171:imx_vpu_api_dec_open: initializing DWL instance failed
0:00:00.114326179 21494 0xaaaac94a04c0 ERROR imxvpudec gstimxvpudec.c:555:gst_imx_vpu_dec_set_format: could not open decoder: error
0:00:00.119770854 21494 0xaaaac94a04c0 ERROR imxvpuapi imxvpuapi2_imx8m_hantro_decoder.c:1171:imx_vpu_api_dec_open: initializing DWL instance failed
0:00:00.119871892 21494 0xaaaac94a04c0 ERROR imxvpudec gstimxvpudec.c:555:gst_imx_vpu_dec_set_format: could not open decoder: error
0:00:00.124694257 21494 0xaaaac94a04c0 ERROR imxvpuapi imxvpuapi2_imx8m_hantro_decoder.c:1171:imx_vpu_api_dec_open: initializing DWL instance failed
0:00:00.124748016 21494 0xaaaac94a04c0 ERROR imxvpudec gstimxvpudec.c:555:gst_imx_vpu_dec_set_format: could not open decoder: error
ERROR: from element /GstPipeline:pipeline0/GstQTDemux:demux: Internal data stream error.
Additional debug info:
../subprojects/gst-plugins-good/gst/isomp4/qtdemux.c(6545): gst_qtdemux_loop (): /GstPipeline:pipeline0/GstQTDemux:demux:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
ERROR: from element /GstPipeline:pipeline0/GstQueue:queue1: Internal data stream error.
Additional debug info:
../subprojects/gstreamer/plugins/elements/gstqueue.c(990): gst_queue_handle_sink_event (): /GstPipeline:pipeline0/GstQueue:queue1:
streaming stopped, reason not-negotiated (-4)
ERROR: pipeline doesn't want to preroll.
Freeing pipeline ...
swapping in avdec_h264 works just fine--but of course no Hantro VPU hw acceleration.