yashsingh1/xdaforums huggingface dataset:
[Galaxy S Plus I9001 Android Development] texten:
you should check the libs for/or codecs.

also you can look at the media_profiles.xml.

this is the only thing what caused the crashes..

so i think you are one step closer to make camera ready, as we are.

it should be easy to fix this.

E/OMX-VENC-720p( 7235):
E/OMX-VENC-720p( 7235): omx_venc(): Inside component_deinit()
E/OMX-VENC-720p( 7235): Calling m_heap_ptr.clear()
E/OMX-VENC-720p( 7235): Calling venc_close()
E/OMX-VENC-720p( 7235):
E/OMX-VENC-720p( 7235): venc_close(): Calling VEN_IOCTL_CMD_STOP_READ_MSG
E/OMX-VENC-720p( 7235):
E/OMX-VENC-720p( 7235): ioctl VEN_IOCTL_CMD_READ_NEXT_MSG failed
E/OMX-VENC-720p( 7235): omx_venc: Async Thread exit
E/OMX-VENC-720p( 7235): Deleting HANDLE[0x35690]
E/OMX-VENC-720p( 7235): OMX_Venc:Component Deinit
E/OMX-VENC-720p( 7235):
E/OMX-VENC-720p( 7235): ~omx_video(): Inside Destructor()
E/OMX-VENC-720p( 7235): omx_video: Waiting on Msg Thread exit
E/OMX-VENC-720p( 7235): omx_video: Waiting on Async Thread exit
E/OMX-VENC-720p( 7235):
E/OMX-VENC-720p( 7235): m_etb_count = 0, m_fbd_count = 0
E/OMX-VENC-720p( 7235): omx_video: Destructor exit
E/OMX-VENC-720p( 7235): Exiting 7x30 OMX Video Encoder ...

edit: try this and make logcat after try

unpack - push libs to /system/lib - set permissions like the other libs there (644 / rw-r--r--)

if this will not change anything

you can try these libs or similar libs and/or media_profiles.xml from a rom with working camera for your device...

or contact your developer with your logcat and the hint, he should check

omx_video_encoder.cpp

here you can see how to make logcat
[Galaxy S Plus I9001 Android Development] Slacker:
was just about to edit my post to reiterate that I amusing the current cm9 build with no other file modifications.

willing to try the libs, I suppose a reflash of my rom would undo it if I want to?
[Galaxy S Plus I9001 Android Development] texten:
you can rename the original libs you will replace.. just add at the end of filename ".bak" if you want get back, you can delete new libs and the ".bak" ..

if you have no modifications in system-folder you can also reflash rom, with wipe cache an wipe dalvik...

dont forget to do these wipes also, after changing/replacing the libs.

for example, if you now replace your libs with my attached, boot after that into recovery and wipe dalvik, wipe cache, reboot, make camtest, make logcat.

and so on. after every changes on libs or media_profiles.xml you have to do wipes

btw: for camtests you should look at this rom..

it seems to be very similiar and you can try something from it:

Exhibit II/Galaxy W RebelROM
[Galaxy S Plus I9001 Android Development] Slacker:
playing with(I mean testing) it now, these are the settings in lg cam that work for me

only mentioning the ones i changed.

white balance auto

scene mode snow (gets rid of the yellow tinge)

vid res 1920x1080

vid enc h263

vid file format 3gpp

I start the app and fiddle around with flipping cameras and hitting record until it says recording started while showing a black screen, let it go for a few sec. hit the record button to stop, hit the play button, it brings up the player that say cant play this vid and when the cam app comes back it has a display and i can record videos repeatably.
[Galaxy S Plus I9001 Android Development] texten:
did you try to change the resolutions?

with our fix its only working videorecording in sd quality and panoram pictures, not taking pictures.

i think, you can try something new, and report later...

just let us be on topic with this thread here, because it can confusing other users. ;)

if you want more informations for your case, let do it via pm..

but please make just another logcat after changing some files..

and let us know.. thanks

how i said. pm is every time welcome :)
[Galaxy S Plus I9001 Android Development] jackq:
I read a lot, if somebody can/want to read the contents of this githubs

https://github.com/ColdFusionX/android_device_zte_skate/tree/ics/libcamera

https://github.com/tjstyle/hardware_qcom_camera

https://github.com/IceColdSandwich/android_hardware_qcom_camera

http://review.cyanogenmod.com/#/c/13401/

compare with our files.

Also intersting thread:

http://xdaforums.com/showthread.php?t=1448303
[Galaxy S Plus I9001 Android Development] androabot:
Interesting sources.

I would add this also.

https://github.com/Evervolv/android_hardware_qcom_camera/commits/ics
[Galaxy S Plus I9001 Android Development] arco68:
So on the S+, the camera doesn't "work" with its own liboemcamera.so, but it does with the one from the Wonder/Exhibit. And on the Wonder/Exhibit, the camera doesn't "work" with their own libcamera.so, but it does with the one from the S+. :rolleyes: Yeah that's Samsung for you - totally incompetent and inconsistent. :rolleyes: You guys have no idea how much **** I've seen from them by working on this and the kernel. For example they can have one particular camera parameter in one phone, and in another phone they can have the same parameter, just with a different name. I think they must be braindead or something, because how much easier wouldn't it be for themselves and others if they maintained some consistency between phones?

Most of the problems we have right now with this camera hal wrapper, is exactly because we're interchanging libcamera.so and liboemcamera.so. When we're not using the exact ones made for the phone, they can't talk properly with each other, since some routines and stuff will be different from what they expect. That's one of the reasons for the camera crashing a lot.

Btw, does anyone actually know what this HAL wrapper we use is? Let me just explain a little. In GB, there's a file called libcamera.so, which deals with camera commands from Android. This file is no longer used in ICS, and you won't find it in any ICS rom with proper camera implementation. Instead Google moved to a HAL based camera solution in ICS. So the file that "replaces" libcamera.so, is now called something like camera.msm7x30.so. This file also requires a liboemcamera.so which matches. Since we don't have these files or any working source for it, we must use a wrapper. So in essence, the camera.msm7x30.so we use now, is a wrapper that routes camera commands from ICS to the libcamera.so from GB.

But as I've already said, a major part of the issues are because Samsung are complete twats by insisting on doing everything different from the standard norm.
[Galaxy S Plus I9001 Android Development] :
If i get you right, the parameters in liboemcamera.so from ICS has to be the same or very familiar as in libcamera.so from GB. And this would even help only, if HAL wrapper is interacting the right way with liboemcamera.so?

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] texten:
here is an interesting source: http://gitorious.org/replicant/device_samsung_galaxysmtd/blobs/2272e3bb70d984285419e830f86b72e5e76c31f3/extract-files.sh

you can see all needed files from gb for galaxy s devices.

the only thing what is different, that there is the liboemcamera.so called as libsamsungcamera.so

so i am done with this camera ****.

i am realy happy, that i will change my device at the end of june.

i guess this samsung camera is too much for only one dev.
[Galaxy S Plus I9001 Android Development] arco68:
Well, yes sorta. HAL wrapper communicates with libcamera, and libcamera in turns communicates with liboemcamera, which then communicates with kernel driver.
[Galaxy S Plus I9001 Android Development] AndrolinRoot:
Which?
[Galaxy S Plus I9001 Android Development] arco68:
Another fine example of Samsung being unable to use common naming conventions. :)
[Galaxy S Plus I9001 Android Development] texten:
arco if i get you right, you have a galaxy w, and you use for both devices the same source?

but you said samsung use on every device different sources.

i think there must be a reason why camera is "working" with another liboemcamera.so as it should.

there is no allround solution for samsung devices, i guess.

sorry, i am a little bit confused about your latest post about the doings of camera.

maybe i should look on your guthub, for a answer

galaxy s2
[Galaxy S Plus I9001 Android Development] greendoki:
pls just ask this guy about this #mikegapinski because he made the camera driver for samsung wave with android ICS!!!

http://xdaforums.com/showthread.php?t=1596567

heres his threde

sry for my english :)
[Galaxy S Plus I9001 Android Development] arco68:
They use originally different sources yes. But in our case, the three msm7x30 devices Samsung has made, are of course the same platform and we have kernel sources for all of them. The basics of these kernel sources are pretty much the same, only some code here and there and the drivers differs. So combining the different kernels into one, and use checks to build the correct stuff for a particular phone isn't that hard. For the camera we don't have sources, so that makes it instantly much harder.

Although it may seem to work with a different liboemcamera, there might be subtle differences that may cause various issues. Which reminds me, I can't remember if anyone here ever explained exactly what happens when using liboemcamera made for your phone, or posted logs when using it. If there was, please link me to it.
[Galaxy S Plus I9001 Android Development] andres_a:
You mean camera behaviour without installing fixes from this thread, just plain install of your build 4?

Camera app crashes on start.

Logcat attached, if you need traces I may try to get these. Do I understand correctly that I shall just erase traces.txt directory from /data/anr/ ?

Update: camera not found is much more interesting :)

Tries to open libhtc_acoustic.so

And /system/bin/mediaserver SIGSEGV-s
[Galaxy S Plus I9001 Android Development] texten:
here is a logcat with clean build4 using camera, i guess in that build you have added the liboemcamera.so for our device ;) ...

when tried to open stock camera it said "unfortunatly camera was stopped" without doing anything

or sometimes it opens the app and said "camera not found"

both is in that logcat:http://xdaforums.com/showthread.php?p=27070799#post27070799
[Galaxy S Plus I9001 Android Development] androabot:
My log.txt ;)
[Galaxy S Plus I9001 Android Development] arco68:
Thanks. I see a lot of

camera_ext_sensor_config: error (Invalid argument), FD : 13

Might be something kernel related. I'll do some checks and see if I can find something.
[Galaxy S Plus I9001 Android Development] arco68:
Try this test kernel against the original liboemcamera.

kcam1.zip
[Galaxy S Plus I9001 Android Development] andres_a:
Looks same - most of the time "Unfortunately, camera has stopped", sometimes "Can't connect to the camera". Log attached.
[Galaxy S Plus I9001 Android Development] texten:
clean install build4. logcat looks much better now...

no mm-camera errors.

but camera.apk does the same as before.
[Galaxy S Plus I9001 Android Development] andres_a:
lgCamera Free is working - 2560*1920 pic attached :)

Preview is mirrored, and photo itself is such that I can't attach it as jpg - forum complains that this is not valid image.
[Galaxy S Plus I9001 Android Development] texten:
mediadata are correct :)

good to hear that taking picture with thirdpart app is working without change of liboemcamera.so..

edit: btw. tried with the liboemcamera.so of our temporary light fix, now it isnt working,too
[Galaxy S Plus I9001 Android Development] arco68:
kcam2.zip
[Galaxy S Plus I9001 Android Development] texten:
camera.apk does the same

but logcat looks from kcamtest to kcamtest better

i was reading much about these errors

E/QualcommCameraHardware( 142): Failed to get maximum zoom value...setting max zoom to zero
E/OMXCodec( 142): Attempting to allocate OMX node 'OMX.google.vorbis.decoder'
E/OMXCodec( 142): Successfully allocated OMX node 'OMX.google.vorbis.decoder'

for some other the "max zoom" caused fc'S.

here is just something interessting what google said (there are not much informations to this issue, so these both links are the best result):

http://gitorious.org/liquide/android-open/commit/89095f5de02f6a66c4a3d5a82bf781e0c74347c1/diffs

http://xdaforums.com/showpost.php?p=19120736&postcount=5109
[Galaxy S Plus I9001 Android Development] andres_a:
From UI point looks exactly like kcam1.

log attached - few tries with standard Camera and pic taken with lgCamera.
[Galaxy S Plus I9001 Android Development] arco68:
kcam3.zip
[Galaxy S Plus I9001 Android Development] arco68:
Stock rom also has that error, so I wouldn't worry to much about it.
[Galaxy S Plus I9001 Android Development] texten:
ok.

here kcam3...

now mm-camera errors are back again but other errors are gone

^^

apk does the same as before...

for the java errors "set parameters" i found these:

http://sinkpoint.railsplayground.net/fix-camera-setpreview-crash/

http://stackoverflow.com/questions/2046523/runtimeexception-on-camera-setparameters-on-nexus-one
[Galaxy S Plus I9001 Android Development] androabot:
It's strange. with Kcam2 and lgcamera take 5MP photos and video at 720 h264
[Galaxy S Plus I9001 Android Development] texten:
can you try with the camera.apk from htc desire (or what camera.apk did you try in the pasT)?
[Galaxy S Plus I9001 Android Development] arco68:
kcam4.zip

Taking a break after this. Thanks so far for testing. :)
[Galaxy S Plus I9001 Android Development] texten:
hope you could learn something from the logcats ;)

here last logcat.

camera.apk does the same
[Galaxy S Plus I9001 Android Development] androabot:
I've tried both and the same result

HOWEVER with lgcamer and puddingCamera still works
[Galaxy S Plus I9001 Android Development] texten:
then we're at a step further.
[Galaxy S Plus I9001 Android Development] androabot:
Yes we're at a Step Further.

But with kcam2, with kcam3 and 4 runs worse
[Galaxy S Plus I9001 Android Development] texten:
kcam2 has the "best" locgat of all
[Galaxy S Plus I9001 Android Development] androabot:
Taking a break after this. Thanks guys

Tomorow more ;)
[Galaxy S Plus I9001 Android Development] androabot:
But even without applying the patch, works lgcamera

Maybe we would have to disassemble this apk ;)
[Galaxy S Plus I9001 Android Development] fcaronte:
Hi all i know here is galaxy s+ section but I've install cm9.... Is very fast, I try a lot of program for camera but I can't save picture (only see camera image) I try tu flash the arco ktest posted here but I got only black screen with infinite vibration....
[Galaxy S Plus I9001 Android Development] texten:
you will need this: camera_experimental-06_light.zip
[Galaxy S Plus I9001 Android Development] fcaronte:
i try but work only preview and panorama photo, normal photo are saved as black and unable to open....i try with this program (without restart every time the phone)

goggles (see wireframe image but when a scan it is see normally), pudding camera , silent camera, lgcamera, hdr camera(don't start impossible to controll exposition), camera fv-5....for all programm not work autofocus

edit:

work front camera video with audio (but to swith from frontal to other camera is very difficult i must restart every time the phone)
[Galaxy S Plus I9001 Android Development] Karls0:
Nothing new in this topic since 3 days.... is this project abandoned or it's just end of ideas? Please don't give up now, you made so much, it's so close to make camera fully working.
[Galaxy S Plus I9001 Android Development] texten:
there is a need for kernel/java/driver changes. we have all known code-issues and possible fixes listed, its not more our turn.
[Galaxy S Plus I9001 Android Development] Karls0:
So all what we can do now is stay waiting for Arco?
[Galaxy S Plus I9001 Android Development] Keinbockwurst:
Do Arco and Oisis kbow about it so they can start working on it?

Gesendet von meinem GT-I9001 mit Tapatalk
[Galaxy S Plus I9001 Android Development] texten:
everybody can read this thread.
[Galaxy S Plus I9001 Android Development] Karls0:
Oisis is now bussy with his port of AOKP. Only Arco or somebody new can help us.
[Galaxy S Plus I9001 Android Development] oisis:
I talked with a friend, a good coder, he can help us with the camera and sound. Soon I will know more, I will let you know.
[Galaxy S Plus I9001 Android Development] 2300:
good news

for sound:

There is a problem in Arco CM9 Alpha 4...

When playing ringtone in settings, or call, speaker wheezing heavily on bass (depending on the music)

on firmware based on Arco CM9 source code do not exist, everything sounds good - http://xdaforums.com/show....php?t=1701141

How do I fix this problem? what files are responsible for the reproduction of sound through the external speaker? (I think to pull them out of the firmware - http://xdaforums.com/show....php?t=1701141)

PS:

if you want, I can test all fixes
[Galaxy S Plus I9001 Android Development] oisis:
Links not working, can you fix it?
[Galaxy S Plus I9001 Android Development] 2300:
sound works fine for Eclipse_AROMA_v3 - http://xdaforums.com/showthread.php?t=1701141, no distortion, and wheeze

firmware based on Arco CM9 source code...
[Galaxy S Plus I9001 Android Development] Karls0:
It based on AOKP from Oisis
[Galaxy S Plus I9001 Android Development] oisis:
Read this:

[AOKP][DEV][i9001] Eclipse v3 AROMA tabletUI included

---------- Post added at 06:58 PM ---------- Previous post was at 06:51 PM ----------

You can compare libs from this two roms, AOKP and CM9. Eclipse is based on AOKP and in AOKP i added a lot more libs.
[Galaxy S Plus I9001 Android Development] oisis:
Can somebody try to run ICS CM9 with GB CM7 kernel? If you have time you can do this test, and of course adb logcat at the boot time.
[Galaxy S Plus I9001 Android Development] :
Did a request at german forum.

request @ german forum
[Galaxy S Plus I9001 Android Development] mav.erik:
You want can try with kernel of mazen cm7????

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] oisis:
Yes, need to test CM9 with mazen kernel from cm7 and do adb logcat. If somebody want to, try it please, i'm @work now so don't have a time.
[Galaxy S Plus I9001 Android Development] mav.erik:
where i find logcat????

Escuseme i'm niovice but i'm we completly disposition ;)

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] :
You have to download Google USB drivers, ADK and SDK from Google.

Look at this sites:

Here is a "HOW TO"

and

ADB for beginners

and

Setup SDK+ADK+ADB

Copy your cmd from windows folder into folder where ADB is located, makes things a lot easier.

But if you never have worked with this, it would be kinda tricky, maybe...
[Galaxy S Plus I9001 Android Development] BzArEx:
Ok i added links to the 1st kernel and rom. All kudos goes to Arco68!

http://xdaforums.com/showpost.php?p=26122811&postcount=80
[Galaxy S Plus I9001 Android Development] Xistance:
Tried CM7 kernel but it didn't boot. Sorry I can't get a logcat since I am away from my computer.
[Galaxy S Plus I9001 Android Development] :
Try using terminal on your phone, typing "dmesg" (without " ")
[Galaxy S Plus I9001 Android Development] mav.erik:
Idem.... for me didn't boot

Inviato dal mio GT-I9001 con Tapatalk 2
[Galaxy S Plus I9001 Android Development] arco68:
Guys, there's absolutely no need to be messing around with the kernels. That's not where the problem is.
[Galaxy S Plus I9001 Android Development] :
What do you think where the problem is?

Driver? HAL? Firmware?
[Galaxy S Plus I9001 Android Development] _strauch_:
I think HAL, Arco write it in an older comment in the cyanogenmod porting Thread.
[Galaxy S Plus I9001 Android Development] oisis:
Maybe not, but wants to know more about android, kernel, drivers etc and experiment a little. Can you tell something more where problem is? I'll be grateful.

Here is more information about Camera in Android.
[Galaxy S Plus I9001 Android Development] arco68:
We need a working HAL driver, or a HAL wrapper for the old camera libs. In Gingerbread there was libcamera which was the link between Android and kernel, but in ICS they switched to a HAL based driver, hence libcamera doesn't work. The easiest would be to use a HAL wrapper for the old libcamera, and there exists one that works for some HTC devices. I've tried this on the Galaxy W, and the camera is detected according to the logs, but when launching the camera app it just hangs and needs to be force closed.

http://review.cyanogenmod.com/#/c/13650/
[Galaxy S Plus I9001 Android Development] Xistance:
Also found this thread in case you guys haven't seen it yet.

xdaforums.com/showthread.php?t=1427030

I tried it out but I still get the moving box. But maybe with a few changes it could work as the guy says in the thread?
[Galaxy S Plus I9001 Android Development] Keinbockwurst:
But this seems to be a good start. What did the log say when you open the camera and it FC?
[Galaxy S Plus I9001 Android Development] oisis:
When did you try this solution? On latest build?
[Galaxy S Plus I9001 Android Development] Xistance:
Yeah, I tried it right before posting it.
[Galaxy S Plus I9001 Android Development] 2300:
I understand what libraries (files) are responsible for the sound?

where can I read?
[Galaxy S Plus I9001 Android Development] oisis:
I'm using AOKP sources with Arco config files as a base for my config files. I'm not sure that libs only will help but you can try. Just download AOKP and CM9 and compare files /system/lib/*.so
[Galaxy S Plus I9001 Android Development] 2300:
Ok, I will try

---------- Post added at 07:16 PM ---------- Previous post was at 07:10 PM ----------

As far as I know I'm interested in the library:

libaudio_xxxxxxxx.so, libsound_xxxxxxxx.so, libmedia_xxxxxxxx.so

and othera xxxx_audio_xxxxxx

right?
[Galaxy S Plus I9001 Android Development] oisis:
Yes.
[Galaxy S Plus I9001 Android Development] greendoki:
guys

i just talked with @mikegapinksi bacause he made a fully working camera (ics) for the samsung wave. he told me that:

"Wave has the same Camera as aries, just mb layout of motherboard is diffrent" so maybe you can find usefull lines in his kernel and cam driver.
[Galaxy S Plus I9001 Android Development] oisis:
He is form Poland i think, will try to speak with him. Thanks.
[Galaxy S Plus I9001 Android Development] greendoki:
here is his porting thread:

http://xdaforums.com/showthread.php?t=1596567
[Galaxy S Plus I9001 Android Development] pigulka:
Mike probably resell information on the camera to the ICS. I'm willing to pay to have a working android 4 ICS.
[Galaxy S Plus I9001 Android Development] projeto56:
Are we dead?
[Galaxy S Plus I9001 Android Development] :
Do you have new drivers or other ideas?

[Sent mobile][GT-I9001]

[Cyanogenmod9 by Arco]
[Galaxy S Plus I9001 Android Development] projeto56:
Information won't kill anyone :)

But no ideas. I think it's pretty obvious we should focus on fixing audio right now, my guess is what is causing video problems, battery drain and a ****load of other issues.
[Galaxy S Plus I9001 Android Development] drummer1839:
... no just stuck in ass :D
[Galaxy S Plus I9001 Android Development] androabot:
I think the solution is here.

There are a lot of explanations to do.

There will have to modify some file.

device_samsung_aries-common
[Galaxy S Plus I9001 Android Development] Karls0:
Here is a logcat from Elitarius, he can't post here. He can take photos and record films with stock app without bigger problems

http://www.speedyshare.com/S8XZj/logcat.txt

I hope it will help you :)

On this logcat he turned camera on and rocorded a film.
[Galaxy S Plus I9001 Android Development] greendoki:
mikegapinski has released the first beta for #wave and it contains a working camera driver(except video)... maybe you'll find something usefull in it: http://polishblood.pl/?page_id=13
[Galaxy S Plus I9001 Android Development] AndrolinRoot:
look some posts back....:silly:
[Galaxy S Plus I9001 Android Development] greendoki:
and what sould i look? the possible solution or what?:confused:
[Galaxy S Plus I9001 Android Development] AndrolinRoot:
That we already know him
[Galaxy S Plus I9001 Android Development] greendoki:
i know... i've posted that to you...

i just want to tell you that he realased today his first rom...