OMX on thea (video playback)

Steps to make video playback work

patch omx_vdec_msm8974.cpp

patch the file $ANDROID_ROOT/hardware/qcom/media-caf/msm8974/mm-video-v4l2/vidc/vdec/src/omx_vdec_msm8974.cpp according to this commit

enter the HADK (ubuntu) and build libOmxVdec

. build/
breakfast $DEVICE
make -j4 libOmxVdec

edit /init.rc

edit the file $ANDROID_ROOT/system/core/rootdir/init.rc and preload the libOmxVdec with service minimedia. Make it look like this:

service minimedia /usr/libexec/droid-hybris/system/bin/minimediaservice
    class main
    user media
    group audio camera
    ioprio rt 4
#   hack to make recorded video playback work
    setenv LD_PRELOAD /usr/libexec/droid-hybris/system/lib/

in HADK build hybris-hal

. build/
breakfast $DEVICE
make -j4 hybris-hal

pack the hal

in SDK

rpm/dhd/helpers/ -d

rebuild image with mic

Last modified 7 years ago Last modified on 02/22/17 22:15:03