Problem with etnaviv and gstreamer 1.0

Luís Mendes luis.p.mendes at gmail.com
Mon Dec 4 17:46:28 UTC 2017


Hi Lukasz,

I'm not part of the mesa/etnaviv development team, but I've tried
somethings with gstreamer, maybe I can provide some useful information...

Can you try xvimagesink instead of glimagesink?

Etnaviv provides the driver for the 3D GPU, but I believe the video is
normally output out through the 2D unit, the GC320 in i.MX6 via xf86-armada
drm driver.

I think the best approach for decoding and outputting video is to implement
the VAAPI and/or VDPAU support in mesa, right on etnaviv making the CODA
VPU unit available to all the applications that are already VAAPI and VDPAU
aware, like vlc, kodi and others. That way standard desktop applications
can be used without much changes or one can develop for both platforms with
less effort. I am currently starting such project to bridge the gap with a
prototype driver that could be integrated in etanviv and mesa. Mesa already
implements VAAPI and VDPAU, I believe one just needs to implement an
internal mesa API named VL.

Meanwhile, maybe you can try the following which also makes use of the CODA
VPU unit with gstreamer:

wget http://linode.boundarydevices.com/videos/trailer_1080p_h264_mp3.avi

gst-launch-1.0 filesrc location=/home/ubuntu/trailer_1080p_h264_mp3.avi ! \
 avidemux ! h264parse ! v4l2video1dec capture-io-mode=dmabuf ! \
 xvimagesink device=1 sync=0

The above works both on my i.MX6Q and on my i.MX6QP under X, I haven't
tried with wayland, but should work just the same.

I based this test on the following post by Fabio Estevam:
https://imxdev.gitlab.io/tutorial/Decoding_video_with_a_mainline_kernel_on_i.MX6/


 Regards,
Luís Mendes
Hardware and Software engineer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/etnaviv/attachments/20171204/30c8e66d/attachment.html>


More information about the etnaviv mailing list