yashsingh1/xdaforums huggingface dataset:
[HTC One S] TechieGeek:
I feel like this is the same as a mod which makes the resolutions of pictures we take 10,000 x 10,000 or something like that (don't mind the values). The point is, the camera can only record up to what that sensor can record. Trying to record anything higher than that will only fill a file with 'useless' information to make it bigger (as in, if the camera hardware can't physically record more than something, it really can't record more than that rate).

Or you can look at it another way. Our cameras save JPG photos. What would be the point of saving them as RAW photos, just for a minimal quality boost? The tiny camera that was engineered to be small and power efficient just can't take photos the size of some of these newer DSLRs.

A camera phone and 40Mbps just don't mix .
[HTC One S] pirlano:
I think sensor is really not bad since can do something like 100/120fps with 800x480, also there is a BSI chip that help a lot in low light condition (so framerate with low light it's a bit better), so i don't think that increasing bitrate is a bad thing. I think we are much more limited with emmc write speed (20/30mbps). Also i think that 40mbps video are too big. 20 is a good compromise and works good with our emmc :)

I'm going to search fps cap for personal purpose/education (in both camera.apk and camera *.so libs, pretty sure this time that fps cap is not in media_profiles) in normal video recording (it should be 30 or 31, i remeber i've seen somewhere the value 31 hardcoded), i really think that our phone can go higher :D
[HTC One S] psylooooo:
Thanks for that, actually my phone is at repair center, i'll try that when I receive it (I hope it will be a S4 model).

Someone can say if it makes real difference between stock bitrate and 20 Mb/s bitrate ?

Thank you again !
[HTC One S] DoogleDood:
I apologize if I've missed something, but how do apply this mod?
[HTC One S] jboy15:
Any samples between stock and 40 mbps? Also how many mbps is the original?

Sent from my galaxy one s3 lol
[HTC One S] ICWS:
I use 20 Mbs and it looks great. There aren't "pixel blocks" anymore when you move fast while recording. So yes there is an improvement.

I think 40 Mbs are too much, but modifying the framerate would be awesome.
[HTC One S] pirlano:
after some research i found that media_profiles fps are capped by camera.apk, but after camera.apk hack (stock values are 15fps for MMS, 30fps for video, 120fps for slow motion video) there is an other cap in some *.so lib:

E/CameraSource( 4054): Requested frame rate (60) is not supported: 5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31

D/CameraSource( 4054): Change frame rate into default value: 31

(this message came from libstagefright.so, but i can't still find where values are stored, maybe in other libs, unfortunately nothing is open source and RE is hard, still searching...)

i'll be very happy if someone more aknowledged can help me :) currently studying open source implementation of that part (not One S one since they are closed libs), a lot of parts are very similar

EDIT: FOUND something very similar: http://source-android.frandroid.com/frameworks/base/media/libstagefright/CameraSource.cpp

EDIT2: http://source-android.frandroid.com/frameworks/base/libs/camera/CameraParameters.cpp

this one should communicate with camera app (i hope), searching KEY_SUPPORTED_PREVIEW_FRAME_RATES or similar now :D it's in camera.msm8960.so

also camera.msm8960.so is very important and contains slow motion multiplier value, maybe a jpeg quality cap too

i've very little time to research since i'm finishing exams, i hope to finish my research and share all results (maybe helpful for One X too)
[HTC One S] iheartn1:
you can try looking at: http://xdaforums.com/showthread.php?t=1533238

this mod works on our phone too btw
[HTC One S] xxquicksh0txx:
I was just getting ready to post that...
[HTC One S] pirlano:
this mod is NOT useful for us, since jpeg compression is already set to 0 in Sense 4 by default (thx HTC) and video bitrate can be modded easily via media_profiles (like zeroprobe did), there are some caps in camera.apk but seems not used at all.

All i'm researching is something else: i'm studying how slow motion works, and how to remove fps caps, and other caps in the libs.

I'm currently searching default camera parameter, maybe i found something hardcoded in framework.jar (other phones got a *.xml for camera parameter but it's not our case)
[HTC One S] BackDaws:
But people have posted that its working so surely this mod IS useful ?

have HTC capped 1080p down because of the 16GB or is the ONE X also capped at 13mbps, what bitrate is the Galaxy S3 running at in 1080p.

Also i complained about the 1080p quality in the One S Q&A that the picture quality was very blocky and digitized when moving or walking and recording and was basically told my phone was faulty, this thread proves otherwise now doesnt it :)

EDIT: im using the 20mbps mod and im well impressed now, the slight stutter and blockyness has gone :) the movement is now very smooth, thanks mate this is a keeper :)
[HTC One S] phoenixita:
Working on CM9?
[HTC One S] ICWS:
Is it possible to improve framerate stability? For example in dark areas the framerate goes down to nearly 15 fps and this looks terrible. When I used the Xperia Arc S from my aunt I noticed that it records at stable 30 fps even in low light conditions. The recorded video was darker but you still could see details. Any chance this could be managed on 1S?

EDIT: By the way the Arc S just has 1,4 ghz singlecore!
[HTC One S] pirlano:
Of course, because NODO-GT Sensation Mod includes modded media_profiles.xml, but modded camera.apk is NOT useful (it only disable Continous Auto Focus for Sensation, no other changes)
[HTC One S] BackDaws:
Ahhh right sorry I misunderstood :)
[HTC One S] zeroprobe:
Updated mod

Camera.apk bitrate limit raised to 20Mb

Increased JPEG file cap. Not sure how this works if you would like to test and see if you can get bigger files I would like to know.
[HTC One S] OCedHrt:
Any way to install Camera.apk without root? I'm very interested in larger jpgs.
[HTC One S] zeroprobe:
No you need to be root.

The jpegs only get a little bit bigger when there is huge detail in the shot.
[HTC One S] mannequin:
i think Sensation camera mod offered the uncompressed pictures option (maybe i'm totally wrong though). wondering if it's possible here.
[HTC One S] Will972:
After flashing, camera is still stock camera and tried to push via root explorer and no camera .. what's wrong

I'm rooted and running trickdroid's rom
[HTC One S] th3_g00b:
Ok, so I really like the video quality but I have an issue that I keep on having. When I play back my 1080 videos, it will constantly freeze up for 5-10 secs and continue. Anyone else see this? If so, does anyone know the fix? Should ibjust flash again?
[HTC One S] Darknites:
I didn't get that but you could try flashing again and wipe cache and dalvik after and then when booted up clear data for the app.
[HTC One S] th3_g00b:
Ok, so I flashed it again. 40 kept giving me the issue but 30 works great. Don't know what the issue was with 40 but eh. Thanks :)
[HTC One S] Darknites:
Np dude glad you got it sorted.
[HTC One S] TheEndHK:
S3/NoteII is on Sony 8M cmos and I notice all Sony cmos tend to produce better video in terms of framerate and quality, all Sony digital camera also shoot good videos. Other reason is the electronic stabilization in HTC doesn't work.

---------- Post added at 07:39 AM ---------- Previous post was at 07:32 AM ----------

I was a video fanboy who playing around with DV/HDV and video encoding on doom9.

I remember the sensor design is different in the photo/video machine. It's easier for a photo sensor to produce usable video nowadays than a video sensor to produce good photo. The DV market is getting lower and lower down.

---------- Post added at 07:44 AM ---------- Previous post was at 07:39 AM ----------

I don't have any problem with the 40M. I use MX Video Player.

Note: I would like to let you all know we can shoot 100JPG/20M/vol-shuttle now in One S JB.

http://xdaforums.com/showpost.php?p=35391761&postcount=352

Rsotbiemrptson told me in this post that we can use this One X JB mod cam on One S JB. I've tested it, it looks like working no problem. Just copy and replace the camera.apk in system/app, reboot the phone. hmmm.... I'm still waiting for the 40M ver from ZeroCamera.

This mod cam might has little bugs in photo/video from reports, would consider it a beta ver. Furthermore, that OP said the image quality might be worse than in 4.0.4 in some conditions because a bug in HTC JB cam over compress JPG but I did compare it with zerocamera and I don't found much of a different. It's extremely hard to compare ICS and JB about JPG compression because the latter one got a much better focus and tend to get a shaper picture.

I played around with the One S JB stock cam yesterday, I think the color towards to neutral than in my ViperOneS 1.2.0. For the exposure problem, they(ICS/JB) both has it but performs differently. While at the same place I got no over exposure in JB but I got it in ICS(I rolled back ICS to do test), vice versa. In general, I think JB is a bit easier to get over exposure but I need more time to do testing. We got more exposure tweaking options in this HOX JB cam mod and nice backlight scene in JB cam, so I think over exposure problem might not be a big problem.
[HTC One S] apg5031:
Very nice mod thank you...
[HTC One S] TheEndHK:
I played with the HOX JB cam mod on my HOS JB yesterday a whole day, the camera is working perfectly, just no more 40M. But the 20M in HOS JB looks like better than 20M in HOS ICS, so it's still acceptable.

The over exposure problem is really there and more worse than ICS, you have to decrease one step of EV all the times at both indoor/outdoor places and sometimes you might need to decrease it in two steps during in extreme environments. Yes, your picture will be a little bit darker but you all know that, a photo with a bit under exposure(you can turn the brightness up in photoshop later) is better than a photo over exposure and all details wash out and loss.

The white balance isn't as good as ViperOneS 1.2.0 in my personal opinion(I found 1.2.0 has also better WB over 1.2.1) but very very near, no different most of the times.

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

I just rolled back to ViperOneS 1.2.0 because HTC JB411 really consumes more battery and for the over exposure problem and no 40M, I don't really like it.

This is a HOX JB cam and mod it to works on ICS, I'm running it now and looks like no problem at all. I will test it and see if the focus could be solved. Not sure the focus problem coming from the camera.apk alone or from the whole sense parts. If the focus can't be solved in ICS, I have to get back to JB sadly.

Note: After 2hours of intensive testing, I found many interesting results.

1. White balance is primary rom based, the WB doesn't seems to follow the color in JB but follows my ViperOneS 1.2.0 style. Very similar but I personally like ViperOneS 1.2.0 a little bit more accurate and vivi. Only small different actually.

2. Over exposure problem as same as in JB. So, it is the JB's camera.apk problem.

3. Focus speed should be back to good old 4.0.3 level but not as fast as JB. I think 4.0.4 camera.apk of focus is too buggy, by fixing it using this camera.apk instead, the speed returns to normal(4.0.3).

4. Picture sharpen and denoise post-processing follows the 4.0.4 quality. JB got a better quality on sharpness control(not as over sharpen as ICS but still not perfect) and noise level(more usable of 200/400ISO but don't expect huge improvement). So you will see that ICS always has larger file size by 10~20% because of over-sharpen.

Ended up, if you want to stay with good old ViperOneS for better battery and apps compatibility, use this HOX JB mod cam to replace the ICS ZeroCamera. The focus bug has been fixed, you just need to deal with the exposure problem mainly. You can still shoot video at 40M, just use zerocamera 's media_profile.xml and select 20M in this HOX mod, it will actually shoot at 40M. Overall, I recommend to stick with ICS only if you want to have extra a bit more focus speed and sharpen/denoise algorithm.
[HTC One S] :
Thank you TheEndHK I have learn't alot from you in the last few days regarding camera's it's been interesting and especially thanks for your detailed posts, I have even been playing around myself a little and trying arty farty shots. Not bad huh for a point an click guy :D
[HTC One S] lthawker:
i try any sence stock camera from 4.0.3 to jb 4.1.1......but photos are so noisy...i upload example...is it normal or my camera problem???i try many mods too...
[HTC One S] Darknites:
It has to be the camera because even AOSP pics look better that.
[HTC One S] :
Agree completely! Even on full zoom and low light my pictures look better than that! And when ASOP is cleaner than yours you know the hardware is buggered!
[HTC One S] lthawker:
but what about lg camera?....why lgcamera can snap photo like this but sense camera cant...
[HTC One S] :
Messed up install? Have you tried with a completely clean rom to compare? Saying that just looked at the pics and they still look like sh1t and thats micro condensed whereby resolution should be a lot crisper.
[HTC One S] lthawker:
I try anything...you say that lgcamera has problem too?i snap photo then zoom and take screenshots with phone...can you upload some photo that take indoor?
[HTC One S] :
Taken in pitch blackness in my living room.
[HTC One S] lthawker:
tanx man...but i think your photo is little blurry...& not in full res(8 mp)...can you upload full res photo?
[HTC One S] ICWS:
Just tested virtuous jb Rom and video recording finally seems to be smooth. Like 30fps smooth.

Now I have to test this mod. With high bitrate it could be perfect.
[HTC One S] TheEndHK:
LOL ... Since OP has not been visited this thread anymore because he is too busying now or don't even know One S JB out yet. We need to find some fixes for our ICS/JB cam.

I gave the JB + HOX JB mod cam for another hours of intensive testing again, pretty much all at the exactly same locations/lighting. To take a summy.

1. Easily over exposure both indoor and outdoor. Almost always need to -0.5EV at outdoor daytime. Under direct lighting environment at indoor/outdoor, -1EV is recommended though the photo will be darker.

2. White Balance not as accurate as ViperOneS 1.2.0. Color tone more a bit towards netural when it's accurate but still in vivid style, only minor different. But because of both WB/Color not as right as ViperOneS 1.2.0, sometimes it will result in even more of vivid at the end when things goes wrong.

3. Really fast focus and more accurate, probably doubled performance. Burst shot mode also get a lot faster, more than 3fps now, expected up to 5 ~ 6fps.

4. Better sharpness/denoise implemented but would consider it only a small bug fix ver based on previous algorithm. Overall remains over-sharpen style(HTC should lower it a bit more down) and when you see the edge in photo now it got smaller artifacts(still has it, just not that noticeable now).

You can turn the sharpness down in camera but the result isn't good. Do it in photoshop better than a crap photo editor in camera. It's very easy, you can use batch processing in photoshop if you know how to do it.

Conclusion: I think it's possible that a small ND filter does built-in our One S though I also highly doubt it(I only know Nokia Pureview808 got ND filter). But it looks like JB just get a brighter photo all the times with even faster or at the same shutter speed. I went down to a shopping center, set it 400ISO to snapshot guys at the exactly same place. I found JB not only does the photos got more light in but the shutter speed seems faster(people movement got a bit smaller ghost effect). It's questionable if both 404 and JB use the same apecture rate and the latter one not only more lighting and also faster in shutter.

In 404, the aperture may actually limited to f/2.2 ~ 2.4, so the focus sucks and shutter slow made it easy to hand shake. However, it is understandable because with f/2.0 needs HTC more image pro-processing skills, hard to do tuning(so only HTC One and Nokia 920 got f/2.0)and HTC thinks now is the time to force f/2.0 in JB.

Note: I just figure that 100iso has some bugs, easy to over exposure under sun light and 200iso seems work fine.
[HTC One S] Darknites:
Thanks for the tip on the exposure, I always found that really crap and missed out on some pics because of it. I do find that JB camera is better then ICS.
[HTC One S] :
Damn thought I had reposted it last night sorry. Will take another later when its dark and you were right I hadn't taken it full res blame TheEndHk he had me doing arty farty stuff :D
[HTC One S] TheEndHK:
100 ~ 150iso possible been bugged out on both HOS stock JB cam and HOX JB mod cam. Under great sun lighting(cloudy day has no problem), it will make the photo over exposure. Set it to 200ISO may fix the problem(not sure yet), I need more time to do testing.
[HTC One S] :
Well stop wasting time on here and get clicking! :D
[HTC One S] TheEndHK:
http://xdaforums.com/showthread.php?t=1890547

You're on TD8.1, right? You run this mod cam now?

I did more testing yesterday and I found JB really made the focus a lot faster and more accurate in low light condition. Though if you use the mod cam in the link above(not sure if it will introduce the 100iso over exposure bug under sun light like JB in ICS, no time to test it) did fixed the focus issue in 404 but the speed no chance to beat JB, you will get extra focus performance up to 50~100%.

---------- Post added at 06:40 AM ---------- Previous post was at 06:39 AM ----------

lol

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

I just tried to put the zerocamera 40M media_profile.xml in JB. Guess what? I can shoot 40M vids now with this HOX JB mod cam, just select 20M in it and it starts to shoot at 40M.
[HTC One S] Darknites:
Don't really play with the settings other then white balance since that can be dumb at times.
[HTC One S] :
I did some messing and focus is awful and iso can be funny dependant on light conditions, living in England I have heard of this s.u.n thing but we never get to see it I thought it was a myth! JB is better but its the niggly things about it that annoy me that means I'm not willing to trade off just yet and move from TD. I have been using Zero same as most but will give that one you linked to a try. Will say thanks here as Darky above robbed your thanks and out of them now till tomorrow so will thank you again then :D
[HTC One S] Darknites:
Lol darky, hit thanks for you.
[HTC One S] alphaeagle777:
Using ZeroCamera
[HTC One S] lthawker:
hi dudes..i snap photo with this mode...but something wrong...zoom in photo & see the problem...i try clean install of any rom with any change setting like iso & ...but no more hope...plz help
[HTC One S] :
Why is it zipped? Just attach the .jpeg image to the thread.
[HTC One S] lthawker:
I want to checked full res photo...
[HTC One S] disiz:
Thanks a lot for this mod !! :) Really great to take pics with volume buttons, but it only work with up buttons, is it normal ? :confused:
[HTC One S] :
Yes.
[HTC One S] lthawker:
Any chance for new version in jb?
[HTC One S] Darknites:
I think we be lucky to get it since he not been online since the 1st
[HTC One S] HD Case:
Hi All,

Can anyone tell me if ZeroCamera works with latest TMOUS 2.35 ota with h-boot 1.14? I can't get it to show up at all either on Trickdroid or on AOSP/Kang roms.

Thanks
[HTC One S] Darknites:
Em should work on 2.35 its still 4.0.4 but it won't work on AOSP roms.
[HTC One S] jmcoffey:
See the post I posted a few back about manually installing.
[HTC One S] HD Case:
Thanks everybody. I really only wanted it on AOSP for the obvious reason that you need a decent camera on AOSP. I'm pretty happy with the Sense cam/vid, but maybe I'll give it a try anyway. :eek:
[HTC One S] zeroprobe:
Updated the camera based off lyapota's - One X HTCCamera JB Plus, Extrim edition. Many Thanks to him.

Check the first page.
[HTC One S] Darknites:
Sweet, run off to try this lol.
[HTC One S] thedarkside44:
great work ! I'm using v3 on jb and it's working good for the moment !
[HTC One S] dave il barbaro:
Will v3 work with ICS 2.31 base???

Sent whit HTC ONE S
[HTC One S] Elloco305:
You can flash a try. Though OP suggest that it is indeed intended for JB
[HTC One S] TheEndHK:
We all been long waiting for you... lol
[HTC One S] Evil-Monkey:
Can you add the feature when you can select either 40/30/20 mbs from cam app for the ICS version too?

That would be sweeeeet!

echo en Android
[HTC One S] lthawker:
is there any improvment in photo quality?

i try many sense camera modes but when zoom in photos...many black noises shown...
[HTC One S] PcFish:
Tried flashing and manually copying files, didn't work for me. On latest TMOUS Trick.
[HTC One S] dave il barbaro:
Tested it... It doesn't want to work on 2.31 ics base

Sent whit HTC ONE S
[HTC One S] pottyvick:
What does the image encoding quality do? does it affect the jpeg quality?
[HTC One S] TheEndHK:
The default JPG quality in JB cam is already like 90 ~ 95%. You can force it 100%(will get 50% bigger size) but actually almost no different until you zoom in 200 ~ 300% in a 100iso photo.
[HTC One S] TheEndHK:
In terms of only photo quality, I think 100iso at outdoor in 4.0.4 should be a little bit better than JB during in my experiences because the RAW data is larger in 4.0.4 who mentioned by the dev of lyapota. However, 200iso or above should not have a different and you got a much better focus speed in JB, it is also very important to photo quality as well.

I think sense cam has very small black noises at indoor but really need to zoom in to spot it. Is that really important?
[HTC One S] lthawker:
I try lgcamera 6.4 with iso 200 and compare with sense...i can only say:magic...no noise at all...test youself dude...i wish can port lgcamera core to sense...because i love sense camera menu...
[HTC One S] Darknites:
Have you tried JB yet and see if its still the same?
[HTC One S] lthawker:
I update to jb and still black noises every where...just lgcamera solved my problem...i had htc one x before and same problem...i think sense camera software has problem with iso and shutter speed...
[HTC One S] TheEndHK:
I think the denoise/sharpen isn't that good in stock camer which is the same case in Sony Xperia series but all stock cam provide faster focus with better interface.
[HTC One S] Darknites:
Still think his phone is bugged because my pictures don't look like his even with using the pc to zoom right in.

lthawker, can you post some new pictures but without you cropping it please.
[HTC One S] lthawker:
in full res???(8 mp) or resize them?
[HTC One S] Darknites:
Ya full size with nothing done to it.
[HTC One S] TheEndHK:
I think his goal is to get rip of all noises but this is quite to the extreme and not preferable because focus speed/accurate also affects the overall image quality. I can notice little black noise at indoor in some cases but might need to zoom in 300~400%.

Actually, you can get better JPG quality with V2.3 media_profiles.xml, V3.0 media_profiles.xml is just a stock media_profiles.xml without modified. The camera force 100JPG isn't that working good as reported in lyapota's own thread(the image may a bit tend to soft), I found to use V2.3 media_profiles.xml(forced 100JPG) and disable JPG force image quality in camera would get a better result.
[HTC One S] Darknites:
Hmm still seem worse then mine from the pictures he posted.

I'm Blackout rom v1.5 with that mod and I'm it just seems not to be as sharp as it was in v1 so I try that out.
[HTC One S] TheEndHK:
yup, disable the buggy force jpg quality in camera and uses the V2.3 media_profiles.xml(100JPG), you shall get back the quality.

But to be the honest, I think overall still not as sharp as 4.0.4 because HTC tuned the sharpness level a bit down in JB.
[HTC One S] Darknites:
For something that's been resized it still looks a bit off but maybe xda mess that up.
[HTC One S] lthawker:
I can not put full res photo here...size of them is too large...i can email them