yashsingh1/xdaforums huggingface dataset:
[Nexus One Android Development] twistedumbrella:
Go to evervolv's github and pick the project containing the original files that match the ones you modified. Make sure you signed up for a github account first, and then click fork in the upper right of that project. This will create a page of your own that has their current files as a base.

To prevent cloning the wrong files and such, it is best to also set a default branch, by clicking Admin and on the new page selecting it from the list

After you pick one from the list, clicking back to source will save the change

Next you will want to clone those files to a folder somewhere on your computer, but not the one you were already working in or you will lose what was there. For that, your best bet is to look at the new page that just popped up when you did the fork and grab that address listed under the main menu and do

git clone "the project url"

Once that makes the folder, you can take your files and overwrite the ones you just cloned with them, but make sure you dont just overwrite the entire main folder or it will delete the .git folder which you need. Finally, you can commit the changes with

git commit -a -m "I haz changes"

and then push it to your new fork with either

git push git@github.com:"username"/"project name".git HEAD:"branch" -f

if you have set up keys or if you have not gotten there yet just

git push

will prompt for the login and password and push the files to the current project (the folder you are in) and the current branch (whatever you set to default before cloning).
[Nexus One Android Development] MongooseHelix:
Feel free to come to join #evervolv or #building_ics_source on freenode irc and twisted, drew, myself, or someone can help you get setup on github.
[Nexus One Android Development] twistedumbrella:
You did pick a good base to work from. These guys do great work.
[Nexus One Android Development] rapmv78:
Got video to work finally with hardware encoder support as well. It is not as smooth as I would like it to, but I do not know what the issue is. I could see that all frames were encoded, so the issue is probably in the encoder or my SD card is slow. Would like some feedback on whether others see some stutters too or not. Updated the second post with new fastboot system images. Also source code is now available on my github, as promised :) DISCLAIMER: The code has a bunch of hacks and is not very clean, as I did not get much time to clean it up before sharing.

For people with non-nexus devices, you can use the source code to compile your own or here is just the HAL module as a separate download

http://www.mediafire.com/?87nizd1jrx01j49

You also need

media_profiles.xml which should to into /system/etc/

http://www.mediafire.com/?ig6t931i8h3zhzf

libmediaplayer.so which should go into /system/lib/

http://www.mediafire.com/?8jb64a94tdfe4vp

Here are the source changes for libmediaplayer.so

--- a/frameworks/base/media/libmediaplayerservice/StagefrightRecorder.cpp

+++ b/frameworks/base/media/libmediaplayerservice/StagefrightRecorder.cpp

uint32_t encoder_flags = 0;

- if (mIsMetaDataStoredInVideoBuffers) {

+ if (0 && mIsMetaDataStoredInVideoBuffers) {

encoder_flags |= OMXCodec::kHardwareCodecsOnly;

encoder_flags |= OMXCodec::kStoreMetaDataInVideoBuffers;

}

Enjoy!!
[Nexus One Android Development] mulerokeh:
downloading, feedback soon.. :)

thank you..

ehh, how to install?

fastboot flash system file.img

just like that?

sorry, noob question.. :D

Sent from my Nexus One
[Nexus One Android Development] geenyous:
ok, I installed by replacing the camera.qsd8k.so file in system/lib/hw, changed the permissions to rw-r-r and then rebooted.

The attached pic is what I get when going into camcorder plus when I press the record button nothing happens at all...

Zoom appears to work though.

Cam still works fine. You can find my specs in my sig and a log attached.
[Nexus One Android Development] furius:
yeah!

I would like to try this without installing all the img system from second post ... is there a way to flash only the camera related files on MeDroid v4.2?
[Nexus One Android Development] chriscsh:
is that mean we only need copy this file to lib/hw?

edit: sorry! i saw the source :P
[Nexus One Android Development] Glen_H:
I have the same problem geenyous has with new camcorder.

adb pushed the file, changed permissions and rebooted.

I'm on a HD2 (eu)

radio 2.15.50.14

magldr 1.13

Build NexusHD2-ICS-CM9 c1.0
[Nexus One Android Development] Bi0haZarD:
did you try playback of recorded video on ICS? try also on pc or GB, ICS doesn't have HWA, only soft. Maybe that's the case of stuttering/chopped frame playback.

I have recorded a vid on CM7.2 GB /playback=perfect framerate. I playback the same file with same video player on ICS and i have stuttering/chopped frames.
[Nexus One Android Development] jerpelea:
01-05 10:52:34.267: E/HAL(1128): load: module=/system/lib/hw/camera.qsd8k.so

01-05 10:52:34.267: E/HAL(1128): Cannot load library: link_image[2048]: 1128 could not load needed library 'libcamera.so' for 'camera.qsd8k.so' (reloc_library[1384]: 1128 cannot locate '_ZN7android7Overlay7setCropEjjjj'...

01-05 10:52:34.267: E/HAL(1128): )

01-05 10:52:34.267: E/CameraService(1128): Could not load camera HAL module
[Nexus One Android Development] twistedumbrella:
I imported your source to the ics branch of my existing qcom camera repository https://github.com/TwistedUmbrella/android_hardware_qcom_camera to start working on making it "generic"

I am assuming the Build-libcamera := nexus tells it to use the included libcamera-nexus.so, so the first step will be redirecting a device proprietary to that folder under the name legacy and aiming it to pick that up instead.

The only reference I don't have a clear understanding of is camera-inc
[Nexus One Android Development] rapmv78:
Actually the stuff is already pretty generic, except for the hardware accelerated copying. camera-inc was for droid incredible, but what I found is that the library for the exact device does not really matter. So, for other devices, all you need to make sure is that the hardware accelerated copy works and may be a few additional flags need to be set and that should be fine. All I have is a nexus one, so cannot really be very sure about it though.
[Nexus One Android Development] rapmv78:
You need the right media_profiles.xml file and libmediaplayer.so (NOTE: this may not be compatible with your ROM and may boot loop. It is based off evervolv's code base), the links for which, I just added to the post. The media_profiles.xml file needs to go into /system/etc/ and the other file into /system/lib/. However, it may still not work as I do not know the state of the hardware encoder libs for your ROM.
[Nexus One Android Development] bachmark:
I had the same problem as geenyous, now I installed the media_profile.xml from evervolv’s (github). Now I get a proper preview but recording stops immediately.

I don’t found any libmediaplayer.so, are you meaning libmediaplayerservices.so? Which libmediaplayerservice.so is suitable for the HD2 with tytung ICS 4.0.3?

Thanks
[Nexus One Android Development] Glen_H:
Recording works for me after pushing media_profile.xml and libmediaplayer.so :)

Quality of the image is ok, but it is only recording at 3fps.

Thanks for all the work you ar putting in to this.

I'm on a HD2 (eu)

radio 2.15.50.14

magldr 1.13

Build NexusHD2-ICS-CM9 c1.0
[Nexus One Android Development] onerider:
Nice progress!

Some feedback:

I pushed the three files into my N1's current texasice p5 build and video is working although, like you say, it strutters.

Here's what I recorded:

http://dl.dropbox.com/u/6817397/vid2.mp4

My SD card is a 16gb Class 6 and I'm using a2sd with a 1gb ext4 partition
[Nexus One Android Development] rapmv78:
Thanks. It is probably using software encoder. Any chance some one can try out the ROM I posted, it has the hardware encoder enabled and is built from the same source that texasice is using, so should not miss much functionality :)
[Nexus One Android Development] bachmark:
Which libmediaplayer.so and media_profile.xml you are using, can you post the files?

Thanks
[Nexus One Android Development] Glen_H:
I used the files from this post.

Also made a flashable zip.

Edit: please check file permissions or download the zip again, although it was working for me the permissions were messed up. Should be fixed now.
[Nexus One Android Development] clio94:
I flashed these files in my hd2 with tytung cm9 v1.0 and camera works as you described.But i cant play anymore anykind of music or video.I tried with meridian player and freedi youtube player and audio/videos cannot even start playing :(

Εdit

Ι put back the original mediaprofiles.xml and it is ok for music/videos.But it broke video recording and video preview in camera app.Αny chance to combine in one the 2 mediaprofiles.xml?
[Nexus One Android Development] Glen_H:
Strange, I can still play music using the default player and also youtube is working.

I think someone else needs to look into the possibility of combining the media_profiles as I don't have a clue what is or should be in there.

Edit: please also check the file permissions, it seems I messed up, but even then it was working for me.

Edit 2: can you try some other youtube movies, some are crashing youtube app, but not all of them.
[Nexus One Android Development] twistedumbrella:
Most of the versions from GB should work by changing one of the video formats, but I have to look which one. One of them is simply named differently in ics, which caused issues loading the file. I'll get back with which one as soon as I track it down.
[Nexus One Android Development] habs25:
i'll try now and report back.
[Nexus One Android Development] Glen_H:
youtube seems to crash on some movies but not all, made a logcat of crashing youtube player. Could this be caused by different media_profile.xlm?
[Nexus One Android Development] twistedumbrella:
Looks like an error with Google analytics but I need to look from a computer to verify.
[Nexus One Android Development] rapmv78:
Does just using the browser with m.youtube.com work?
[Nexus One Android Development] Glen_H:
yes, opening from m.youtube.com works fine. I reverted to original file's and youtube still FC's so could a rom issue.
[Nexus One Android Development] twistedumbrella:
Possibly your chosen Gapps.
[Nexus One Android Development] *child:
I can confirm that this works for the HTC Desire running Evervolv/Sandvold ICS build 0.2.0.

The video I recorded is attached. Playback is choppy on the phone, but it is also choppy, albeit less, on my PC. Nonetheless, great work so far!

I don't know anything about coding/compiling for Android, but if you need me to test anything for the HTC Desire, let me know.
[Nexus One Android Development] davibs:
Exposition -2 , -1 , + 1 , +2 settings are not working for me.. ( HTC HD2 )
[Nexus One Android Development] AirwolfUK:
Desire S (Saga)

Tried it on Desire S (Saga) and got stuck at HTC boot screen.

I assume to do with the kernel

this is now beyond my skills so i'll wait for someone else

great work though by the way
[Nexus One Android Development] AKRRKA:
720p is working to HD2!

AmeriCanAndroid did it

Maybe it will help developments.
[Nexus One Android Development] K900:
That's for GB, not ICS
[Nexus One Android Development] AKRRKA:
Yes, of course. But maybe it has something to help in realization for ICS.
[Nexus One Android Development] VA_DOS:
Took a quick look at the update-script from this zip. How about to umount system partition?
[Nexus One Android Development] K900:
We had 720p on bravo/passion for a looong time. Probably since CM7.1 or even earlier
[Nexus One Android Development] rapmv78:
Here is a flashable zip file, which should enable hardware encoding. It has the previous files, along with the new stuff. This is for people who do not want to flash the new ROM. It should be compatible with evervolv ROMs from texasice, as it uses the same code base.

http://www.mediafire.com/?rsa0b4voq4sy544
[Nexus One Android Development] mulerokeh:
try it with twexasice rom..

recording video and when i stop it, my phone not responding and then camera force close, after than my phone freeze (i'm using nova launcher)..

i'll try again and give feedback..

thanks for your hardwork.. :)

Sent from my Nexus One
[Nexus One Android Development] onerider:
Tried it out on my N1 with a 16gb Class 6 SD card and texasice ICS p5 ROM. Works very well. A lot smoother than when I tried with SW-encoding only. Seems stable, no FC in 15 minutes playtime! Excellent work, rapmv78. Many thanks! :)

Check out the difference:

HW-encoded (the one you mention in this post)

http://dl.dropbox.com/u/6817397/VID_20120112_233848.mp4

SW-encoded (flashed files without hardware)

http://dl.dropbox.com/u/6817397/vid2.mp4
[Nexus One Android Development] djkonduct:
Great job! Camera flash isnt working on my HD2 not sure why... flashed this rom right after install of Beta 10 any help would be great

HTCHD2 "NexusHD2"

Android 4.0.3

Kernel Vr 2.6.32.15_tytung_ics_beta8

Build IML74K (NexusHD2 - IceCreamSandwich) Beta 10
[Nexus One Android Development] rapmv78:
If you can post logcat when enabling flash, may be it could provide some clue as to what is going on.
[Nexus One Android Development] VA_DOS:
Great job!

It works as anounced, tested on HTC Desire on this firmware.

But I got FCs until have been flashed HW encoding li, so don't works for my device on SW encoding.

P.S> How about umounting system partition at the end of update script?
[Nexus One Android Development] djkonduct:
Not sure why but now the flash seems to work fine and the pics look great ... maybe the battery was too low? Beats me if it happens again i will post log
[Nexus One Android Development] rapmv78:
Thanks. Will include unmounting the system partition. For now, you can use clockwork recovery option to unmount /system explicitly till then.
[Nexus One Android Development] Ketelbinkie01:
Same here

I have the same issue. Working on Tytung Beta 10 (HTC HD2).
[Nexus One Android Development] ChronoReverse:
I won't be getting my n1 back until March for testing (sob) but if the recorded video is stuttering, a possible cause is the bitrate specified in the media_profiles.xml file.

For instance

<Video codec="m4v"
bitRate="6000000"
width="1280"
height="720"
frameRate="30" />

This is telling the n1 to record 720 at 6 megabits per second (using variable framerate capped at 30FPS).

This is rather high as even my g2 stutters at that recording bitrate (I set it to 4mbps to get smooth recording IIRC).

I don't know what would work best for the n1 but this might also apply to the 480p mode so some testing may be in order
[Nexus One Android Development] rapmv78:
Playing back the recording on a PC does not show the stuttering that I saw when playing it on the phone. So, I guess it was a playback issue rather than an encoding issue.
[Nexus One Android Development] M..N:
Maybe a hardware acceleration issue.
[Nexus One Android Development] twistedumbrella:
The million dollar question. Do you have a GB include/camera/CameraHardwareInterface.h in the device folder or are you using the one included with the repo?
[Nexus One Android Development] rapmv78:
It uses the file in the folder, and does not depend on the tree. The file is actually just a copy of the gingerbread CameraHardwareInterface.h.
[Nexus One Android Development] mayurh:
Awesome work here, keep it up

Yeah maybe lowering the frame rate and limiting recording to highest quality before 720p,

The miui video settings take decent videos
[Nexus One Android Development] robs1971:
Hi Guys

Pretty new to all this so please bear with me.

I just flashed Tytungs CM9 Rom and want to apply the camera update Im not sure how to update could I get some instructions please.

Many thanks in advance.
[Nexus One Android Development] giol:
Flashed with CM9 (tytungs) and camera and video work ok. It crashes when i select panorama mode (i think it is panorama, its the 3rd selection after camera and video). I guess this is expected, do you need logcat on that?

Thank you for your work.
[Nexus One Android Development] legolas93:
I use your work on Tytung CM9 1.1 (HD2).

Photos and Videos Work :)

But in videos there is a lot of lag.

However very Good Work Man!

Thanks :):)
[Nexus One Android Development] rapmv78:
Thanks. Do you see the lag even with hardware encoding enabled? See my previous post for a flashable zip file which enables hardware encoding.
[Nexus One Android Development] onerider:
Camera and Video are fairly stable. Really nice job!

I'm wondering about remaining functionality, like Panoramic view. Is that something that is even possible with kernel 2.6 or would that require 3.0?
[Nexus One Android Development] legolas93:
I tried it..but after flash i cannot stop recording and after camera crash :(

I dont know if tytung used Hw encoding for his build
[Nexus One Android Development] pibedeayer:
Barcode Scanner not working

is Barcode Scanner working for you?

Not for me, think has something to do with this driver...must be using some cam mode that's not being supported, because although the app *can see* it doesn't take snapshots of the image.
[Nexus One Android Development] depraved:
I'm happy to report that the camera worked perfectly when I went to deposit my paycheck today with my credit unions mobile deposit app.:D
[Nexus One Android Development] tytung:
I included software encoding libs because I got the same issue when using Hw encoding libs.

If I replace with Hw encoding libs, I can start recording but I don't see recorded time at the top-upper screen. And I cannot stop recording as legolas93 said.

HD2 uses different camera source code in the kernel compared to N1.

I'm wondering if it is the cause.
[Nexus One Android Development] rapmv78:
Definite possilbility if the hardware encoder libraries are not compatible with your running kernel. If you have other compatible hardware encoder libraries for your kernel, try those and see if it helps.
[Nexus One Android Development] j00m:
offtopic: rapmv78 any hint for fixing: gallery is going to black sometimes? :D
[Nexus One Android Development] rapmv78:
That annoys me too. Have not looked into it, but I think it probably has somethiing to do with sdcard subsystem or the media libraries. I usually force stop it from manage applications and mostly works for me when I open next time. Give it a shot and see if it helps.
[Nexus One Android Development] TheYang:
Are you aware that Apps like google Goggles don't work?

Weirdly with Paper Camera for example I do not have a preview, but can take pictures...

With Goggles I do get preview, but can't take pictures!

Being on a Desire btw

Thanks for your awesome work! Today i've been able to make some exceedingly good pictures thanks to you!
[Nexus One Android Development] pibedeayer:
same story with Barcode scanner, never reads the QR code...
[Nexus One Android Development] yumcax:
Got it working quick and easy using the system image provided. Thanks!
[Nexus One Android Development] shahmohamed:
I think i found the cause it can't scan a barcode. It seems in bravo device, the camera got some issue to focus. Therefore can't recognize the barcode.
[Nexus One Android Development] lacasi:
hi

I currently use NEOREADER from market

... I'm waitung for camera update

lacasi
[Nexus One Android Development] camillelfg:
neither Barcode scanner nor google goggles work with tytung ICS 1.2 for me.

neo reader works sometimes.

Thanx
[Nexus One Android Development] Ojisan:
--------------------------------------------------------------------------

Hi there wanted to ask if you have every fix those lines on the Camera?

thanks
[Nexus One Android Development] llorn:
Hi,

I'm trying to build from source using your files in cm9 and I keep getting this error:

target Strip: libinput (out/target/product/triumph/obj/lib/libinput.so)
target SharedLib: camera.msm7x30 (out/target/product/triumph/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/LINKED/camera.msm7x30.so)
prebuilt/linux-x86/toolchain/arm-linux-androideabi-4.4.x/bin/../lib/gcc/arm-linux-androideabi/4.4.3/../../../../arm-linux-androideabi/bin/ld: out/target/product/triumph/obj/SHARED_LIBRARIES/camera.msm7x30_intermediates/cameraHal.o: in function qcamera_device_open(hw_module_t const*, char const*, hw_device_t**):hardware/qcom/camera/cameraHal.cpp:589: error: undefined reference to 'openCameraHardware'
collect2: ld returned 1 exit status

Any idea where this 'openCameraHardware' is supposed to be referenced from? Or defined?
[Nexus One Android Development] fabzbear:
Where can I find devs for hire on this forum. Someone who can dissect and take something from one ROM and add it to another next ROM?
[Nexus One Android Development] rapmv78:
The function would exist in libcamera.so from your device.
[Nexus One Android Development] llorn:
Thanks for the reply. It appears that my libcamera.so's function isn't named that then. I'll have to do a little digging to find out the correct name. Thanks again.
[Nexus One Android Development] rapmv78:
Then it could be probably called HAL_openCamera... or something like that.
[Nexus One Android Development] rapmv78:
Just updated the second post with a new flashable zip to enable panorama mode.

The black lines should be either completely gone or very rare as far as I can tell.

A bonus, Gallery hanging randomly should be fixed as well.

Enjoy and thanks a lot for your feedback. Please keep them coming.
[Nexus One Android Development] j00m:
as always, thanks :D
[Nexus One Android Development] rapmv78:
I guess you do not have clockwork recovery. You should be able to just unzip the file and see the structure of system folder. Replace the files from the directory one by one from that folder using adb to your device. You may also need to chmod the files with the appropriate perms.

Thanks.
[Nexus One Android Development] j00m:
yes everything works too great.

:D

No crash, no black lines. Gallery works :D

I still don't know what is panorama mode, what is it?
[Nexus One Android Development] inblues4u:
Panorama and Gallery working flawlessly thanks a ton rapmv78
[Nexus One Android Development] jully3881:
it is great on hd2 cm1.2 thanks , camera no FC
[Nexus One Android Development] Glen_H:
No more black lines and panorama mode working on HD2.

Also the gallery is working a lot better, only problem that still exists for me is when using slideshow. After 9 pictures the gallery hangs, it does not FC the top menu seems to react on pressing the back arrow but the last picture stays on screen.
[Nexus One Android Development] uoY_redruM:
So the flashable zip in the second post enables panoramic but no video unless you use the other link instead which is an image file?

EDIT-

Never mind, dumb question.

I cannot believe I'm taking a panoramic picture with the built in camera app on my Nexus One! Great job man.

Picture is green (panoramic) but I'm assuming that's known.
[Nexus One Android Development] freionluc:
Panorama picture is ok as in color but video is broke...i would prefer to have an at least 15 fps video recorder and not an panoramic cam...that is my opinion at least. Thanks for your hard work.
[Nexus One Android Development] mulerokeh:
my photo result is little bit green..

thanks for your great work..

Sent from my Nexus One
[Nexus One Android Development] rapmv78:
The images have a tint of green, which I am not sure how to fix. It was completely green earlier, which I was able to reduce quite a bit. Any more and it starts turning red. If there are any color conversion experts here, I could use some help.
[Nexus One Android Development] rapmv78:
On Nexus One, video works fine as it uses hardware encoding. Due to some software incompatibility, it does not work on HD2. You can see some older posts in this thread for more details. I do not have the device. So, am unable to debug the issue. You will have to rely on the HD2 devs for the fix.
[Nexus One Android Development] uoY_redruM:
Mine stutters when watching a playback after recording as well (Nexus One). I assumed it was a common issue.
[Nexus One Android Development] rapmv78:
Have you tried playing it back on a computer or some other device. I see stutters too but only on nexus one, not while playing on my computer.