Higher Quality Video Recording


Last Updated:

  1. meekrab

    meekrab Well-Known Member This Topic's Starter

    Joined:
    Nov 2, 2009
    Messages:
    307
    Likes Received:
    9
    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 Well-Known Member

    Joined:
    Nov 7, 2009
    Messages:
    928
    Likes Received:
    10
    make a program to do this easier, i have windows 7, no adb!
     
  3. meekrab

    meekrab Well-Known Member This Topic's Starter

    Joined:
    Nov 2, 2009
    Messages:
    307
    Likes Received:
    9
    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 Well-Known Member

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

    Fabolous Superuser VIP Member

    Joined:
    Nov 7, 2009
    Messages:
    3,635
    Likes Received:
    2,126
    This is a bit off topic, but adb works fine with Windows 7.
     
  6. radikal

    radikal Well-Known Member

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

    Branndon Well-Known Member

    Joined:
    Nov 10, 2009
    Messages:
    481
    Likes Received:
    30
    Me and my brother both have win 7, and as of today, two freshly rooted droids :D adb works just fine.
     
  8. skarface08

    skarface08 Member

    Joined:
    Jan 15, 2010
    Messages:
    16
    Likes Received:
    0
    Can you do step by step directions, because i dont speak ure lingady!
     
  9. kbayer

    kbayer Well-Known Member

    Joined:
    Dec 5, 2009
    Messages:
    417
    Likes Received:
    32
    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 Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    1,393
    Likes Received:
    95
    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 Well-Known Member

    Joined:
    Dec 5, 2009
    Messages:
    417
    Likes Received:
    32
    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 Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    1,393
    Likes Received:
    95
    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 VIP Member

    Joined:
    Nov 8, 2009
    Messages:
    19,890
    Likes Received:
    6,118
    This hack, along with the HQ YouTube watching hack is included in the Bugless Beauty ROM FWIW.
    ** LINK REMOVED **
     
  14. meekrab

    meekrab Well-Known Member This Topic's Starter

    Joined:
    Nov 2, 2009
    Messages:
    307
    Likes Received:
    9
    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 Well-Known Member

    Joined:
    Jan 11, 2010
    Messages:
    65
    Likes Received:
    4
    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 Well-Known Member

    Joined:
    Nov 5, 2009
    Messages:
    300
    Likes Received:
    7
    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 Well-Known Member

    Joined:
    Nov 10, 2009
    Messages:
    481
    Likes Received:
    30
    I took video, I'll upload it to my FTP today.... gimme 10 minutes
     
  18. Branndon

    Branndon Well-Known Member

    Joined:
    Nov 10, 2009
    Messages:
    481
    Likes Received:
    30
    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 Well-Known Member

    Joined:
    Dec 5, 2009
    Messages:
    417
    Likes Received:
    32
    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 Well-Known Member

    Joined:
    Dec 23, 2009
    Messages:
    347
    Likes Received:
    2
    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 Well-Known Member

    Joined:
    Oct 29, 2009
    Messages:
    1,393
    Likes Received:
    95

    Try editing with Notepad++


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

    zandroid Well-Known Member

    Joined:
    Oct 2, 2009
    Messages:
    323
    Likes Received:
    3
    Any comparison videos available? I'd want to see that first....
     
  23. michaelearth

    michaelearth Well-Known Member

    Joined:
    Nov 5, 2009
    Messages:
    57
    Likes Received:
    3
    I second this!!
     
  24. wils0645

    wils0645 New Member

    Joined:
    Jan 29, 2010
    Messages:
    1
    Likes Received:
    0
    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 Well-Known Member

    Joined:
    Dec 11, 2009
    Messages:
    54
    Likes Received:
    3
    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...