Possible 720p camcorder fix for CyanogenMod. - Droid Incredible Android Development

Instead of trying to keep up on the two CM threads that are already going and talking about the exact same things I figured I would start up a new thread and see if this fixes anything.
--------------
I will admit... I don't know jack about programming... but I am good at messing with stuff and seeing if it works. I got a little bored tonight and noticed there was a new change to the MIUI ROM that adds 720p recording. So being Halloween... why not Frankenstein a little!
I grabbed the camera.apk from the MIUI ROM (its an AOSP ROM.. so it should work right? lolz). Copied it over to my clean install of CM6.1 RC2 and boom... no crashing recording using 720p.
I have recorded about 30 videos now that are anywhere from 2 seconds in length to 5 minutes... one after another... without a crash.
There are a couple options missing that CM has... but I think this would be a good start to resolving the issues.
Please keep in mind.... there are a couple things you will need to do.
1. Download the following APK. (see below)
2. Using root explorer... browse to /system/app and check the current permissions for the existing camera.apk. It should be rw-r--r--.
3. Copy the downloaded camera.apk and replace the one in /system/app.
4. Change the permissions of the new camera.apk to rw-r--r--.
5.Close root explorer and reboot your phone.
6. Open the camera app, switch to camcorder. Using the onscreen menu, change the quality setting from high to custom.
6. Now select the top option to change the video quality. Select 720p.
7. Profit.
If you don't know how to change permissions... or know how to copy apks... please.. please.. please don't do this. If you are comfortable with it... let me know if it keeps crashing.
I know it doesn't have all the fancy settings the CM camera does... but I think this may be a very good step forward. So far.. It hasn't crashed out on me.
If you are going to do this and record one video and say its fixed... please dont bother. We need REAL testing.
The camera.apk can be downloaded here....
http://www.mediafire.com/?q9y8zst9aeqlgc7
Thanks all... if this ends up not working... I blame the to much beer.
If it does... we may be on a good start to getting this fixed. Cheers.
Oh yea... if you are using the camcorder.. you can turn of the screen and it wont force close when you turn it back on. Win.

Here's an update.zip for it. Flash via recovery. Also added the original CM camera from the Incredible build. I'll post a few cameras for you guys to test.
Thanks goes to the OP for getting this in motion.

touchpro247 said:
Here's an update.zip for it. Flash via recovery.
Click to expand...
Click to collapse
Thank you... I'll admit it... I fail. lol. Just trying to be of some help getting this fixed.

I have tried the Nexus camera.apk in the past... it had the same issue.
It seems that the 720p issue exists on most if not all of the CM builds.
The only difference I see from face value is that CM camera builds have the crazy auto focus. If you are in a quiet place, listen to the camera itself. It physiclly moves inside the housing.
If you ever happen to hear the camcorder app FC, you can hear a little "click" right before it force closes. That is the camera lens moving.
It appears that the auto focus is messing everything up. Without autofocus (the MIUI camera.apk)... everything appears to work as it should.
As soon as you throw in the fancy auto focus stuff... it causes crashes.
Food for thought. I don't know a lot about it... but progress is progress.

Thank you for a zip version, Root explorer doesn't work on AOSP roms for me, is this common across the board?

mikeymop said:
Thank you for a zip version, Root explorer doesn't work on AOSP roms for me, is this common across the board?
Click to expand...
Click to collapse
Works for me. Are you sure you gave it root access in SU with the remember button ticked?
Also, good to see that somebody took the initiative. I had posted in the CM forum this afternoon that the MIUI Rom had functioning cam but nobody seemed to notice and I don't have much skills - glad to see camalus did - going to try this right away...
http://forum.xda-developers.com/showthread.php?p=8931211#post8931211

I swapped the MIUI camera with root explorer and recorded 10 videos in 720p. The camera didn't fc on me at all. The videos looked good and playbacked smoothly on my phone and computer. The camera at times would get hung up for a second or two but I'm not complaining at all. Got a working camera now!

I just found that if you turn the focus mode to off in the camera settings with the camera that comes with cm6, this also allows you to record in 720p with no force closes. Funny its such an easy fix. As long as auto focus doesn't mean the world to you.

I have suspected for a while that the auto focus was causing issues.
I just loaded the patch on the newest nightly... no fc either.
I sent a message to koush on twitter. Hoping his intelligence can pinpoint this in more depth.
Here's to hoping!
Sent from my ADR6300 using XDA App

Anyone else testing this? Could use more help here.
Sent from my ADR6300 using XDA App

camalus said:
Anyone else testing this? Could use more help here.
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Works perfectly for me. Taken 4 test videos in quick succession, no issues whatsoever.
Did not realize this was even an open issue. I believed this was already in the CM6.1 chain for inclusion in RC3 or whatever.

Ok. Just wanted to report my findings after flashing the zip file. The only settings I change in the camera was quality to custom in order to get the 720 resolution enabled.
Video #1: 1 min, 22 sec
I stopped recording of first video and without closing the camera app I started a 2nd video,
Video #2: Started recording and the camera freezed (FC would have been better) after 22 seconds. Had to pull out the battery to restart the phone.
In summary, is still not fixed. I'll revert back to the original Camera.apk.

Androidnite said:
Ok. Just wanted to report my findings after flashing the zip file. The only settings I change in the camera was quality to custom in order to get the 720 resolution enabled.
Video #1: 1 min, 22 sec
I stopped recording of first video and without closing the camera app I started a 2nd video,
Video #2: Started recording and the camera freezed (FC would have been better) after 22 seconds. Had to pull out the battery to restart the phone.
In summary, is still not fixed. I'll revert back to the original Camera.apk.
Click to expand...
Click to collapse
What version of CM are you running? What kernel? Did you do a full wipe before trying this?

camalus said:
What version of CM are you running? What kernel? Did you do a full wipe before trying this?
Click to expand...
Click to collapse
I did not flash the zip file and instead did it manually and it works for me.
Sent from my ADR6300 using XDA App

camalus said:
What version of CM are you running? What kernel? Did you do a full wipe before trying this?
Click to expand...
Click to collapse
I had a clean install:
1) wipe data/cache/dalvik
2) Install CM6.1 RC2
3) Install gapps
4) Wipe dalvik
5) Flash Adrynalyne's kernel: I have SLCD and the stock kernel does not work for me
6) Reboot until the homescreen
7) Go to recovery and flash camery fix
8) Reboot to homescreen and try camera

Which camera did you install the MIUI or CM6?
Sent from your mom's phone

masully1984 said:
Which camera did you install the MIUI or CM6?
Sent from your mom's phone
Click to expand...
Click to collapse
The CM6 one

Androidnite said:
The CM6 one
Click to expand...
Click to collapse
The MIUI camera has the fix, not the CM one.

Fretless said:
The MIUI camera has the fix, not the CM one.
Click to expand...
Click to collapse
LOL!!!! So why they posted a separate CM6 one? Are you saying you were able to use the MIUI one with CM6?

Androidnite said:
LOL!!!! So why they posted a separate CM6 one? Are you saying you were able to use the MIUI one with CM6?
Click to expand...
Click to collapse
Yes. The MIUI adds the 720p non-fc functionality, or at least it has so far.

Related

HTCCamera on Cyanogen 6 (Aug 30 release)?

I tried doing it the dirty way - first upgrading from the HTCCamera.apk, which didn't work... then I tried just replacing the original system/app/camera.apk to the new, htc camera.apk. That didn't work either...
I noticed that Cyan's changelog says that it's now supported.. So is there a way to install it on the Cyan's latest release?
On a related note, they say that 720p video recording is supported, so I hope this ROM just needs a camera app that supports it.
I tried it in TheOfficial ROM - worked great, I loved it. Hopefully same can be done on Cyan's.
Anyway to get that working?
Cyanogen already has 720p video recording support. What's this HTCCamera? Is it a camera app that's supposed to be better than the original camera app?
espeanage said:
Cyanogen already has 720p video recording support. What's this HTCCamera? Is it a camera app that's supposed to be better than the original camera app?
Click to expand...
Click to collapse
Yeah, HTCCamera is a really sweet camera app with very cool controls and looks. Just very convenient and pretty looking.
Regarding the 720p support in Cyan - is it the "Custom" setting? I see High, Low, MMS, YouTube and Custom in video quality.
on the options bar, press on the first icon, the circle one which will give u "color effect" scroll down. should be on by default anyways
Zephyron said:
on the options bar, press on the first icon, the circle one which will give u "color effect" scroll down. should be on by default anyways
Click to expand...
Click to collapse
Aha, found it, thanks!
Now if only there was a way to also use the htccamera app on cyan.. that app is awesome.
+1 desperately wanting that htc cam
It isn't as simple as just putting the HTCCamera.apk... you need the supporting HTC framework jar and resources APK (which BTW, are present in enomther's ROM). And you need a modified init.rc which loads these in the classpath (and this involves a modified boot.img). If I get the time, I'll try to whip up a modified CM kernel to do this...
craigacgomez said:
It isn't as simple as just putting the HTCCamera.apk... you need the supporting HTC framework jar and resources APK (which BTW, are present in enomther's ROM). And you need a modified init.rc which loads these in the classpath (and this involves a modified boot.img). If I get the time, I'll try to whip up a modified CM kernel to do this...
Click to expand...
Click to collapse
that would be badass
yes that would be really appreciated!
Progress update... did a quick boot.img and tried it out... but camera FC'd... some error trying to pull up the camera settings... didn't have time to investigate... will try when I have more free time @ the weekend...
craigacgomez said:
Progress update... did a quick boot.img and tried it out... but camera FC'd... some error trying to pull up the camera settings... didn't have time to investigate... will try when I have more free time @ the weekend...
Click to expand...
Click to collapse
Thanks for updating us..
Yeah I'm thinking that TheOfficial ROM has desire camera and all the stuff for it. Maybe we can contact him and ask to share the goods, or just rip it from there. I'm sure he won't mind, since it's HTC's camera anyway..

[FIX] Possible fix for CM 6.1 Camera FC issues-MERGED 20101122

The fix below has been merged into the nightlies!! expect to see it on the 23rd.
If you're impatient, you can install a compiled version of the apk from recovery...
---------------
The camera issue is for ALL of cyanogenmod, not just us dinc users.
I've grabbed some of the patches that are being worked on and put some of my own work into it.
Please let me know what you find.
For me, it crashes almost every single time if I use continuous focus, but it's fine with infinity.
Screen off and on works without FC, but the camera is hard coded to not allow recording with screen off.
1. Backup
2. Flash aosp-camera-fix-v1.0.zip
3. reboot..
flashed
Just flashed, off to a meeting but will report back shortly. I would love to be able to shoot video in 720.
in to see the responses
no issues
No FC in continuous or infinity mode. Shot about 10 minutes of video in both. Screen off then on kills recording. Still no 720p recording mode though (not that this was supposed to fix that, I was just hoping).
Recap: No camera/video FC in either mode (continuous or infinity)
Thanks for this
...
To get 720 p.. Make sure quality is set to custom and file type is mpeg4, then it should show up in the settings.
Someone alert camalus!
I will be flashing this after work today! Thank you!!!
Sent from your mom's phone
jimmypopulous said:
Someone alert camalus!
Click to expand...
Click to collapse
Its Christmas!
Weeeeeeeeeeeee! LED and camera fix in the Same day!
Sent from my ADR6300 using XDA App
That does it. Thanks again.
seanzer said:
To get 720 p.. Make sure quality is set to custom and file type is mpeg4, then it should show up in the settings.
Click to expand...
Click to collapse
Sent from my ADR6300 using XDA App
camalus said:
Its Christmas!
Weeeeeeeeeeeee! LED and camera fix in the Same day!
Sent from my ADR6300 using XDA App
Click to expand...
Click to collapse
Indeed. well done seanzer, well done!
rom manager now shows build #157 (11-23) does this include both the cam and led fix?
radiohead14 said:
rom manager now shows build #157 (11-23) does this include both the cam and led fix?
Click to expand...
Click to collapse
Maybe cam fix, definitely not led fix tho.. hasn't been approved.
hi seanzer. on cm nightly build #161 - issue: when on videocam, and i turn off the screen (recording or not), when you unlock, the videocam becomes almost half the size of the screen (with the preview screen almost a quarter the size, and is now on the lower left), and it's unresponsive.
radiohead14 said:
hi seanzer. on cm nightly build #161 - issue: when on videocam, and i turn off the screen (recording or not), when you unlock, the videocam becomes almost half the size of the screen (with the preview screen almost a quarter the size, and is now on the lower left), and it's unresponsive.
Click to expand...
Click to collapse
Same thing happened on my friends moto Droid 1.. i think the latest commit to the camera broke it. Try a nightly before the 24th... which only contains my camera fix. I haven't had time to test the latest nightly yet, but I will have to investigate more what happened..
seanzer said:
Same thing happened on my friends moto Droid 1.. i think the latest commit to the camera broke it. Try a nightly before the 24th... which only contains my camera fix. I haven't had time to test the latest nightly yet, but I will have to investigate more what happened..
Click to expand...
Click to collapse
thanks man. i just installed build #159 and cam is back to normal again.
on a different note: how come the vanilla cam doesn't support 8mp wide like the htc sense cam?
radiohead14 said:
how come the vanilla cam doesn't support 8mp wide like the htc sense cam?
Click to expand...
Click to collapse
anyone know? is this the same with all aosp roms?.. the camera just isn't as good as the htc cam.
Fixed my Nexus One
Installed on CM 6.1 on a Nexus One, fixed the camera for photos, haven't tested the videos.
Symptoms: Camera keeps crashing after a few shots. Force Close the application and if I tried to run it I only got a blackscreen until the Force Close window appeared.
It also rebooted my phone one 2 occasions.
Installed using Rom Manager:
Install from SD
Selected .zip
Backup Rom (Yes)
Wipe (NO!!!)
Everything went smooth.
Now I'm taking pictures, modifying settings, Touch Focus, everything seems to work.
Took 20 pictures in a row and fast.
Thanks for the fix
I had high expectations on this one, I tried it but I still get FC on the camera.
I have a Magic and I am running the CM 6.1 Rom
radiohead14 said:
anyone know? is this the same with all aosp roms?.. the camera just isn't as good as the htc cam.
Click to expand...
Click to collapse
If you look at the resolution of the 8mp wide setting on the stock sense camera, it's not actually 8mp. It's really the same as 6mp wide on the CM camera.
Sent from my ADR6300

Samsung Vibrant Camera Firmware Update, Direct From Samsung...

I don't think I've actually seen this floating around anywhere, so I figured I'd share. Its the Camera Firmware updater from Samsung. I've had mixed results with its use on different firmwares. My only issue being FCing on an older Bionix build, as well as a few older Voodoo builds. I've had little to no problems with more recent voodoo builds, just used it on Trigger 2.9.2 with no problems, I've even used it on a phone running Gingerbread without issue. Yes I play with allot of phones...
http://www.multiupload.com/3JX5GPV9W6
Downloading now.. will test on stock and modded FFC version and report back.
Said I had the lastest version and then automatically gave me the option to uninstall
anything noticeably different on this over the standard stock FW?
I have an FFC so I doubt it's worth my time to test if there's no FFC support...
Does anyone know what this firmware is supposed to update?
pvspencer22 said:
Does anyone know what this firmware is supposed to update?
Click to expand...
Click to collapse
no idea however if you go into settings on the camera app, then go to firmware, then click on the second option firmware update
its downloadin and updating now on my phone i can report back later
I do not see any appreciable difference. granted i do not have an ffc so i cant comment on that. If you arent having any problems with your camera id say leave it alone.
Got this from Samsung apps. Nothing at all noticeable. Switched to captivate camera apk
Sent from my GT-I9000 using XDA App
Yea, no difference here either... or at least that I notice.
can you guys try the video recorder and see if it has the focus mode.
Sent from my SGH-T959 using XDA App
Anyone with a FFC (2nd gen) comment on this?
I've just installed it and tested it with the ffc (1st gen). There is not much different in my opinion. There seems to be a little less banding in low light condition and that's about it. 720p recording works well. I will test it with the 2nd gen camera tonight when I get home.
anthonys2r said:
Anyone with a FFC (2nd gen) comment on this?
Click to expand...
Click to collapse
Not chenge it all
Runing Toxicity_V2
wait maybe less yellow on the center of the screen on low light.
Spaming
I have tested the new firmware on FFC v2. Its having different issues with the camera. When I record on 720p I get a white screen. Its recording but I see nothing. Once I stop it crashes. I than go to gallery and my recording its there @ 720p or at least it seems that way.
I have been testing with different camera.apk files... some be have differently than others. All for the worst I am afraid so
wtf.now? said:
I have tested the new firmware on FFC v2. Its having different issues with the camera. When I record on 720p I get a white screen. Its recording but I see nothing. Once I stop it crashes. I than go to gallery and my recording its there @ 720p or at least it seems that way.
Click to expand...
Click to collapse
My camera is working without problem, Did u push or install the file?
solaresdonis said:
My camera is working without problem, Did u push or install the file?
Click to expand...
Click to collapse
I install the file.
Using Bionix-V 1.3.1
When I open the file it tells me I am running the latest firmware.
It didnt do anything for me.
Edit:
Which camera apk are you using?
Edit Again: Now it just reboots in 720p
Another Edit wtf!: lol ok If I set the permissions on the filr to -r- only the file crashes. If I set them to rwx-rwx- it gives me the white screen while it records.
Any ideas?
wtf.now? said:
I install the file.
Using Bionix-V 1.3.1
When I open the file it tells me I am running the latest firmware.
It didnt do anything for me.
Edit:
Which camera apk are you using?
Click to expand...
Click to collapse
I'm using 2.2.1 toxicity_V2 how can i check which camera apk is it?
Can you get the camera.apk file and upload it some where? And lets take it via PM I dont want to be tagged as spammer. This forum is some what very wacked.
wtf.now? said:
Can you get the camera.apk file and upload it some where? And lets take it via PM I dont want to be tagged as spammer. This forum is some what very wacked.
Click to expand...
Click to collapse
Ready check your PMs
I got my update right now through the camera app and it takes about a few minutes to update. Required for me to reboot. Really don't notice a difference but the annoying message of you need to update do you want to continue is gone now.

[Q] Camera app

So after having gone through 5 different camera apps that won't use the front facing camera and also switch to video mode, it's getting frustrating install and uninstalling.
The stock camera works but is sloooooow.
What camera apps have y'all installled from the market that you like and works well with the FFC and switching to video mode?
Flash this (my custom one thx to |ErosizeD| ) let me know is this work for you. it work on my thrill pretty fast.
Flashable Zip through CWM
shouldnt have any issues.. but plz backup
What does this mod do?
Sent from my LG Thrill 3D using XDA Premium
What does this mod do?
Click to expand...
Click to collapse
it will make the camera resolution clear and fast
Thanks! Just flashed it.
So much better. Takes about a second and a half to 2 seconds from first tapping the icon for it to be ready to take pics. Then somewhere between a second and two seconds to take the pic.
That's a huge improvement and takes away my need for another camera app.
Thanks given!
I tried it out, went from a 5 second launch to a 3 second launch. So any improvement is welcome.
"Ask not what your Thrill can do for you, but what awesome things can you do with your Thrill!"
Everything on this I thought was great until I went to look at my gallery. The resolution is way whacked out on viewing photos/icons/etc in my gallery.
How do I undo the mod? Do I just delete the apk?
The more I think about this, the more it irks me. Do they not have a QA person that checks things? I mean, c'mon, 5+ more seconds to start up and then the terrible delay on snapping pics. Well, unless your idea of a good camera is it takes long enough so you can make a pot of coffee and drink a couple cups.
Everything on this I thought was great until I went to look at my gallery. The resolution is way whacked out on viewing photos/icons/etc in my gallery.
Click to expand...
Click to collapse
I don't have problem but you can always undo it
copy zip file file to your SDcard unzip it using root explorer copy mediaprofile.xml and TicameraCameraProperties.xml
to your etc folder using root explorer and restart the phone
that will undo it
I can confirm that this mod doesn't work on gingerbread
wait is the resolution problem recurring? Or was it just for that guy.

[Q] Camera working in ICS CM9 nightly build

I have installed 27th April CM9 Nightly build on my SGT P1000 and somehow, the camera is working perfectly fine. I am unable to find settings for the camera, but it's working perfect. The gallery is showing all the images that I have captured.
The reason of writing this post is that all other posts claim that the camera is not yet working for ICS port on SGT-P1000. I first installed Overcome 4.1.0 with the kernel, and then flashed the CM9.
The question is, how is it working, and is it normal to work?
If it is normal to work, can someone point me in the direction where i can follow the updates?
Links
I used this get.cm link for downloading the CWM flashable CM9 nightly build ROM. Just want all to know that EVERYTHING seems to be perfect. I flashed the ROM yesterday, and till now, everything works.
Wifi
Bluetooth
Video Recording
Camera
Music playback
video playback
GPS
Video calling (through skype etc.)
Front/Rear Cam
Smooth Screen Rotation
Live Wallpapers
Phone
Contacts
SD Mount
Market
Browser is smooth as ever, tabbed and can be linked with chrome
Just want to know if anyone else has flashed this, and if anyone else has cam working.
I remember someone came up with a fix for the camera in the form of a flashable zip a while back so I imagine it's been included in the latest CM9 builds.
Well, I am still waiting for people to comment on it. I haven't found any comments. Is there a thread following the nightly CM9 build for p1000?
It has been working fine for many weeks.
This is the discussion thread
http://forum.xda-developers.com/showthread.php?t=1495007
Sent from my GT-P1000 using XDA
Thanks Priyana, just a little problem, i posted in a new question thread aswell.
Unfortunately, camera closed. This error I am getting frequently. Not always, but frequently. I have no idea what is causing the app to run sometimes, but close at other times.
I am on aokp milestone 5.
I also have camera fc from time to time.
Sent from my GT-P1000 using XDA
Little manual fix i have. Put the cam to 2.5 MP and when your'e clicking a pic, dont press and hold the blue button. Just push and let go. The pic will snap, and the frequency of cam gone FC will reduce by 90%. I think there is a problem with the autofocus which causes the cam to go bonkers. Do try it and share...
obahmood said:
Little manual fix i have. Put the cam to 2.5 MP and when your'e clicking a pic, dont press and hold the blue button. Just push and let go. The pic will snap, and the frequency of cam gone FC will reduce by 90%. I think there is a problem with the autofocus which causes the cam to go bonkers. Do try it and share...
Click to expand...
Click to collapse
not working bro . .is there any update to fix this?

Categories

Resources