[MOD] Nexus 7 720p Video Recording

bennor3814

Senior Member
Jul 19, 2012
98
21
28
One small warning. Had my Nexus 7 soft brick after trying to add the "timelapse720p" code to the file that already had the 720p code from the OP post. Nexus 7 is on stock firmware, unlocked and rooted. Used ES File Explorer to open the file in the ES Editor program, pasted in the code, saved the file, set the file permissions (644) with ES File Explorer, rebooted and the Nexus 7 hanged on the multi colored X screen during boot. After some experimentation that yielded no solutions to bypass the X screen, re-flashed the stock firmware and the tablet finally was able to boot properly. Have yet to go back in and add these code changes to see if it works or bricks again.
 

hillbeast

Inactive Recognized Developer
Feb 9, 2011
2,719
6,790
0
Dunedin
Hi I want to know if this is applicable to any device with a decent camera (I want to use 720p recording to the samsung YP-G1)

Thanks.
As long as the SoC supports it (the video encoder supports the resolution and bitrate), yes.





Looks very good.

Why wouldn't they provide this patch as stock? Seems like a good feature.

No clue. I think they didn't want people using the device as a camera.


One small warning. Had my Nexus 7 soft brick after trying to add the "timelapse720p" code to the file that already had the 720p code from the OP post. Nexus 7 is on stock firmware, unlocked and rooted. Used ES File Explorer to open the file in the ES Editor program, pasted in the code, saved the file, set the file permissions (644) with ES File Explorer, rebooted and the Nexus 7 hanged on the multi colored X screen during boot. After some experimentation that yielded no solutions to bypass the X screen, re-flashed the stock firmware and the tablet finally was able to boot properly. Have yet to go back in and add these code changes to see if it works or bricks again.
Might have damaged another file somehow. The worst that this mod can do is break video encoding.

Sent from my GT-I9100 using xda app-developers app
 

rushter

Senior Member
Jul 19, 2010
245
43
0
Kawasaki City
Nexus 7 720p Camera Instructions - no PC needed (rooted users only)

So I just got 720p video recording working on my Nexus 7 and felt you guys should know about this too.
720p video picture

Here are my instructions to do this without using a PC(for rooted users):
I used ES File Expolorer (nice program available in the play store)
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.
Don't thank me for this - thank hillbeast. If my instructions helped you then thank me too. Lol.



Thanks hillbeast - I also noticed that you cannot take a screenshot while in the camera program - gives you a sd card storage in use error. So I took this with my SGS2.
 

416inversed

Senior Member
Jan 26, 2009
70
18
0
I tried this and now my Nexus 7 won't boot, I just get stuck on the glowing X boot animation.

I tried pushing a backup copy of media_profile.xml, but no luck.

I feel like a dumbass, as I haven't nandroided since the end of July.

Any ideas?
 

hillbeast

Inactive Recognized Developer
Feb 9, 2011
2,719
6,790
0
Dunedin
Lesson learned: 720p resolution != high-quality video.
What do you mean by '!= high-quality video'? Do you mean it is blocky, or is it grainy from the camera itself? If it's blocky then I can turn the bitrate up some more to get a better quality encode and I can also switch to mp4 seing 3gp is a pretty rubbish container.

Technically, wouldn't this be any Tegra 3 device?
Yeah, anything Tegra 2+, Exynos 3xxx+, OMAP 36xx+ or whatever Qualcomm chip supports HD video encoding (I don't keep up with what Qualcomm are doing, but I'm pretty sure if you have a Snapdragon/Scorpion, you're good to go.

720p video picture

Here are my instructions to do this without using a PC(for rooted users):
I used ES File Expolorer (nice program available in the play store)
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.
Don't thank me for this - thank hillbeast. If my instructions helped you then thank me too. Lol.



Thanks hillbeast - I also noticed that you cannot take a screenshot while in the camera program - gives you a sd card storage in use error. So I took this with my SGS2.
Thanks. I shall put your guide on the first page as well and credit you.

I tried this and now my Nexus 7 won't boot, I just get stuck on the glowing X boot animation.

I tried pushing a backup copy of media_profile.xml, but no luck.

I feel like a dumbass, as I haven't nandroided since the end of July.

Any ideas?
Try wiping dalvik-cache and cache, and if that still doesn't work then you need to reflash the system. You won't need to wipe your data, just restore /system from the backup.
 

clark707

Senior Member
May 14, 2011
71
3
0
720p video picture

Here are my instructions to do this without using a PC(for rooted users):
I used ES File Expolorer (nice program available in the play store)
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.
Don't thank me for this - thank hillbeast. If my instructions helped you then thank me too. Lol.



Thanks hillbeast - I also noticed that you cannot take a screenshot while in the camera program - gives you a sd card storage in use error. So I took this with my SGS2.

Hey when i attempted to save i received an error. And i dont want to do this if its crashing everyone elses devices.