BEFORE YOU READ ANY FURTHER, THIS MOD/PORT (WHATEVER) WILL PROPABLY ONLY WORK ON RED LENSED DEFYS! SORRY BUT IT SEEMS TO BE A HARDWARE THING! AND THERE ALSO MIGHT BE THE SLIGHT POSSIBILITY THAT IT IS LIMITED TO 3.4.2_145-003 VERSION ONLY! (AT LEAST THIS IS THE VERSION HANCOCKS ROM IS BASED ON AND THE SAME I TESTED IT WITH)
to make it short, i (kind of) ported the 720p recording capability of hankocks rom 1.11 to pays rom 3.3 (based on 3.4.2_145-003).
first of all, I AM NO DEVELOPER! so all props go to hankock! what i did was the following:
i took all the libs from hancocks rom which had something to do with camera & encoding (as you can see, not a very devlike procedure) and put them into my system/libs. then i took media_profiles.xml from hancocks rom and put it to my system/etc (of course i changed back permissions afterwards). first i used hancocks patched stock camera app and merged my and his build.prop so that the whole thing would run on my rom. and it worked perfectly. but this solution has 2 drawbacks:
1. hancock used 3gpp container, which is imho inferior to mp4
2. the audio encoding is very bad (amr_nb, 8kbps)
then i found out, that if i used lgcamera instead i would't need to change build.prop anymore and it still worked fine. besides of that, lgcamera is much more customizable settingwise. and by not modifying build.prop, i hope to enhance compatibility of this mod to other froyo versions.
and that is what my package contains:
-all libs with "enc", "cam", "camera" in therr names from hancocks rom (i know, i'm an amateur )
-media_profiles.xml from hancocks rom
-lgcamera 5.25 (free) btw. it works with the latest pro version from the market too
please use tenfars clockwork mod or other custom recovery to flash this update.zip. the built in original recovery won't work (doesn't accept signature). BEFORE YOU START, DON'T FORGET TO MAKE A NADROID BACKUP!!!
here you find an untouched video sample: http://forum.kut-btu.de/video/VIDEO00017.mp4
([email protected],8fps, mp4-container, video: [email protected]~10000kbit/s, audio: [email protected]/s, 44khz)
i know, seems very choppy but this is because i was walking constantly. framerate is quite good. my defy runs at 1,2ghz but i tested 720p rec @ 800mhz too and it worked the same. it might be necessary to apply sdcard read_ahead_kb patch (mine runs at 2560 kb instead of 128) to avoid slow framerate effect which could be observed on hancocks rom.
sadly, recording with .h264 codec is still not possible (and i doubt it ever will). hence the resulting video is no match for the 720p recordings of e.g. the samsung wave but imho it is still a lot better than stock and looks almost great
now i leave it to the real devs to optimize this, whatever it is.
DISCLAIMER:
I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGES RESULTING FROM THIS MODIFICATION!
/edit:
mod works fine on the following froyo versions:
-3.4.2-117
-3.4.2-145 (as the mod comes from this version)
-3.4.2-155
mod doesn't work on:
-3.4.3-11
strange behavior detected:
after recording in 720p dmesg shows:
Timed out waiting for DSP suspend 3
pm_op()latform_pm_suspend+0x0/0x54 returns -1
PMevice C6410 failed to suspend:error -1
PM:Some devices failed to suspend
Click to expand...
Click to collapse
don't know, which impact this has on battery drain. after fresh reboot and w/o recording in 720p this problem doesn't show up.
Thnaks for this - i'll have a play with it later today
It works with Barebones 1.4... when im recording it seems little bit choppy, but playing it in MoboPlayer is good (smooth, maybe not 30 fps but its good!).
Thank you!
Antszej said:
It works with Barebones 1.4... when im recording it seems little bit choppy, but playing it in MoboPlayer is good (smooth, maybe not 30 fps but its good!).
Thank you!
Click to expand...
Click to collapse
great! since Barebones 1.4 is based on CEE 3.4.2-155-002 Deblur, we can add it to the compatibility list.
yes, the recording view seems choppy on my system too, but the resulting video is quite smooth (~23-24fps).
http://www.multiupload.com/APEW3UPMI0
Here is the sample.
juuu
I want this for green lens...
insestito said:
juuu
I want this for green lens...
Click to expand...
Click to collapse
sorry. i believe that 720p recording isn't impossible for green lense models. but i do believe that this patch based on hancocks mod will do the trick only for red lens defys. because it isn't just the color of the lens but a totally different sensor. perhaps someone figures out a mod for green lenses too.
But official Froyo is near, just wait, it should have 720p recording for EVERYONE.
I compare it to xd1 ROM files, and find the different files are,
720p_mp4venc_sn.dll64P
libOMX.TI.720P.Encoder.so
libOMX.TI.JPEG.Encoder.so
libOMX.TI.mp4.splt.Encoder.so
libOMX.TI.Video.encoder.so
Hope it can reduce the update size.
Antszej said:
But official Froyo is near, just wait, it should have 720p recording for EVERYONE.
Click to expand...
Click to collapse
what leads you to this assumption?
sunoldman said:
I compare it to xd1 ROM files, and find the different files are,
720p_mp4venc_sn.dll64P
libOMX.TI.720P.Encoder.so
libOMX.TI.JPEG.Encoder.so
libOMX.TI.mp4.splt.Encoder.so
libOMX.TI.Video.encoder.so
Hope it can reduce the update size.
Click to expand...
Click to collapse
feel free to modify the package everyone... my work is done
Worked like a charm for me, thanks!
ToTTenTranz said:
Worked like a charm for me, thanks!
Click to expand...
Click to collapse
u r welcome
Yep it works here too but i cant see much difference between WVGA and this 720p..its almost the same. Is there any app on market that has continuous autofocus while recording video(like barcode scanner) ?
I'll create this patch for the green lens?
insestito said:
I'll create this patch for the green lens?
Click to expand...
Click to collapse
is this a statement or a question?
derbestimmer said:
is this a statement or a question?
Click to expand...
Click to collapse
Question for you or any Dev, sorry...
Google translator is very bad...
insestito said:
Question for you or any Dev, sorry...
Google translator is very bad...
Click to expand...
Click to collapse
i don't think i will be any helpfull, cause i'm no dev. i just took the work of a dev and ported it to another rom. sorry. perhaps someone else is able to do it.
My problem with Hancocks ROM is that lgcamera records very light sound, no matter what encoding I chose (AMR_NB, AMR_WB or AAC). I am not even sure the software records sound on defy with encoding as AMR_WB and AAC.
Video works ok with MPEG4 encoding though with twp slight issues. One is video file bitrate is not the same as configured in lgcamera settings. The other one is framerate is always below 25 - not sure if SD card speed is the bottleneck.
shural said:
My problem with Hancocks ROM is that lgcamera records very light sound, no matter what encoding I chose (AMR_NB, AMR_WB or AAC). I am not even sure the software records sound on defy with encoding as AMR_WB and AAC.
Video works ok with MPEG4 encoding though with twp slight issues. One is video file bitrate is not the same as configured in lgcamera settings. The other one is framerate is always below 25 - not sure if SD card speed is the bottleneck.
Click to expand...
Click to collapse
with light sound, do you mean quiet or bad quality? strange when i set lgcamera from amr_nb to aac, it does use this codec at least the resulting video shows this in codecinfo. and i think the sound quality is slightly better too compared to amr. concerning the other two issues, i have the same experience. the framerate never goes over 23,9fps and when i force it to 25 or even 30, lgcamera won't start recording. youre right the bitrates of the resulting video are mostly lower then the bitrates chosen in lgcamera. 13 prduces ~10, 10 produces ~8 and 8 produces ~6 mbps. but imho there is a difference visible between 13 and 8mbps respectively 10 and 6 in the resulting video. at least on the computer you can see the difference.
Sent from my MB525 using Tapatalk
I have a problem with the camera and video hardware to all custom firmware which are based on cyanogenmod kernel. Camera work but does not move and hardware video on player don*t move. On firmware are based on stock all right work. I've tried everything hboot and recovery but result is the same. Install Miui 2.1.6.08 then install kernel UNITY_V9_2.6.35.14 is the only variant when camera well works but hardware video does not work at all. I hope to help developers!
another thread http://forum.xda-developers.com/showthread.php?t=1437945
Start a new thread because of that everyone devs is silent. May be see here.
I've got this very same issue. I was on MIUI 1.12.30 and on Lowveld's Reaper v1.1, both really good ROMs but for some reason, the camera preview window freezes after a couple of seconds. pictures come out ok though. same thing when playing videos either through a browser or even a local video file saved in the sd card, the video playback would freeze after a couple of seconds but the audio is normal.
if viewing video camera captured in program mode it shows normally but the problem remains
If viewing video touch on the screen then video moves and camera too
The same problem
I have the same problem - any help would be really appreciated.
i have got the same problem here.
tried to use Reaper 3.0 but got the camera problem.
miui,endymion and blindice works well with the camera on my DS.
i got hboot 2.00.0002, sense 3.0 and S-ON
the app "pudding camera" works for me as a half solution, since it only takes pictures and no video, but the camera is working with this app.
hope there will be a solution soon
i know its been month since the last post
I am on reaper v3 and my camera and videocamera are working.
UNfortunately i just don't get the same good pics as with sense roms.
It's a real shame, as i take many pictures and at the same time i couldnt live without reaper rom. it's just perfect, apart from the camera thing.
im using lg camera and sometimes get better results, but in low light the noise is really unbearable. tried different settings of iso and stuff but nothing.
i dont know about developing, so sorry is the question is dumb but using a different kernel would help?
Hi, I am on stock from with xinfinity kernel R3. My phone's camera app shows video recording as HD 288p doesn't record in HD and file is saved in 3GP format which is of really bad quality. I'm not able the figure out why it is showing only 288p. Has anyone else faced this problem? Please help me solve this issue..
Image of my G3's camera settings is attached.. Thanks in advance.
Sudanminipro said:
Hi, I am on stock from with xinfinity kernel R3. My phone's camera app shows video recording as HD 288p doesn't record in HD and file is saved in 3GP format which is of really bad quality. I'm not able the figure out why it is showing only 288p. Has anyone else faced this problem? Please help me solve this issue..
Image of my G3's camera settings is attached.. Thanks in advance.
Click to expand...
Click to collapse
If you're stock other than kernel we can only assume it must be the kernel which is breaking your HD recording. If you want a custom kernel then try flashing squid's kernel which Xinfinity is "based" on anyway.... it seems to just be the same other than some extra governors and apparently broken video recording.
Hello
i´m just wondering because i don´t find much to read about it.
After i upgraded to 6.0.1 my main camera can record one video after boot. then the camera app fc.
Front camera and taking pictures working fine.
After a reboot video recording (might) work again once.
If that occures also video playback via mxplayer, album and youtube don´t work.
I already reflashed the latest firmware, used stock rom´s and different kernels. Nothing solves my problem.
Luckily i found an old 6.0 backup so i restored that to see if it´s maybe smth hardware related.
But no. With the "old" 6.0 backup camera working good again.
So anyone has similar issues or ideas?
Thank you
PanAroma
Hi, I have tried 2 different CR Android 11. and video recorder doesn't work properly.
For example, in Gcam I can save videos but there's no sound at all. (I have tried NG, and 3 more versions all the same issue)
In Anx, it records the video, but when I go to gallery the video length says 14 hrs and it doesn't even play the video.
Is there any app that records video properly without bugging so much?, to me video recording is essential on my phone. I'm seriously considering going back to MIUI because I see that all CR have the same issue.
dawe0120 said:
Hi, I have tried 2 different CR Android 11. and video recorder doesn't work properly.
For example, in Gcam I can save videos but there's no sound at all. (I have tried NG, and 3 more versions all the same issue)
In Anx, it records the video, but when I go to gallery the video length says 14 hrs and it doesn't even play the video.
Is there any app that records video properly without bugging so much?, to me video recording is essential on my phone. I'm seriously considering going back to MIUI because I see that all CR have the same issue.
Click to expand...
Click to collapse
Just happened the same thing to me in Lineage OS 17.1.
I wonder if it is related to some libs missing or being different in some Roms. I couldn't make video recording work right with any camera app.
At the moment I went back to MIUI Global Rom until I find if it is rom related, if it is any issue with some library or what else could I do to choose an appropriate rom. Because it is very tired to begin rom switching only to discover again that video recording doesn't work and I have to reflash and reinstall apps again.
Edit; I forgot to ask if you were able to solve your issue