wiki:wip_sf_2_omx

Version 1 (modified by admin, 7 years ago) (diff)

--

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 https://github.com/guhl/android_hardware_qcom_media/commit/753fd171ea3240cd17195fffd7dd3c6a406bf370

enter the HADK (ubuntu) and build libOmxVdec

cd $ANDROID_ROOT
. build/envsetup.sh
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/libOmxVdec.so

in HADK build hybris-hal

cd $ANDROID_ROOT
. build/envsetup.sh
breakfast $DEVICE
make -j4 hybris-hal

pack the hal

in SDK

cd $ANDROID_ROOT
rpm/dhd/helpers/build_packages.sh -d

rebuild image with mic