Make constant frame rate un low light conditions - Xiaomi Redmi 3 Questions & Answers

Hi people
I love my R3P except for its video recording capabilities
When we want to record something in low light conditions, the phone tries to get as much light as possible, by lowering the frame rate
I tried to change settings in media_profiles.xml, put the minimum frame rate to 30fps but with no success
So I guess that it has to be tweaked in lib files, just like people did for the OnePlus X : http://forum.xda-developers.com/one...-custom-camera-hal-4k-uhd-dci-30-fps-t3315382
Maybe some of you can let me know what files are related to camera properties, or even help me ? (Who knows?)

I made a big discovery: on AICP CM13 ROM, vidéo recording is smooth
Please I need you to know what file I need to replace to get this result

C'mon guys I know that you know please it's something really important I'm pretty sure that it matters for you too

Related

[Q] slow-motion camera or port of droid X's camera?

Is there a way to take slow-motion video with the Vibrant camera? I know that the droid-X has one but i cant find a port or anything that will work on the vibrant.
so if anyone knows if there is either a port of the Droid X camera or maybe a slow-motion app I would appreciate it.
bpackard said:
Is there a way to take slow-motion video with the Vibrant camera? I know that the droid-X has one but i cant find a port or anything that will work on the vibrant.
so if anyone knows if there is either a port of the Droid X camera or maybe a slow-motion app I would appreciate it.
Click to expand...
Click to collapse
The way most consumer digital cameras do slow-motion video (and video at all) is to record many different frames on the camera's CCD chip. The Vibrant's CCD, for example, can take 2560x1920 still images. It also records 1280x720 video at 30fps. To do this, it puts 4 different frames on the CCD, one after another. (1280 times 2 is 2560, so you can fit two frames across and two frames down, so that's 4 images on the CCD at once.)
To do slow-motion video, you just need to subdivide the CCD even further to fit more frames on it. This is why cameras that support slow-motion video record it in lower resolution--you're not really speeding up capture so much as stuffing more frames on a single CCD, which has limits in how quickly it can refresh.
On the Vibrant, you could theoretically do 120fps in 640x480 resolution by subdividing the CCD into a 4x4 grid (instead of the 2x2 is uses to do 720p 30fps). This gives 4 times as many frames per CCD refresh, which means 120fps. (Or you could do 720x640 at 60fps by subdividing into a 4x2 grid--half the pixels of a 1280x720 at twice the frame rate.)
Are the camera hardware drivers open source? My knowledge of Android stops at the API--I've never done any low-level device driver programming. If you can get the camera driver source, this should be possible. But I have no idea how difficult it would be.
(I'd love to see this feature, though--I found this thread searching around to see if anyone had done it already.)
Bump. I'm assuming this is a development dead end until we get the camera driver source...but it'd still be awesome to have this feature on more Android devices.
chuckbass... what you says is no sense, forgive me, but that isn't the way slow motion works, if there is a way to get a frame from an area of the ccd and subdivide in 2x2 you will get 4 incoherent images cos each will be sepparated by half resolution
Slowmotion it's dependant on how fast you can get the whole frame from the CCD, resize, apply some compresion or not, and store
in this part the RAM memory has a vital role
the proccess is:
1) get the whole frame from ccd, it's can be done by api's, but I think may be slow, but you need to test first, but through apis is more compatible
2) resize the frame, at least you can get a resized by hardware image, I think through apis the cdd can return an jpg
3) store to ram in raw mode or the jpg
repeat at fast the cpu can until fill the reserved ram
this may works to do a burst slow motion for a few second but very fast frame rate
another ways is to apply an algorithm and store in ram just if it's necesary but better to store directly into a fast SD memory to record continuously, here you can do test to find the max memory you can store to SD and maybe not using compression but just store in raw mode (like a bmp, or rle bmp)
there is no relation with resolution/frame rate and how much slowmotion you can do
I mean, if you can record [email protected] that doesn't necessary means a [email protected]
samsung omnia i900 can get arround 120 fps in 320x240 in a low bitrate video, works fine with good light, and [email protected]
Galaxy S can record [email protected], but has a better cpu and gpu
It's depends on cpu power, and/or gpu (and not in MHz)
I don't know about android programming, and just a few useless things in winmo, but I'm glad if I can help with anything
it's seems that not much ppl is interested on slowmotion, funny, cos is a very nice feature!
if there slowmotion in galaxy S or optimus 3D I will buy, but for now I will get a Casio EX-F100 and a Nintendo 3DS soon

[REQ] New Camera App...???

Hello, i was wandering, how come noone has developed an app or a tweak for the camera that will give us full control of the settings (shutter etc - i know aperture is a hardware thing).
I mean to give us the ability to choose for example shutter times for up to 30" or even more, since this is a software related issue. The main purpose of something like that is for nightsky portraits, that would give pretty good results, because of the camera's low f ratio and focal length
try Camera FV-5 in the play market
actually, that's a kick-a$$ app! just tried it, and works like a charm, even though, due to hardware limitations, long exposure is limited to 640x480

Is There a Way to Increase the Camera DPI In the Camera Settings?

As the title suggests, I'm curious as to a way to increase the DPI for the camera app to increase the quality of photos taken (when zooming in on a crop of a photo). I remember from my Note 3 that there used to be a way to change the quality of the photo (best, better, etc.) which was a way of changing the DPI for the photo taken.
Even if there's a way to do it with root (say by modifying the build.prop file), any advice would be great!
As an alternative, is there a camera app that allows for you to change the DPI and fully utlize the camera hardware? I used to use Camera Zoom FX (Premium) but it didn't play nicely with some of the phones (namely Motorola) that I have used that app on.
Thanks for the tips, help, guideance, etc.!
Not sure what you mean, you can set up to 20mp in the settings. Thats even more than the rgb sensor is capable of. I guess this upscales the rgb sensors color info to the 20mp picture the monochrome sensor is taking. I cant think of anything that Would utilize the hardware more
rob.allen78 said:
As the title suggests, I'm curious as to a way to increase the DPI for the camera app to increase the quality of photos taken (when zooming in on a crop of a photo). I remember from my Note 3 that there used to be a way to change the quality of the photo (best, better, etc.) which was a way of changing the DPI for the photo taken.
Even if there's a way to do it with root (say by modifying the build.prop file), any advice would be great!
As an alternative, is there a camera app that allows for you to change the DPI and fully utlize the camera hardware? I used to use Camera Zoom FX (Premium) but it didn't play nicely with some of the phones (namely Motorola) that I have used that app on.
Thanks for the tips, help, guideance, etc.!
Click to expand...
Click to collapse
highest quality you can do is raw in pro mode. you can later decide in what quality you compress it to jpeg
0alfred0 said:
Not sure what you mean, you can set up to 20mp in the settings. Thats even more than the rgb sensor is capable of. I guess this upscales the rgb sensors color info to the 20mp picture the monochrome sensor is taking. I cant think of anything that Would utilize the hardware more
Click to expand...
Click to collapse
I saw the 20MP option but that's not what I'm referring to Some camera apps or phone makers allow for you to change the quality of the picture taken in the form of changing the DPI. The higher the number, the higher the quality of the picture when looking at a 100% crop of a photo (but also the file size tends to be larger too). I know it's not common, but it is there for some camera/OEMs.
rob.allen78 said:
I saw the 20MP option but that's not what I'm referring to Some camera apps or phone makers allow for you to change the quality of the picture taken in the form of changing the DPI. The higher the number, the higher the quality of the picture when looking at a 100% crop of a photo (but also the file size tends to be larger too). I know it's not common, but it is there for some camera/OEMs.
Click to expand...
Click to collapse
I dont quite understand what that means though from a technical viewpoint. I am not an expert but i roughly know how cameras work and what parts they are made of (keywords: sensor/pixel size, sensor resolution, bayer matrix, etc.). I never came across something called DPI. I also do not know what should be happening when increasing this DPI.
Maybe you can enlighten me. Although this does not seem to be a feature for the Mate 10 i am very much interested in learning about cameras, especially in mobile devices.
0alfred0 said:
I dont quite understand what that means though from a technical viewpoint. I am not an expert but i roughly know how cameras work and what parts they are made of (keywords: sensor/pixel size, sensor resolution, bayer matrix, etc.). I never came across something called DPI. I also do not know what should be happening when increasing this DPI.
Maybe you can enlighten me. Although this does not seem to be a feature for the Mate 10 i am very much interested in learning about cameras, especially in mobile devices.
Click to expand...
Click to collapse
I had to research this a bit myself so that I could properly convey what I was originally asking for
This article from Snap Shop eCommerce helped quite a bit:
A Simple Introduction to DPI
(apparently, it's only useful if I intend on printing any of the photos taken from the camera itself)
I had a note 2 and a note 4 until just recently. I know the setting your talking about. Its got nothing to do with DPI - its more a compression setting/sharpening setting affects how big the filesize is from your camera as it affects how much each photo is compressed (was listed as "quality" modes? from memory)
Yep that's my understanding too - it's basically like 'fine' or 'superfine' settings on point n shoot cameras - dictates how much the JPG file is compressed. FWIW my Note 4 on Marshmallow seems to have dropped the setting, along with most other phones in the last few years. You just get the default compression for photos and bitrate for videos. As @madman_cro noted, you can make sure you're getting 100% of what the sensor is capable of by shooting RAW and doing the JPG processing yourself. Gotta love it when they remove settings so as not to confuse the average user....
I got a note 4 infront of me and went looking for the setting as well and couldnt find it either your right it must of got lost in a update hahahhaha (my boy has my note2 somewhere) but yeah its exactly what your saying with the fine/superfine etc more a compression setting than anything else
iv had lot's of phones(with custom and stock rom) and while I've never seen dpi settings it may have benefit for printing. as from what iv read now that you got me interested 72 is apparently enough for our screens and our phone delivers 92 so we are ok. il try to convert raw to higher dpi later and try it in phone while zoomed in but i doubt il see the difference cause its basicly the same image
Usual DPI is 72 at jpg photo at real cameras, if you shot in RAW usual DPI is 300, i think at mirrorless is even less.
better/higher DPI is because of post processing , higher dpi more details. Just simple, if you want better phots shot in RAW .
RAW or not makes no difference - the dpi stays the same,.
The DPI of a printed photo can be affected by the resolution the photo was taken at and the size of the printout (think about it...dots per inch.....or pixels per inch on photos really...DPI is more a printer thing. RAW has nothing to do with the amount of pixels/resolution - and therefore doesnt affect DPI whatsoever as its still exactly the same amount of pixels+ resolution involved whether its in RAW format or not...... All RAW means is that the photo was outputted without any editing by the camera first - its a unmolested original image with no processing which allows for a human to do all the editing later and perhaps a better job of it)
Take a 1 megapixel photo and print that photo on A4 paper, now take a 20megapixel photo and print it on a4 paper. The higher resolution image is going to have a higher DPI on the printout than the lower resolution image does, and would be noticeable as chances are the 1megapixel had such a low dpi at the printout size the image was stretched to fit. Take a 20megapixel RAW image, and a 20megapixel normal image - DPI is exactly with both as it has nothing to do with RAW.
What it all comes down to....Stay on the highest setting you can for resolution, and you have the best chance of getting a good printout later on and being compatible with bigger printouts while still keeping clarity (higher resolution photos can be printed larger without loss of quality)
I wouldnt try and make a poster from a 2 megapixel photo for instance - as it just doesnt have enough resolution to keep a good DPI **when the image is printed** The earlier question by the OP has been answered - it wasnt a DPI setting on her note at all its a compression setting (eg fine/superfine) nothing to do with DPI and has no effect on it either.
Thats kinda it in a nutshell and dumbed down a bit to explain it easier (Im gunna get nit picked to death on technicalities of terms perhaps but im trying to keep it simple)

camera tweaks

Hey everyone!
First and Foremost, DO A NANDROID BACKUP!!!!! I am not responsible for any mistakes that you make or if anything happens to your phone.
for thoes who want to test non compression settings and are rooted :
you can flash in magisk and that allows to set jpeg 100%
It's only work with stock camera . It's has no effect in gcam or ....
Changelog:
V1-
-set JPEG quality to 100%
-Increase 1080 and 4k bit rate
-Set audio to channel 2 (stereo)
-Increase audio bit rate
-Increase photos details
V2-
-Some changes for better vibrance and saturation
V3-
-Increase video quality
-Increase audio quality
-Increase photos details
V4-
- Larger Image Buffer
- Larger colour information flow from colour sensor in blend matrix
- Better overall handling of ISO exposure settings
- Better low light performance
- Less noise in low ISO
- More aggressive handling of high ISO aliasing
- Extra frame of bracketing for HDR modes
Enjoy
What does it contain?
Yes, some explanation and info would be welcome haha.
EDIT : guys, don't flash until we have more info.
look at the README:
Changelog:
Code:
v1 - Initial Release
v2 - Fixed the earpiece not working throughout the system
v3 - Fixed Earpiece not switching from multimedia to calls
v4 - Fixed bluetooth audio issue
v5 - Fixed right channel not playing through main speaker
v6 - Fixed latency issue between earpiece and main speaker
The rest seems legit, so it doesn't seem to be a scam, however, it would be good to know exactly what it does. Also, since you used as a model the stereo speaker mod from @acervenky , it would be nice to give him some credit.
Samples
Gcam - stock camera - camera tweak
More sharp and WB super accurate
Works as a module and easy to uninstall?
Just delete from magisk model
https://forum.xda-developers.com/newreply.php?do=newreply&p=78280377
Apart from JPEG quality, which was set to 100% by you, these files have no impact on photos, processing or whitebalance.
They control video.
Also, OnePlus' stock camera and for example GCam are already using 95% JPEG quality.
There is no noticeable difference between 95 and 100%. All this does is needlessly increasing filesize.
Providing downsized samples through the forum is also not saying anything.
The "difference" which can be seen in your samples is not caused by the change you did to the files.
You just took a bad photo from what I can see (bad focus / handshake?!).
Also keep in mind that stock camera sometimes does not apply postprocessing when using it right after GCam.
Clear recents first if you compare them.
If I missed something, please provide thorough information to what you've actually changed.
No disrespect, but in terms of photo-quality this is a placebo-tweak.
V2
Samples:
Gcam - stock - camera tweak
AcmE85 said:
https://forum.xda-developers.com/newreply.php?do=newreply&p=78280377
Apart from JPEG quality, which was set to 100% by you, these files have no impact on photos, processing or whitebalance.
They control video.
Also, OnePlus' stock camera and for example GCam are already using 95% JPEG quality.
There is no noticeable difference between 95 and 100%. All this does is needlessly increasing filesize.
Providing downsized samples through the forum is also not saying anything.
The "difference" which can be seen in your samples is not caused by the change you did to the files.
You just took a bad photo from what I can see (bad focus / handshake?!).
Also keep in mind that stock camera sometimes does not apply postprocessing when using it right after GCam.
Clear recents first if you compare them.
If I missed something, please provide thorough information to what you've actually changed.
No disrespect, but in terms of photo-quality this is a placebo-tweak.
Click to expand...
Click to collapse
Just try it you will see the changes
Nice, thank's you for this mod ?
V3
Flash part 1 and part 2
javad79 said:
Samples:
Gcam - stock - camera tweak
Click to expand...
Click to collapse
Image 1 and 3 are screenshots ?
Photo seems actually nice on camera tweaked but your presentation and samples look weird... what's your mod actually modifying to improve quality??
Looking at the files I agree with the earlier comment, looks like your touching video encoding/decoding... don't see anything related to picture in there...
Gugus38 said:
Image 1 and 3 are screenshots ?
Photo seems actually nice on camera tweaked but your presentation and samples look weird... what's your mod actually modifying to improve quality??
Looking at the files I agree with the earlier comment, looks like your touching video encoding/decoding... don't see anything related to picture in there...
Click to expand...
Click to collapse
In V3 I make changed in Media profile to change jpeg quality and increase audio quality and force it to record stereo and increase video quality by changing bit rate
In part 2 I add some tweak
I belief with this mod you can get better results than stock
Camera or gcam
V3 increase gcam quality too
I'm so busy now and couldn't test or send good samples
If you have any ideas to increase quality just say it
Stock-gcam-tweake
Upload to imgur or any other site that doesn't compress the photos. Thx
http://imgur.com/gallery/I5EnS2W
I am a little confused . What file should I install?
javad79 said:
V3
Flash part 1 and part 2
Click to expand...
Click to collapse
Falsh first one after that second one

Jpeg quality on MIUI stock cam

Hey guys,
I'm using Global Stable 10.3.4 and I can definitely notice stock cam has improved.
However, where it remains the same is on fine details, like bricks, fabrics, etc. where is noticeable that software compresses image and delete all fine details, image becomes blurred.
I've been playing with Gcam port from this forum and it doesn't suffer from this, AS LONG as jpeg quality is set to 100%. When Gcam jpeg quality is set to 85% or lower, I get the same blur and lack of detail.
My suspicion is that MIUI stock cam jpeg quality is not set to 100%. Could it be possible to tweak it a D force it somewhere to make stock cam use 100% quality as in Gcam?
Many thanks in advance
Well you have contrast, saturation and sharpness options in the settings menu of the miui camera app, try playing with that a bit!

Categories

Resources