Thursday, September 20, 2012

Nexus 7 720p Video Recording

It's a simple fix as it's not a limitation of hardware or a kernel function or anything, rather it's just Google didn't add the media profile for 720p to tell it how to use 720p.

Download Link

Update.zip: http://d-h.st/8Cw
media_profiles.xml http://d-h.st/E57


Technical Guide

Don't follow this guide unless you have made a backup first and refuse to use the update.zip above. Seriously, I am tired of seeing messages from people screwing up editing the files and complaining when they have an easier safer option above.

To make this work, you need to modify /system/etc/media_profiles.xml, or if you are editing the source files for an AOSP build, you want to edit android/device/asus/grouper/media_profiles.xml, and you'll need a Camera.apk (A good one to use is this as you don't need to install it to /system/apps).

Make sure when you push the file to the phone, you give it the correct permissions (rw-r--r-- or chmod 644)

You need to edit media profiles to add the following lines around line 130:


Code:
   <EncoderProfile quality="480p" fileFormat="3gp" duration="30">
      <Video codec="h264"
             bitRate="4000000"
             width="640"
             height="480"
             frameRate="30" />

      <Audio codec="aac"
             bitRate="96000"
             sampleRate="44100"
             channels="1" />
    </EncoderProfile>

+    <EncoderProfile quality="720p" fileFormat="3gp" duration="30">
+      <Video codec="h264"
+             bitRate="16000000"
+             width="1280"
+             height="720"
+             frameRate="30" />
+
+      <Audio codec="aac"
+             bitRate="128000"
+             sampleRate="48000"
+             channels="1" />
+    </EncoderProfile>
Refer to this commit for more details:

http://review.cyanogenmod.com/#/c/22833/
Untethered Guide

In case you don't want to plug it into your computer for whatever reason, this guide was prepared by rushter:


Quote:
Originally Posted by rushter View Post
1- Open ES File Explorer and head to /system/etc/
2- Find the file media_profiles.xml and copy it (long press the file and select copy from the menu)
3- Go into any other directory and paste it there (temporarily)
4- Go back to the /system/etc/ directory again and rename the media_profiles.xml to media_profiles.xml.old and save it (long press the file and select rename from the menu
5- Now go back to the directory you copied the file to and long press it. When the menu comes up select cut and go to the /system/etc directory and hit paste up at the top
6- Now just click on the file you just pasted and a list of editors will pop up.
7- Select ES Note Editor (it comes with ES File Explorer) and locate the section in the file where it says
Code:
    <EncoderProfile quality="480p" fileFormat="3gp" duration="30">
      <Video codec="h264"
             bitRate="4000000"
             width="640"
             height="480"
             frameRate="30" />

      <Audio codec="aac"
             bitRate="96000"
             sampleRate="44100"
             channels="1" />
    </EncoderProfile>
8- Add this code right after
Code:
    <EncoderProfile quality="720p" fileFormat="3gp" duration="30">
      <Video codec="h264"
             bitRate="16000000"
             width="1280"
             height="720"
             frameRate="30" />

      <Audio codec="aac"
             bitRate="128000"
             sampleRate="48000"
             channels="1" />
    </EncoderProfile>
9- Once added click the back button on the bottom and a menu will show up on the bottom that asks you to save click that.
10- Long press the file you just saved and select Properties at the bottom and make sure you give it the correct permissions (rw-r--r-- or chmod 644) by clicking the change button. There should be 4 check marks on that screen User read, User write, Group read, Other read. Click ok and ok again to save it.
11- Reboot and enjoy.

Flash it to your phone and et voila.

No comments:

Post a Comment