1. Download our Official Android App: Forums for Android!

Higher Quality Video Recording

Discussion in 'Android Devices' started by meekrab, Jan 27, 2010.

  1. meekrab

    meekrab Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    307
    Joined:
    Nov 2, 2009

    Nov 2, 2009
    307
    9
    36
    biochemist
    RTP
    I did not see any other open threads on this; there is a very simple system edit you can perform to record video @ 8 mbps, up from the default 3 mbps. This is from a reliable source. Works very well. Root access is required and, of course, be sure to backup everything before you try anything.

    The Droid compresses recorded videos (which results in blurriness and some blocking), so today I started poking around the system files and found this line in build.prop:

    [​IMG][​IMG][​IMG][​IMG]Code:
    ro.media.enc.hprof.vid.bps=3000000
    [​IMG][​IMG][​IMG][​IMG]


    Which basically means video is compressed at a fixed rate of 3Mbps. I didn't think it would work, but I went ahead and changed the value to 8Mbps:

    [​IMG][​IMG][​IMG][​IMG]Code:
    ro.media.enc.hprof.vid.bps=8000000
    [​IMG][​IMG][​IMG][​IMG]


    Rebooted and shot a test video. Lo and behold, the video is now recorded at 8mbps, resulting in a MUCH crisper image! [​IMG]

    To apply the fix, you need root access. Simply edit that line in your /system/build.prop file. You can pull the file from adb, edit it, and push it back, or mount the /system partition as read-write and edit the file with Astro.

    Edit: For the more adventurous users, here's another tip: I've been tinkering with the rest of the video settings in build.prop and comparing the resulting videos. So far, the best setting I have found is actually using MPEG-4 SP instead of H.264, 8 Mbps bitrate, and 30 frames per second. The phone chokes at 30 fps in H.264 mode, but does a pretty good job with MPEG-4 SP, and at that bitrate, the image quality is still very good regardless of the codec. The pertinent settings are "ro.media.enc.hprof.codec.vid" for the codec ("h264" for H.264 and "m4v" for MPEG-4 SP) and "ro.media.enc.hprof.vid.fps" (you can choose anything from 1 to 30)
     

    Advertisement

  2. radikal

    radikal Android Expert
    Rank:
    None
    Points:
    63
    Posts:
    928
    Joined:
    Nov 7, 2009

    Nov 7, 2009
    928
    10
    63
    make a program to do this easier, i have windows 7, no adb!
     
  3. meekrab

    meekrab Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    307
    Joined:
    Nov 2, 2009

    Nov 2, 2009
    307
    9
    36
    biochemist
    RTP
    You can do this from the phone, if you know how to mount the system path as read/write, you can edit the file with astro in a snap. This is how I did it, worked well.
     
  4. radikal

    radikal Android Expert
    Rank:
    None
    Points:
    63
    Posts:
    928
    Joined:
    Nov 7, 2009

    Nov 7, 2009
    928
    10
    63
    ah i see! hmmm, well thats pretty sweet! good stuff! i guess root explorer could be used too!
     
  5. Fabolous

    Fabolous Superuser
    Rank:
    None
    Points:
    313
    Posts:
    3,635
    Joined:
    Nov 7, 2009

    Nov 7, 2009
    3,635
    2,126
    313
    Multi-platinum Rapper
    Illinois
    This is a bit off topic, but adb works fine with Windows 7.
     
  6. radikal

    radikal Android Expert
    Rank:
    None
    Points:
    63
    Posts:
    928
    Joined:
    Nov 7, 2009

    Nov 7, 2009
    928
    10
    63
    er... ok! well maybe i do not understand it... i know i can't get some programs with win7!
     
  7. Branndon

    Branndon Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    481
    Joined:
    Nov 10, 2009

    Nov 10, 2009
    481
    30
    43
    Website Developer
    Orange County, CA
    Me and my brother both have win 7, and as of today, two freshly rooted droids :D adb works just fine.
     
  8. skarface08

    skarface08 Newbie
    Rank:
    None
    Points:
    15
    Posts:
    16
    Joined:
    Jan 15, 2010

    Jan 15, 2010
    16
    0
    15
    millionaire
    wonderland
    Can you do step by step directions, because i dont speak ure lingady!
     
  9. kbayer

    kbayer Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    417
    Joined:
    Dec 5, 2009

    Dec 5, 2009
    417
    32
    43
    Houston, Tx
    I'll bet the Droid has the same "innards" as the new Motorola Motoroi coming out soon for Tmobile. EXACT specs and processor as Droid, but shoots HD video.


    Meekrab, could you post a sample clip of the upgraded recording ability??
     
  10. Fadelight

    Fadelight Android Expert
    Rank:
    None
    Points:
    148
    Posts:
    1,395
    Joined:
    Oct 29, 2009

    Oct 29, 2009
    1,395
    95
    148
    Security
    Mulberry, FL
    Wow, every day is another christmas around here lately. :D Maybe tomorrow santa will bring me a how-to on getting the LED to work with the camcorder.
     
  11. kbayer

    kbayer Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    417
    Joined:
    Dec 5, 2009

    Dec 5, 2009
    417
    32
    43
    Houston, Tx
    Definately!!!!!!!!!

    Droid is not a "what you see is what you get" phone.

    Droid is "what you see is just the beginning" phone!!!!

    Merry Christmas, again! :p

    Can't wait to see what Santa brings tomorrow!
     
  12. Fadelight

    Fadelight Android Expert
    Rank:
    None
    Points:
    148
    Posts:
    1,395
    Joined:
    Oct 29, 2009

    Oct 29, 2009
    1,395
    95
    148
    Security
    Mulberry, FL
    Yeah, I think that is the whole point of open source-based anything. It gives developers and brave explorers plenty of room to see what really is possible. I've seen a lot of people come up with ideas that weren't thought of by designers at the factories and wherever.
     
  13. breadnatty08

    breadnatty08 pain rustique
    Rank:
     #18
    Points:
    1,413
    Posts:
    19,891
    Joined:
    Nov 8, 2009

    Nov 8, 2009
    19,891
    6,120
    1,413
    District of Columbia
    This hack, along with the HQ YouTube watching hack is included in the Bugless Beauty ROM FWIW.
    ** LINK REMOVED **
     
  14. meekrab

    meekrab Android Enthusiast
    Thread Starter
    Rank:
    None
    Points:
    36
    Posts:
    307
    Joined:
    Nov 2, 2009

    Nov 2, 2009
    307
    9
    36
    biochemist
    RTP
    I'll get a sample video posted after work when I get some time.

    Thanks, good to know. I'm happy with my current rom but I'm sure this is a favorable alternative for some.

    It's remarkable how so much cooperative imagination has been unleashed on this device, and android in general. I wish I could contribute more myself, but I'm thrilled to be able to reap the benefits of using such a platform.
     
  15. huytung

    huytung Member
    Rank:
    None
    Points:
    16
    Posts:
    65
    Joined:
    Jan 11, 2010

    Jan 11, 2010
    65
    4
    16
    if you are able to change the video recording quality, i'm assuming you able to change image capturing quality as well?
     
  16. icstars989

    icstars989 Android Enthusiast
    Rank:
    None
    Points:
    36
    Posts:
    300
    Joined:
    Nov 5, 2009

    Are you sure, I know it says that, but I checked my build.prop with 8.3 and it only showed 5Mbps. I easily changed it back to 8 though, I just found it odd that he would settle on 5Mbps for some reason.
     
  17. Branndon

    Branndon Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    481
    Joined:
    Nov 10, 2009

    Nov 10, 2009
    481
    30
    43
    Website Developer
    Orange County, CA
    I took video, I'll upload it to my FTP today.... gimme 10 minutes
     
  18. Branndon

    Branndon Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    481
    Joined:
    Nov 10, 2009

    Nov 10, 2009
    481
    30
    43
    Website Developer
    Orange County, CA
    Well here is the video right click save as it's 34megs for 40 seconds. Compare that to 1 meg for 40 seconds of video at the standard resolution! It doens't look ALL that great, but let's wait for others to reply with their samples.
     
  19. kbayer

    kbayer Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    417
    Joined:
    Dec 5, 2009

    Dec 5, 2009
    417
    32
    43
    Houston, Tx
    I can't play it at work, but will when I get home... in your eyes, is it still better than the original settings? Thanks for posting it!
     
  20. DroidJnkie

    DroidJnkie Android Enthusiast
    Rank:
    None
    Points:
    36
    Posts:
    347
    Joined:
    Dec 23, 2009

    I don't get how you're able to edit the settings. I'm mounting as R/W in Root Explorer, long-pressing the file, and I open it up in text mode, but I can't edit.

    How are you getting into the edit mode??
     
  21. Fadelight

    Fadelight Android Expert
    Rank:
    None
    Points:
    148
    Posts:
    1,395
    Joined:
    Oct 29, 2009

    Oct 29, 2009
    1,395
    95
    148
    Security
    Mulberry, FL

    Try editing with Notepad++


    .:: NOTEPAD++ ::.
     
  22. zandroid

    zandroid Android Enthusiast
    Rank:
    None
    Points:
    36
    Posts:
    323
    Joined:
    Oct 2, 2009

    Oct 2, 2009
    323
    3
    36
    Student
    Los Angeles
    Any comparison videos available? I'd want to see that first....
     
  23. michaelearth

    michaelearth Member
    Rank:
    None
    Points:
    16
    Posts:
    57
    Joined:
    Nov 5, 2009

    Nov 5, 2009
    57
    3
    16
    I second this!!
     
  24. wils0645

    wils0645 Lurker
    Rank:
    None
    Points:
    5
    Posts:
    1
    Joined:
    Jan 29, 2010

    Jan 29, 2010
    1
    0
    5
    Can anyone further explain how to modify the file in adb (code step by step)? That would be very helpful, thanks! My phone is rooted.
     
  25. Nissan1973

    Nissan1973 Member
    Rank:
     #1,233
    Points:
    16
    Posts:
    54
    Joined:
    Dec 11, 2009

    Dec 11, 2009
    54
    3
    16
    I installed Root Explorer to change the permission on the build file, then use Astro to changed it to 8mbps and when I click stop recording is crashes the Camera app then crash the Gallery and then I have to reboot. So im guessing that way dosnt work right, or is it just me?
     

Share This Page

Loading...