[MOD][CAM] [email protected]@20mbps + auto-focus on CM7

303 posts
Thanks Meter: 336
 
By LeJay, Senior Member on 24th May 2011, 07:02 PM
Post Reply Email Thread
EDIT: [email protected] has been added to nightly and bitrate has been set to 12mbps which is not that bad. Its hence not recommended to flash these anymore. If you want higher bitrate look in the thread for those. I think it was pastime who made them. Alternatively use root explorer to manually edit /etc/mediaprofiles.XML. again, read pastimes and related posts in the thread on that.






This will replace the Camera.apk from CM7 with a more tegra2 friendly version that enables [email protected] recording. There's also included an updated media_profiles.xml file that'll enable different bitrates. Choose wisely . To test the bitrate I recommend having it running for at a minute to make sure everything can keep up. Usually it starts out smooth and then starts stuttering as the ram gets filled up. I also upped the quality for still.

Videos (I'll add experimental stuff as well, such as ultra high bitrates and auto focus):
http://www.youtube.com/user/O2XdevVids

I would stay away with 64mb ram hacks for the time being. Maybe we can find some middle ground in the future .

Anyway, please give me feedback on how it works. Some beautiful videos would be nice. Weather is really depressing here.

Please don't use this for non-tegra 2 devices.

Also, I'm experimenting a lot. Expect a lot to be buggy. I do my best not to put something out that doesn't work, but a couple of runs is really the extend of my testing before it goes up (to be honest). The autofocus-mod is seriously buggy. The bitrate-mod should be pretty much as buggy as the std. cm7 Camera app.
And, of course, thx to all the great ppl who works on cm.
------------------------------------------------------------
Source code (just the 1080p mod):
https://github.com/LeJay/Camera
The Following 34 Users Say Thank You to LeJay For This Useful Post: [ View ] Gift LeJay Ad-Free
24th May 2011, 07:02 PM |#2  
OP Senior Member
Thanks Meter: 336
 
More
Versions & Changelog & TODO
--------------Autofocus1.1----------------- (Note this is horribly buggy)
Just adds auto focus (and 25/30fps if you're on nightly), no change to bitrate. Flash this AFTER you do the bitrate mods. Flashing with any of the bitrate mods will replace the Camera app and you'll lose autofocus.
----------------------------------------------

--------------FullHDmod 1.0---------------
->Video:
HD: [email protected]@20mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_high 1.0---------- (works for some, requires fast sd card)
->Video:
HD: [email protected]@26mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_mid 1.0---------- (Recommended)
->Video:
HD: [email protected]@17mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_low 1.0----------
->Video:
HD: [email protected]@14mbps
High: [email protected]@12mbps
----------------------------------------------
--------------FullHDmod_LG 1.0---------- (It's the settings used as stock LG... except for 1080p being 30fps)
->Video:
HD: [email protected]@9mbps
High: [email protected]@4mbps
----------------------------------------------
----------BitrateMod(720p only)---------- (Does not replace Camera.apk. Works for 64mb ram hack, until we find other solution)
->Video:
HD: [email protected]@20mbps
High: [email protected]@10mbps
----------------------------------------------
All audio is 128 kbps and all stills are:
Super fine: 100
Fine: 90
Normal: 80

--------------------------------CHANGELOG----------------------------------------
1.0 Initial release.
---- Small bugfix of CM7s camera app + tegra 2 specific stuff.

1.1-pre-alpha
---- Enables autofocus prior to video capture. Cannot be turned off(I don't do UIs,lol). Need to restart app for each video.

Autofocus 1.1
---- No need to restart app.
Known issues:
Does no longer auto adjust for exposure while recording. In between recordings it will auto adjust again. (I have no idea why).
Cannot disable autofocus (have no idea how to do UI).
Rather buggy, lots of freezes. For best results, don't push it. Ie. don't start and stop recordings rapidly, stuff like that.
Don't switch quickly to video when opening app... I think that might be a cm7 issue.
---------------------------------------TODO----------------------------------------
Touch to focus.
continuous auto-focus.
The Following 12 Users Say Thank You to LeJay For This Useful Post: [ View ] Gift LeJay Ad-Free
24th May 2011, 07:18 PM |#3  
OP Senior Member
Thanks Meter: 336
 
More
FAQ
Q: Does this work for non-CM7 ROMS?
A: Probably not. Certainly not froyo. But feel free to try and let me know. On stock rom-based builds, please look at somemadcaaant's awesome work at http://forum.xda-developers.com/show....php?t=1090785.

Q: T-Mobile LG G2x support?
A: Yes.

Q: What are the disadvantages?
A: Larger filesize. Takes longer to save (give it time to save before doing anything else with the phone). Potential issues with playback on phone.

Q: Does this work with 64 mb ram hack?
A: No. You can still use a high bitrate 720p mod for that kernel, though.

Q: It stutters after a few secs of recording or freezes once in a while, why is this?
A: Your phone/sdcard is having issues trying to keep up. Try a lower bitrate mod. If there is no lower, ask for one. I'm experimenting a little myself, trying to find a stable bitrate.

Q: If I open the Camera app and very quickly change to video I get a black screen?
A: Don't do that. I get the same bug on std. cm7 Camera app.

Q: Isn't it overkill with an FAQ for a camera mod?
A: Yes. But people kept asking the same questions last time I made a thread.
The Following 6 Users Say Thank You to LeJay For This Useful Post: [ View ] Gift LeJay Ad-Free
24th May 2011, 07:34 PM |#4  
asci's Avatar
Senior Member
Flag Troia
Thanks Meter: 13
 
More
THX so much I will test it and report.
24th May 2011, 07:54 PM |#5  
Senior Member
Thanks Meter: 44
 
More
i would also add "touch to re-focus during video capture"(like in htc's) to the to-do list
24th May 2011, 08:06 PM |#6  
OP Senior Member
Thanks Meter: 336
 
More
Tegra 2 is some impressive hardware.... bitrate goes up crazy high. I'll add some different versions, but do people have any thoughts on what kind of bit rates they'd like to see?

Damn, I think maybe my sdcard cant keep up with the ultra high bit rates I'm testing. Starts stuttering after 10 sec. Maybe someone out there with a class 10 card?
24th May 2011, 08:31 PM |#7  
Senior Member
Thanks Meter: 14
 
More
When switching on video mode, i get a black screen and FC afterwards.
24th May 2011, 08:34 PM |#8  
OP Senior Member
Thanks Meter: 336
 
More
Quote:
Originally Posted by ranrick

When switching on video mode, i get a black screen and FC afterwards.

I purposely made my tweaks so code is first running when you actually start recording... If it's a new problem it's because of the settings file.
Tried restarting the app?
24th May 2011, 08:36 PM |#9  
Senior Member
Thanks Meter: 6
 
More
Work great for me on Kang today buid !
The Following User Says Thank You to gregman26 For This Useful Post: [ View ] Gift gregman26 Ad-Free
24th May 2011, 08:36 PM |#10  
OP Senior Member
Thanks Meter: 336
 
More
Quote:
Originally Posted by gregman26

Work great for me on Kang today buid !

Great news.
24th May 2011, 08:39 PM |#11  
Senior Member
Thanks Meter: 14
 
More
Quote:
Originally Posted by LeJay

I purposely made my tweaks so code is first running when you actually start recording... If it's a new problem it's because of the settings file.
Tried restarting the app?

I reinstalled. Thereafter i was able to start it. But Recording doesn't work so far.It starts at 720P but when ending the recodring, I get a FC. 1080p keeps black screen and no FC and no recording. Maybe because of the 64MB RAM hack in the vorkKernal.
Post Reply Subscribe to Thread

Tags
development

Guest Quick Reply (no urls or BBcode)
Message:
Previous Thread Next Thread
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes