Improved 720p recording for both font and back camera - mp4 format

bracken21

Member
Sep 20, 2006
40
30
0
Must have ROOT

EDIT**

I have just uploaded V2 of my profile - I have lowered the Bitrate slightly and changed from 3gp to mp4 file format.. I have also enabled 720p for the front facing camera - Let me know if the lowered bitrate still performs as well.



Folks,

This is my edited media_profile.xml for far better 720p recording.. thought I would share it..

I have upped the bitrate from just 1MB/s (default)to around 4MB/s.. for me, it is clearly better when played on my Monitor or Television.. smoother, more detail and appears clearer.

I have tried a higher bitrate but found this to be a good balance between size and quality.

I have also tried editing the xml for 1080p recording but cannot get higher than 14fps when recording so have not included it..

to install, just unrar the media_profiles.xml and copy it to /system/etc and reboot.... REMEMBER TO BACKUP YOUR ORIGINAL FIRST.

This has worked for me, but if you end up in a boot loop, pushing the original file should fix it.


Hope you enjoy it.
Bracken
 

Attachments

Last edited:

Sergio PC

Senior Member
Jun 30, 2008
1,394
6
0
Santiago
www.bulldogs.cl
Works well, I have a similar hack for my Nexus.

Easy and simple improvement for video recording.
Using Hammerhead 2.1 & Tachi OCed kernel.

@bracken21 = does this affect the still camera picture taking?

Thank you very much, great mod.
 

bracken21

Member
Sep 20, 2006
40
30
0
Hi,

@Sergio PC -This does not affect the picture quality only the video..

@twister_65 -I had this completely on stock 3.1 with stock kernel and worked fined.. I'm now running it with Hammerhead 2.1 & Tachi OCed kernel.

Even OCed @1.6, when I enable 1080p recording there is no increase in FPS, it stays at around 14FPS.. I presume the actual sensor is not capable of [email protected]

@mradlauer - I have no idea if this could be done to the DX, I presume so, but what resolution, bitrate and FPS would depend on the device.. if its anything like the Xoom, putting in an unsupported profile may result in a boot loop ?

If there is interest I can upload another profile with settings as follows... but I find it pointless as 1080p @ 14fps is unwatchable.. I have tried increasing/decreasing the Bitrate but still only does 14fps.

1080p 6MB/s @ 14fps when high quality selected.
720p 4MB/s @ 30 when low quality selected.
720p @ 30fps for front facing camera.

Thanks
Bracken
 
Last edited:
  • Like
Reactions: Psychokitty

crackmulah

Senior Member
Apr 11, 2011
605
45
0
truly great work here. thank you

im just surprised no one had done this sooner, but better late than never!!

ive only played wtih it for litterally 30 seconds however i noticed that upon pressing the record button for a video using the front facing camera, it zooms in and stretches the image vertically in the preview window. i dont think that it actually records it like this but it seems to be some sort of graphical glitch....maybe you could look into it?

id like to say thanks again. did you change anything for the still images in v2 or somthing? because i no longer see those weird lines when taking photos with the front facing camera.


THANKS!
 

GeekyGuy

Member
Mar 29, 2006
39
9
0
however i noticed that upon pressing the record button for a video using the front facing camera, it zooms in and stretches the image vertically in the preview window. i dont think that it actually records it like this but it seems to be some sort of graphical glitch....
I've noticed the same issue when recording from the front camera
 

Audionut11

Senior Member
May 28, 2011
64
14
0
Nice find.

Pretty easy to increase or lower the bitrate yourself.

I personally upped the bitrate to 35MB/s for 720p.
Adjusted the 480p resolution to 720x480 @ 20Mb/s for quick and easy converts straight to dvd with no resolution changes.
Adjusted the audio bitrate to 256kbps, sample rate to 48khz and enabled stereo recording.

Sweet stuff.

edit: Tried shooting for 60fps but it forced closed as soon as I tried to select video recording :(
 
Last edited:
  • Like
Reactions: Psychokitty

playya

Senior Member
Jan 12, 2007
6,873
2,514
253
Florida
Nice find.

Pretty easy to increase or lower the bitrate yourself.

I personally upped the bitrate to 35MB/s for 720p.
Adjusted the 480p resolution to 720x480 @ 20Mb/s for quick and easy converts straight to dvd with no resolution changes.
Adjusted the audio bitrate to 256kbps, sample rate to 48khz and enabled stereo recording.

Sweet stuff.

edit: Tried shooting for 60fps but it forced closed as soon as I tried to select video recording :(
Do you mind posting your xml file... I personally like the tweaks you have done and would like the same..

Thanks in advance
 

bracken21

Member
Sep 20, 2006
40
30
0
Nice find.

Pretty easy to increase or lower the bitrate yourself.

I personally upped the bitrate to 35MB/s for 720p.
Adjusted the 480p resolution to 720x480 @ 20Mb/s for quick and easy converts straight to dvd with no resolution changes.
Adjusted the audio bitrate to 256kbps, sample rate to 48khz and enabled stereo recording.

Sweet stuff.

edit: Tried shooting for 60fps but it forced closed as soon as I tried to select video recording :(
35MB/s is 2.1Gb per minute - that would give you around 15 mins recording on 720p on 32gb card. Plus with the size of sensor and optics, im guessing you wont see quality increase above 3MB - 4MB/s and even that is asking alot of the camera due to the noise levels and lack of light/detail passing through the small plastic lens. As for stereo recording, I thought the Xoom only had 1 mic ?

Being that bluray movies are around 34MB/s.. I think asking a small plastic lens on the xoom to do that a little much. Also the tegra 2 is listed at only supporting 20Mb... did you also amend the codec maximum bitrate as its currently set to around 5MBs.. if not, you will actually be recording @ 5MB/s.. Also, is 35MB/s over the write limit for xoom internal storage.. I could be wrong but even a class 10 cards only write at around 10MBs and reads @ 30Mbs ?

If you want to try 60fps, you would also need to amend not just the recording values but the codec preference and possible the memCap too.. ive not tried it yet, may give it a go.

Im not trying to have a go at you, just stating that your filling your xoom up for no reason... in a long winded blurbing kind away.. not had my coffee yet..

As for the problem with front camera zooming in on 720p, nothing I can do about this, that fix would be above my head.. My guess is that the google camera apk would need amended for 16:9... my knowledge of Android goes as far as this little dirty hack.

Cheers
Bracken
 
Last edited:
  • Like
Reactions: Psychokitty

rockhumper

Senior Member
Mar 17, 2011
414
41
0
bummer on the zoom and front face stretch problem... Gonna have to revert to stock unless fixed in the future... Will subscribe for updates in case. Nice for folks that don't mind those couple details though
 

bracken21

Member
Sep 20, 2006
40
30
0
bummer on the zoom and front face stretch problem... Gonna have to revert to stock unless fixed in the future... Will subscribe for updates in case. Nice for folks that don't mind those couple details though
Hi, just revert to version 1, it keeps the front camera stock and rear camera is improved..

As for the people not being able zoom, you can't zoom in video mode using stock... well mines never has.

I wish I knew how to port the camera front the Samsung 10.1 tab, does any one know how?

Cheers
Bracken
 
  • Like
Reactions: Psychokitty