From 4619ddf8762c15e9c6c116934cfea2dc6cd90706 Mon Sep 17 00:00:00 2001 From: Aaron Kling Date: Sat, 3 Jul 2021 19:13:52 -0500 Subject: [PATCH] g12: Use software OMX codecs * Hardware OMX codecs crash hard at the moment. Change-Id: Idf71588311a37031869eeefd110549af40695913 --- g12.mk | 6 ++- media/media_codecs_sw.xml | 81 +++++++++++++++++++++++++++++++++++++++ vendor.prop | 1 + 3 files changed, 86 insertions(+), 2 deletions(-) create mode 100644 media/media_codecs_sw.xml diff --git a/g12.mk b/g12.mk index a7ac41c..aff22e3 100644 --- a/g12.mk +++ b/g12.mk @@ -63,12 +63,14 @@ PRODUCT_IS_ATV := true ## Codecs PRODUCT_COPY_FILES += \ - $(COMMON_PATH)/media/media_codecs.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ + $(COMMON_PATH)/media/media_codecs_sw.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs.xml \ $(COMMON_PATH)/media/media_codecs_performance.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_performance.xml \ $(COMMON_PATH)/media/media_codecs_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_profiles.xml \ $(COMMON_PATH)/media/media_codecs_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_profiles_V1_0.xml \ $(COMMON_PATH)/media/media_profiles.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles.xml \ - $(COMMON_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml + $(COMMON_PATH)/media/media_profiles_V1_0.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_profiles_V1_0.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_audio.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_audio.xml \ + frameworks/av/media/libstagefright/data/media_codecs_google_video.xml:$(TARGET_COPY_OUT_VENDOR)/etc/media_codecs_google_video.xml ## DRM PRODUCT_PACKAGES += \ diff --git a/media/media_codecs_sw.xml b/media/media_codecs_sw.xml new file mode 100644 index 0000000..2b00568 --- /dev/null +++ b/media/media_codecs_sw.xml @@ -0,0 +1,81 @@ + + + + + + + + + diff --git a/vendor.prop b/vendor.prop index dee7273..740979a 100644 --- a/vendor.prop +++ b/vendor.prop @@ -87,6 +87,7 @@ vendor.media.omx.use.360omx2=false vendor.media.omx.out_buffer2_osd=8 vendor.media.omx.display_mode=3 vendor.media.sf.omxvideo-optmize=1 +debug.stagefright.ccodec=0 ## OEM Lock ro.oem_unlock_supported=1 -- 2.20.1