[MOD] Video Bitrate Control (20-50mbps vs 10mbps stock) **NOW with demo link***

Search This thread

zerozoneice

Senior Member
Dec 18, 2010
1,846
223
excellent MOD!!!!!
noticed that 720p video is shot at 29FPS, while 1080p at 24fps...
the 720 is clearly smoother when played on PC....
 

ArmedandDangerous

Senior Member
Aug 8, 2011
1,842
347
Kuala Lumpur
96k to 128k should have a noticeable difference. Does anything above 128k work? 192k, 256k or 320k? :) I haven't got my Nexus yet cos there's no stock at any Samsung retailer but once stock arrives I want to do all my customizing at one go :)
 

Tiggerbits

Senior Member
Feb 17, 2011
80
7
Bath
96k to 128k should have a noticeable difference. Does anything above 128k work? 192k, 256k or 320k? :) I haven't got my Nexus yet cos there's no stock at any Samsung retailer but once stock arrives I want to do all my customizing at one go :)

I havent yet tried anything higher, also notice that you can choose to set it to 1 channel or 2 channels (stereo), I no that the nexus has too mics, and it uses the "top" mic for video recording, i wonder if setting it to 2 channel it will use both mics? bit of a long shot but i'll see when i get a chance
 

Chopes

Senior Member
Apr 11, 2010
440
9
I havent yet tried anything higher, also notice that you can choose to set it to 1 channel or 2 channels (stereo), I no that the nexus has too mics, and it uses the "top" mic for video recording, i wonder if setting it to 2 channel it will use both mics? bit of a long shot but i'll see when i get a chance

Hopefully so, I have noticed the audio does indeed seem odd. May be just what the doctor ordered.
 

itch808

Senior Member
Apr 29, 2010
522
46
Does the toolkit allow for stereo recording or do we need to edit the media-profiles?
 

AdamNJ77

Member
Jun 20, 2010
41
6
Framrate

There is a cool app called Camera ICS+ which is only 99 cents. It looks just like the stock ICS camera app, but lets you turn off video stabilization and double the video bitrate and for photos uses a higher quality JPEG compression if you choose. Anyway, it's pretty cool for 99 cents anyway. I was wondering if anyone knew a way to get 1080p at 30fps, and not 24. 720p looks so much smoother at 30fps, and I KNOW the 4460 processor can definitely handle it since 4430 processors are pulling 1080p at 30fps. If anyone has any suggestions or information, I would really appreciate it. Thanks :)


OOPS, sorry, the title should have obviously read, "Framerate" lol, sorry for the mispelling
 

zr0ko0l

Senior Member
Dec 21, 2009
62
5
Riverside
Would this help with movies that I add to the sdcard section? my issue is that many if not all of the movies that I add, when I watch them on my phone the picture tends to lag a few seconds behind then the audio, then it will fast forward to the point that the audio is playing only to do it again a few seconds later

Sent from my Galaxy Nexus using xda premium
 

mvp

Senior Member
Feb 18, 2005
53
0
Super work! Holmes6 Thanks , have a request , it is not possible to increase the framerate in 1080 to 30 ? Use same settings as necessary to SGS2 , the framerate is 30, and videos are perfect. Thank you very much !
 

DaRkL3AD3R

Senior Member
Dec 5, 2010
784
240
I'd also like to know if theres some hope for 1080p 30fps. I don't know if its something we can control since the data in the xml file looks like it's pretty much set for 30 fps, and if it were that easy I get the feeling Samsung/Google would have flipped the bits for it already.

Also, the numbers in OP are way too high. I strongly recommend a capped bitrate of 20mbps for max and a min of 12mbps. I was finding that at 32-60mbps range my files were way too huge and the quality difference, if there even really was one, was not worth triple the file size. Any perceived increase in quality may also be credited to "placebo" effect.

My settings give files 1/3rd the size on disk that the OP's give and at what appears to be the same or similar quality.

Min: 12000000
Max: 20000000
 

Bert336

Senior Member
Sep 16, 2010
171
11
Greensboro, NC
thanks for the tip, has anyone noticed any quality change when changing the picture/compression setting?

Since this is somewhere along the same camera lines chat, do you guys know if it's possible to adjust somehow the density of the flash or the way it reacts to prevent getting red/yellow eyes when using the flash?
 

Wraithxt1

Senior Member
Nov 27, 2009
60
4
I havent noticed a difference yet, but I dont have enough pictures to compare yet.

My real interest is stereo sound and getting 30 FPS to work for 1080p. I'd be extremely happy if 1080p recording worked, as it is right now 720p is the way to go due to how choppy 24fps looks. Those extra 6 frames per second make a big difference.
 

DaRkL3AD3R

Senior Member
Dec 5, 2010
784
240
I havent noticed a difference yet, but I dont have enough pictures to compare yet.

My real interest is stereo sound and getting 30 FPS to work for 1080p. I'd be extremely happy if 1080p recording worked, as it is right now 720p is the way to go due to how choppy 24fps looks. Those extra 6 frames per second make a big difference.

I bumped up my audio recordings for 720/1080p to 192kbps 2 channel (stereo), and WMP is reporting about that. Usually 195ish kbps bitrate so much better audio quality at little to no impact on file size. As far as the actual practicality of it being in "stereo" now can't tell. I don't really know how to test it to see if it really is in stereo, besides muting a channel at a time and seeing if I hear different things. I'll do some testing I suppose.

As far as 30fps at 1080p, we already know the hardware should be more than capable of doing it, but there must be something there that caused Google/Samsung to hold off at 24fps. Whatever the reason be, I am confident it will not be an easy switch in an xml document.
 

Top Liked Posts

  • There are no posts matching your filters.
  • 17
    Any way this can be packaged up into a CWM flashable zip file to make it easier on those who are not familiar with using ADB?

    Second this. I tend to surf XDA for and apply mods like this while on the toilet at work.

    Sent from my Galaxy Nexus using Tapatalk
    8
    I was tinkering with media_profiles.xml yesterday and it appears that modifying the bitrate settings in here affects the camera. The stock bitrate min/max values are:

    min: 64000
    max: 12000000

    Videos shot with these settings are usually 6-10mbps bitrate. I have changed these values to:

    min: 35000000
    max: 60000000

    And my videos are now between 20mbps and 50mbps (huge leap!). The file sizes are bigger but I'm assuming this has to mean the videos will be somewhat better quality (my guess is mostly in low light when the ISO is cranked higher). I don't understand very well how these values are all used in here, but adjusting the bitrate ones does make a difference. Although framerate for 1080p says 30 here, they always come off camera at 24fps so I'm not sure if framerate (or any other changes) will work here.


    Any value higher than 60000000 for the max will cause the camera app to crash, so I think this is a good max for now. This mod has been done on countless other devices, so I'm in no way discovering anything new, I just decided to poke around and see what changes work :)


    Here's some more details for what to modify (to apply this mod to 720p and 1080p):

    Starting at line 127:
    Code:
            <EncoderProfile quality="720p" fileFormat="mp4" duration="30">
                <Video codec="h264"
                       [COLOR="Red"][b]bitRate="60000000"[/b][/COLOR]
                       width="1280"
                       height="720"
                       frameRate="30" />
                <Audio codec="aac"
                       bitRate="96000"
                       sampleRate="48000"
                       channels="1" />
            </EncoderProfile>
    
            <EncoderProfile quality="1080p" fileFormat="mp4" duration="30">
                <Video codec="h264"
                       [COLOR="red"][b]bitRate="60000000"[/b][/COLOR]
                       width="1920"
                       height="1080"
                       frameRate="30" />
                <Audio codec="aac"
                       bitRate="96000"
                       sampleRate="48000"
                       channels="1" />
            </EncoderProfile>

    And one other spot, line 340:
    Code:
        <VideoEncoderCap name="h264" enabled="true"
            minBitRate="[COLOR="red"][b]35000000[/b][/COLOR]" maxBitRate="[COLOR="red"][b]60000000[/b][/COLOR]"
            minFrameWidth="176" maxFrameWidth="1920"
            minFrameHeight="144" maxFrameHeight="1080"
            minFrameRate="15" maxFrameRate="30" />



    Additional mod:
    People have claimed on other devices changing this setting produces higher quality images from the camera, starting at line 216:
    Code:
            <ImageEncoding quality="[COLOR="red"][b]100[/b][/COLOR]" />
            <ImageEncoding quality="80" />
            <ImageEncoding quality="70" />
            <ImageDecoding memCap="20000000" />





    Steps to apply the mod:
    1) have ADB setup and working (not explaining that here, plenty of other threads for this)
    2) cd to some directory to work in (I just use the desktop), ensure ADB is in your path (google that part)
    3)
    Code:
    adb pull /etc/media_profiles.xml .
    to pull the media_profiles.xml file to whatever folder you're in with the terminal.
    4) Make your modifications, save the file (maybe keep a backup of the original file if you want).
    --- workaround because adb remount doesn't work] ---
    5)
    Code:
    adb push media_profiles.xml /sdcard/download
    6) Use root explorer to move the media_profiles.xml file from your downloads folder to the /etc folder (make sure to mount /etc as R/W before you try to move).
    7) Reboot phone, all set!

    EDIT
    - or just use Root Explorer (available in the market) to do the changes, reboot the phone and you're done!


    edit
    Demo video shot at 45mbps:
    http://www.youtube.com/watch?v=J2r6zPYlRD0

    http://www.youtube.com/watch?v=XCbNs1hEEjU


    Hope somebody else finds this as useful as me!
    6
    I fooled around with this some.. Firstly, testing out video before mod:
    Bit rate : 6 419 Kbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Variable
    Frame rate : 24.000 fps
    Minimum frame rate : 15.515 fps
    Maximum frame rate : 24.026 fps

    Then after modifying the media_properties.xml file with less aggressive values vs. the OP.
    Line 130: bitRate="10000000"
    Line 142: bitRate="25000000"
    Line 342: minBitRate="8000000" maxBitRate="25000000"

    Then a quick video test:

    After Mod:
    Bit rate : 9 731 Kbps
    Width : 1 280 pixels
    Height : 720 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Variable
    Frame rate : 30.000 fps
    Minimum frame rate : 22.294 fps
    Maximum frame rate : 30.120 fps

    So this seems to work.

    I've put a few modified files in .zip flashable format here. Please check readme.txt there for more info on each.




    I tested these on my own galaxy nexus cdma lte vzw with francisco #10 kernel and aokp build 14.. I cannot promise this will work for you and cannot take responsibility for any damage, flash at your own risk.
    5
    Second this. I tend to surf XDA for and apply mods like this while on the toilet at work.

    Sent from my Galaxy Nexus using Tapatalk

    This man knows what's up. Especially since I'm on the toilet right now :D

    Sent from my Galaxy Nexus using xda premium
    2
    can you please post info about bitrate of as full HD video? i never record in 720p :D
    Here it is...
    Modified 1080p results:
    Bit rate : 20.1 Mbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Variable
    Frame rate : 24.000 fps
    Minimum frame rate : 23.968 fps
    Maximum frame rate : 24.026 fps

    Stock 1080p results:
    Bit rate : 9 599 Kbps
    Width : 1 920 pixels
    Height : 1 080 pixels
    Display aspect ratio : 16:9
    Frame rate mode : Variable
    Frame rate : 24.000 fps
    Minimum frame rate : 13.902 fps
    Maximum frame rate : 24.026 fps


    I think it's time to experiment more with the variables in the OP and extend to some other ones.. I'd imagine a more steady framerate would be desirable. My zip file was just a stab in the dark at settings, but it appears just based on numbers that it should already be an improvement over stock (at the cost of space)