[Mesa-dev] Initial VCE support v2

Christian König deathsimple at vodafone.de
Tue Feb 11 09:27:00 PST 2014


Hello list,

this is the v2 of the initial VCE support. It's based on the OpenMAX state tracker. Beside this list those patches can be found here as well: http://cgit.freedesktop.org/~deathsimple/mesa/log/?h=vce-release

Additionally to those patches you also need kernel support and matching firmware for it http://cgit.freedesktop.org/~deathsimple/linux/log/?h=vce-release
and http://people.freedesktop.org/~agd5f/radeon_ucode/.

As an example you can use gst-omx to build a transcoding pipeline. For this please install gst-omx and all dependencies and add the following to your gstomx.conf file:

[omxh264dec]
type-name=GstOMXH264Dec
core-name=/usr/lib/libomxil-bellagio.so.0
component-name=OMX.radeonsi.video_decoder.avc
rank=256
in-port-index=0
out-port-index=1

[omxmpeg2dec]
type-name=GstOMXMPEG2VideoDec
core-name=/usr/lib/libomxil-bellagio.so.0
component-name=OMX.radeonsi.video_decoder.mpeg2
rank=256
in-port-index=0
out-port-index=1

[omxh264enc]
type-name=GstOMXH264Enc
core-name=/usr/lib/libomxil-bellagio.so.0
component-name=OMX.radeonsi.video_encoder.avc
rank=256
in-port-index=0
out-port-index=1


The resulting gstreamer pipeline then should look something like this:

gst-launch-1.0 -f \
        filesrc location=in.mpg ! mpegpsdemux ! \
        mpegvideoparse ! omxmpeg2dec ! \
        omxh264enc ! \
        progressreport ! \
        avimux ! filesink location=out.avi

Please test and review,
Christian.



More information about the mesa-dev mailing list