Can we Reduce Photo Compression? - Nexus One General

I've been wondering if there's an easy mod to reduce the compression used in photos taken on the Nexus One. I haven't been able to find anything using search, so I apologise if this has come up before.
It seems the files produced by the camera are too small, restricting the potential quality the camera can produce.
We can edit the profiles_media.xml file to increase camcorder resolution and bitrate, so there should be something similar for still photos, right?

hi, where is this file?
profiles_media.xml
what did you actually mod in it for vidéo?
thxx
nocomp

Found it.. I think !
Was in /system/etc and its name is media_profiles.xml
But I still can not see how to change the compression of the photo on my Xperia Arc

Related

Camera Questions

Hi,
I have two questions which I couldnt seem to find an answer for:
1. Does anyone know the focal length of the camera on the Trinity?
2. Is there a way to save the camera image to TIFF rather than compressed JPG?
Thanks,
James.
you can always convert it yourself?
Hi,
Coverting the image back to TIFF is counterproductive since the damage has already been done by then. JPEG's specifies a lossy compression algorithm, and I have found in some cases annoying artifacts appear in my photos.
I was hoping to get ahold of the photo data before this stage, hence the request for the TIFF output directly from the CCD (or even the raw camera data). I'm not even sure what JPEG quality setting has been hard-coded into the camera's jpg encoder.
I anticipate the "its a phone, not a professional camera" reply by someone out there, but if there is a simple(ish) solution out there somewhere, then why not give it a go.
Thanks,
James.

How Can I improve picture quality ?

Hi
As I Was checking some pictures from my Jasjam, I've noticed that the quality of the pictures is nice, but the JPEG compressing it to 250Kb (In its best quality) by removing allot of details from the pictures.
is it possible to change the software to save as RAW image, without JPEG compression ?
Or maybe change the JPEG compression to 100% quality ?
Do you know any camera software that can do that ?
Tnx
Oren

Can't get 5MP quality -- pls help!!

I just realised today, when taking pictures with setting to superfine, 5MP resolution but when i viewed the images are at low quality setting. I guess the image file should be around 500Kb but i'm getting only at 45Kb.. Does anyone face similar problem? This just happened, my previous photos taken at similar setting i'm getting a good high resolution, ie file size ~500Kb. Pls help???

Media_profile.xml modifications

I was looking at the media_profile.xml file from the Xoom forums (posted and edited by bracken21, Thanks for the work) and noticed that the file was different than the Asus TF one. Instead of trying that file on my TF I modified the TF profile.
I have experienced no problems so far with this modified file but try at your own risk, replacing the file with the original should resolve any issues you might experiences, but no promises. I highly recommend backing up your own media_profile.xml instead of using my backed up original.
A few questions for anyone that knows.
For the camera app what is 'high' quality? I assume it is the 720p profile do to the outcome I had. I ask because in the media profile there is no youtube video quality but is on the app. other video quality names aren't listed in the app either.
What do the video decoder and audio decoder caps do exactly? I turned them off only because they where turned off on the Xoom, and I wanted to see if it prevented video from playing or caused glitch's (I saw no issues in the video I played)
I set the camera to the rear and "high" for quality then recorded a video before the changes and one after then transferred them to my desktop. The details in properties shows both at 37 seconds long and a frame rate of 1280x720. the data rate for the 3gp was 7478kbps while the mp4 was 20350kbps. Total bitrate increased from 7574kbps to 20446kbps. Frame rate dropped from 28fps to 24fps. file size increased to 93MB from 33.7MB. I noticed a small improvement in quality at full screen on my monitor, it was a slow video so I couldn't tell if it had more or less tearing.
more info: You will need to reboot to see any chances. setting any setting the camera can't use will result in the camera app force closing. I tried setting the frame rate to 40 in one profile and the camera app crashed every time I tried to access the rear camera (that profile was already selected so was auto loading). placing the xml with the correct framerate back into the /system/etc folder and rebooting fixed the issue.
Since it is a busy day today for me I just did some quick modifications. If anyone else wants to make a modified file with better changes (specially someone who knows audio/video better) it would probably be appreciated by all.
Placing this file where it needs to go requires root and a file browser that can mount the system folder in read/write.
The XML file should be placed in /system/etc. the full path is /system/etc/media_profiles.xml
changed:
All 3gp encoding to mp4 encoding
Rear Camera 720p quality bitrate from 8,000,000 to 25,000,000
Front Camera high quality bitrate from 4,000,000 to 8,000,000
Changed both "imageencoding quality from 90/80/70/20,000,000 to 100/99/95/250,000,000
Turned off videodecodercap and audiodecodercap
Again thank you to bracken21 for doing the Xoom's profile, which provided a base to go off of.

Camera mod?

Hello
I was wondering can we improve camera quality on our Redmi Pro, especialy video recording. I am very pleased with this device, except camera quality. This is not bad hardware or sensor, this is just bad software implementation and optimization. I hope that Xiaomi will improve something in future updates.
I have tried to change some settings in camera app. For best still picture quality you can set saturation and cotrast to high, and sharpness leave at medium. With this settings pictures will look more punchy and vibrant. When you put sharpnes also to high, picture look to much artificial with some artifacts.
For Video we do not have similar settings like sharpnes, saturation and contrast. It is shame that with Sony IMX258 we have such soft video recording.
I have tried to use some other camera apps, and no camera app can improve video recording quality. With Cinema FV5 you can change bittrate to 30Mbps but quality stays the same.
I noticed that in low light conditions video recording drops to 15FPS and a bitrate around 10-12Mbps with stock camera. This is awfull image quality. With google camera, recording video in low light is better, bittrate is 17Mbps and FPS is 30. Image is a little bit darker, but much much smoother than stock camera.
I have question now. What libs and settings google camera is using for video recording? It is for sure something different from stock camera.
I Have tried to edit omega.xml in system/etc/device_features. I have copied gemini.xml, edited vendor string from qcom to mediatek, set permisions like the original file. Then I renamed original to omega.xml.old and gemini.xml to omega.xml. Rebooted and camera app worked just fine. In video modes I got audio zoom feature, and in manual picture mode unlocked everything. But there is no 4K recording, regerdless that in xml file 4k was set to 'true'.
So where are the others settings stored?
I have read something about editing lib files, shared objects *.SO files. And this is very hard to edit or do somekind of reverse enginering. Maybe someone have knowlege to do this? Or we do not need to edit lib files at all?
I am ready to test everything on my phone, so if someone have idea how can we edit camera app, google camera app, or something else to enable 4k, to improve qulity of 1080p recording, or even enable 1080p 60FPS mode.
Also I have tried to edit build.prop and add line persist.camera.HAL3.enable=1 and this will do nothing. In system lib and lib64 folder I have found files with names HAL3a.V3. I dont know is this mean something.
I am just thinking that is a shame to have very capable helio x25 and a solid sony sensor and such a mediocre image quality.
Thanks everyone in advance, and I hope that we will find some good ideas for improving our Redmi Pro
You have unlocked manual camera mode including long exposure/shuttertine and manual focus? Have you tried these two features? For me just the buttons are unlocked, but no changes if you shoot a photo or used the manual zoom has no effect. Could you explain "edited vendor string from qcom to mediatek"
You are wright, I forgot to mention that those two functions do not work. I have decompiled stock camera app from system to see xml and smali files. I dont have enough knowlege to do some mods and recompile it. Maybe someone can help. So far, i have seen in those file that camera app recognize if your vendor is mtk or qcom and base on that unlock 4K video recording and other functions. We need help from someone to look at that app and try to modify it, to change some values etc.
Mr.Nice.ba said:
Hello
I was wondering can we improve camera quality on our Redmi Pro, especialy video recording. I am very pleased with this device, except camera quality. This is not bad hardware or sensor, this is just bad software implementation and optimization. I hope that Xiaomi will improve something in future updates.
I have tried to change some settings in camera app. For best still picture quality you can set saturation and cotrast to high, and sharpness leave at medium. With this settings pictures will look more punchy and vibrant. When you put sharpnes also to high, picture look to much artificial with some artifacts.
For Video we do not have similar settings like sharpnes, saturation and contrast. It is shame that with Sony IMX258 we have such soft video recording.
I have tried to use some other camera apps, and no camera app can improve video recording quality. With Cinema FV5 you can change bittrate to 30Mbps but quality stays the same.
I noticed that in low light conditions video recording drops to 15FPS and a bitrate around 10-12Mbps with stock camera. This is awfull image quality. With google camera, recording video in low light is better, bittrate is 17Mbps and FPS is 30. Image is a little bit darker, but much much smoother than stock camera.
I have question now. What libs and settings google camera is using for video recording? It is for sure something different from stock camera.
I Have tried to edit omega.xml in system/etc/device_features. I have copied gemini.xml, edited vendor string from qcom to mediatek, set permisions like the original file. Then I renamed original to omega.xml.old and gemini.xml to omega.xml. Rebooted and camera app worked just fine. In video modes I got audio zoom feature, and in manual picture mode unlocked everything. But there is no 4K recording, regerdless that in xml file 4k was set to 'true'.
So where are the others settings stored?
I have read something about editing lib files, shared objects *.SO files. And this is very hard to edit or do somekind of reverse enginering. Maybe someone have knowlege to do this? Or we do not need to edit lib files at all?
I am ready to test everything on my phone, so if someone have idea how can we edit camera app, google camera app, or something else to enable 4k, to improve qulity of 1080p recording, or even enable 1080p 60FPS mode.
Also I have tried to edit build.prop and add line persist.camera.HAL3.enable=1 and this will do nothing. In system lib and lib64 folder I have found files with names HAL3a.V3. I dont know is this mean something.
I am just thinking that is a shame to have very capable helio x25 and a solid sony sensor and such a mediocre image quality.
Thanks everyone in advance, and I hope that we will find some good ideas for improving our Redmi Pro
Click to expand...
Click to collapse
Hey I think you get de wrong command on build.pro, the right one in "persist.camera.HAL3.enabled=1"...
And about 4k video... I don't think it's gonna work cause the processor maybe can't handle this. And 1080 at 60fps maybe it's possible.
MathePro said:
Hey I think you get de wrong command on build.pro, the right one in "persist.camera.HAL3.enabled=1"...
And about 4k video... I don't think it's gonna work cause the processor maybe can't handle this. And 1080 at 60fps maybe it's possible.
Click to expand...
Click to collapse
1080 at 60 fps maybe work
So, any one knows what exactly on Android system handle all this?. It's on encoder? It's on camera driver? I don't think of just a "app" will change anything. It's has something like a encode line or a lib. Any modder? I had looking for a mod for that sensor but until now, the only thing what works is about Hal3 on build.prop.
Anyone know how to get 60 fps 1080?

Categories

Resources