Skip to content

Instantly share code, notes, and snippets.

@Mm7
Last active May 22, 2016 19:09
Show Gist options
  • Save Mm7/14cf84296dc2f5b78f41 to your computer and use it in GitHub Desktop.
Save Mm7/14cf84296dc2f5b78f41 to your computer and use it in GitHub Desktop.
Revert video recording size to 320x240 (fix recording)
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 4bc9042..35df85e 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -35,5 +35,4 @@ BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := device/samsung/cooper/bluetooth
BOARD_CAMERA_USE_GETBUFFERINFO := true
BOARD_USE_CAF_LIBCAMERA_GB_REL := true
TARGET_PREBUILT_LIBCAMERA := true
-TARGET_CAMERA_SENSOR_MP_SIZE := 5
diff --git a/common.mk b/common.mk
index 8bc1ac0..793801f 100644
--- a/common.mk
+++ b/common.mk
@@ -94,7 +94,7 @@ PRODUCT_COPY_FILES += \
device/samsung/msm7x27-common/prebuilt/etc/media_codecs.xml:system/etc/media_codecs.xml
## Media Profiles
-ifneq (,$(filter beni cooper,$(CM_BUILD)))
+ifneq (,$(filter beni,$(CM_BUILD)))
PRODUCT_COPY_FILES += \
device/samsung/msm7x27-common/prebuilt/etc/media_profiles_5mp.xml:system/etc/media_profiles.xml
else
diff --git a/prebuilt/etc/media_profiles.xml b/prebuilt/etc/media_profiles.xml
index 46c21b6..42220cc 100644
--- a/prebuilt/etc/media_profiles.xml
+++ b/prebuilt/etc/media_profiles.xml
@@ -84,7 +84,7 @@
<CamcorderProfiles cameraId="0">
<!-- lowest supported profile in kitkat :) -->
- <EncoderProfile quality="480p" fileFormat="mp4" duration="60">
+ <EncoderProfile quality="qvga" fileFormat="mp4" duration="60">
<Video codec="h264"
bitRate="1500000"
width="320"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment