mx6: video playback using the coda driver

Fabio Estevam festevam at gmail.com
Sun Oct 8 22:30:10 UTC 2017


Hi,

I am running Gstreamer 1.12.2 and kernel 4.13.3 on a imx6q sabresd board.

Coda driver has been succesfully loaded:

# dmesg | grep coda
[    8.508604] coda 2040000.vpu: Direct firmware load for
vpu_fw_imx6q.bin failed with error -2
[    8.532623] coda 2040000.vpu: Using fallback firmware vpu/vpu_fw_imx6q.bin
[    8.545763] coda 2040000.vpu: Firmware code revision: 46072
[    8.551491] coda 2040000.vpu: Initialized CODA960.
[    8.556611] coda 2040000.vpu: Unsupported firmware version: 3.1.1
[    8.565049] coda 2040000.vpu: codec registered as /dev/video[0-1]

The v4l2video1dec is present:

# gst-inspect-1.0 | grep v4l
video4linux2:  v4l2src: Video (video4linux2) Source
video4linux2:  v4l2sink: Video (video4linux2) Sink
video4linux2:  v4l2radio: Radio (video4linux2) Tuner
video4linux2:  v4l2deviceprovider (GstDeviceProviderFactory)
video4linux2:  v4l2video1dec: V4L2 Video Decoder

I tried to follow the instructions from Gary at:
https://github.com/boundarydevices/buildroot-external-boundary/blob/2017.08.x/README.md

but I am getting the following error when trying to run the same pipeline:

# gst-launch-1.0 filesrc location=/root/trailer_1080p_h264_mp3.avi ! avidemux !
 decodebin ! kmssink name=imx-drm sync=0
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Missing element: ITU H.264 decoder
ERROR: from element /GstPipeline:pipeline0/GstDecodeBin:decodebin0:
Your GStreamer installation is missing a plug-in.
Additional debug info:
gstdecodebin2.c(4600): gst_decode_bin_expose ():
/GstPipeline:pipeline0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: ITU H.264 (video/x-h264, variant=(string)itu,
framerate=(fraction)25/1, width=(int)1920, height=(int)1080)

ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...
#

Why does Gstreamer say it is missing a "ITU H.264 decoder"?

Any suggestions?

Thanks,

Fabio Estevam


More information about the gstreamer-devel mailing list