[MOD][OxygenOS] Custom camera HAL with 4K video recording [Dec. 20, 2015] - ONE Original Android Development

Code:
/*
* Your warranty is... still valid?
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this ROM
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*/
Installing this mod will give you the ability to record 4K videos on OxygenOS. This mod is only designed to be used with OxygenOS and ROMs that are based off of OxygenOS.
It is a custom HAL I created from CAF's vanilla camera HAL sources. This is the same camera HAL that I use in my CM12.1 ROM: http://forum.xda-developers.com/oneplus-one/orig-development/rom-kernel-unofficial-cyanogenmod-12-1-t3120259
Notable features:
HFR (high-framerate; a.k.a. slow-motion) recording at 60 FPS, 90 FPS, and 120 FPS for 720p, and 60 FPS for 1080p
1080p video recording with the front-facing camera
4K UHD and DCI video recording
Manual focus
Manual ISO control
Slow shutter (ranging from 1/5000th of a second to 2 seconds)
Focus works in HDR mode
More picture sizes than plain OxygenOS, such as 9.7MP 16:9
JPEG quality always forced to 100% for higher-quality images (JPEG quality seems to be capped in the OxygenOS camera HAL, resulting in images that appear overly-compressed)
Limitations:
4K DCI cannot be recorded with the CameraNext app (when trying to use 4K DCI on CameraNext, CameraNext records at 480P instead; this is a bug with CameraNext, not my camera HAL)
Installation instructions:
Simply download and flash in recovery.
Download: https://www.androidfilehost.com/?w=files&flid=35689&sort_by=date&sort_dir=DESChttps://www.androidfilehost.com/?w=files&flid=35689&sort_by=date&sort_dir=DESC
This took several glorious hours of work over the course of many weeks. Enjoy!
XDA:DevDB Information
Custom camera HAL for OxygenOS, Device Specific App for the OnePlus One
Contributors
Sultanxda
Version Information
Status: Stable
Created 2015-07-20
Last Updated 2015-12-20

Changelog:
December 20, 2015:
*Removed ISO HJR option (it wasn't working)
*Enabled antibanding by default
*Fixed poor video quality during video calls (e.g. video calling in WeChat)
*Fixed incorrect aspect ratio when video calling in Hangouts
October 11, 2015:
*Fixed camera crashing in Bank of America app
*Fixed manual ISO control for camera
October 4, 2015:
*Fixed incorrect exposure time reported in image details when slow-shutter is used
*Fixed flashlight not turning off and camera completely breaking when using the flashlight while Trusted Face is enabled
September 13, 2015:
*Fixed poor quality with front-facing camera
*Fixed flashlight not turning off and camera completely breaking when using the flashlight while Trusted Face is enabled
August 24, 2015:
*Fixed exposure time getting set to 1/5000th of a second when trying to disable slow-shutter
August 23, 2015:
*Added support for slow shutter (ranging from 1/5000th of a second up to 2 seconds)
*Fixed camera stability issues caused by undefined behavior (this should fix the flashlight reboots)
August 11, 2015:
*Fixed touch-to-focus in HDR mode
*Fixed low framerate when recording 720p video with the front-facing camera
*Fixed manual focus
August 4, 2015:
*Fixed 720p HFR (slow-motion) and HSR (high-speed) video recording at 90FPS and 120FPS with all camera apps
August 3, 2015:
*Fixed 720p HFR (slow-motion) recording at both 90FPS and 120FPS
*Removed option to record 1080p at 90/120FPS (making this work would require modification of the proprietary camera libraries)
*Fixed focus not working in HDR mode
*Removed FWVGA camcorder resolution
July 28, 2015:
*Added 1080p video recording at 120 FPS
*Added ability to record video at 90 FPS (for both 720p and 1080p as well)
July 25, 2015:
*Added support for 1080P video recording with the front-facing camera
*Fixed framerate drop when taking picture while recording 4K video
July 23, 2015:
*Fixed 4K video recording in all camera apps (such as Google Camera)
*Fixed several bugs with Google Camera (such as broken photosphere and panorama functionality)
July 19, 2015:
*Initial release

Reserved

What versions is this compatible with? Kk, 5.0, or only 5.1?
Sent from my A0001 using XDA Premium 4 mobile app

Setting.Out said:
What versions is this compatible with? Kk, 5.0, or only 5.1?
Sent from my A0001 using XDA Premium 4 mobile app
Click to expand...
Click to collapse
There's a 5.1 version of OxygenOS? I tested this with OxygenOS (5.0) and it is working as advertised.

Sultanxda said:
There's a 5.1 version of OxygenOS? I tested this with OxygenOS (5.0) and it is working as advertised.
Click to expand...
Click to collapse
I was hoping to try it on CM..
Sent from my A0001 using XDA Premium 4 mobile app

Could you also fix the slow motion video recording?
120 fps merely records the videos at 47-49 frames per [Mod edit: No profanity please], which is completely [Mod edit: No profanity please] and not at all close to whatever the company promised about slow motion recording? Im begging you, if you can look into this matter because I have tried contacting support for OnePlus and Cyanogen but no help!
So please?

Nvm

dwaipayanray95 said:
Could you also fix the slow motion video recording?
120 fps merely records the videos at 47-49 frames per [Mod edit: No profanity please], which is completely [Mod edit: No profanity please] and not at all close to whatever the company promised about slow motion recording? Im begging you, if you can look into this matter because I have tried contacting support for OnePlus and Cyanogen but no help!
So please?
Click to expand...
Click to collapse
How can you tell the framerate that it's recording videos at?
I recorded a video with 120 FPS and it looked reeeeeaaaaallllllyyyyyyy slow when I played it back on my computer, so maybe it's already working fine.
EDIT: I'm pretty sure 120 FPS is working correctly... I recorded a video for ~5 seconds at 120 FPS and the resulting video said it was 1:25 long (though it was actually 21 seconds long). Android determines the video length based on the video's framerate, and it expects 30 FPS for 720P video, so it said my 120 FPS video was 1:25 long. 85 seconds (the reported length of the video) divided by 21 seconds (the actual length of the video) equals 4. 120 FPS/30 FPS = 4, so there were 4x as many frames, aka 120 FPS worked.
Something's weird with the reported video length, but other than that, 120 FPS works fine.

Added to OnePlus One index thread:
[INDEX] OnePlus One Resources Compilation Roll-Up

Well I flashed this over euphoria because I use the cm12s camera and it seems to have fixed the viewfinder freeze derp I'd seen happen a couple times prior. Awesomeness!

Sultanxda said:
How can you tell the framerate that it's recording videos at?
I recorded a video with 120 FPS and it looked reeeeeaaaaallllllyyyyyyy slow when I played it back on my computer, so maybe it's already working fine.
EDIT: I'm pretty sure 120 FPS is working correctly... I recorded a video for ~5 seconds at 120 FPS and the resulting video said it was 1:25 long (though it was actually 21 seconds long). Android determines the video length based on the video's framerate, and it expects 30 FPS for 720P video, so it said my 120 FPS video was 1:25 long. 85 seconds (the reported length of the video) divided by 21 seconds (the actual length of the video) equals 4. 120 FPS/30 FPS = 4, so there were 4x as many frames, aka 120 FPS worked.
Something's weird with the reported video length, but other than that, 120 FPS works fine.
Click to expand...
Click to collapse
See that is the thing....it shouldn't happen like that!...nowhere in the camera it is said that it a slow motion thing....it is referred to as HFR denoting High Frame Rate! But its not the case once its saved onto the phone after recording...android should be recording and saving the videos at 120fps itself... And the video should be of 5 seconds if u recorded a length of 5 seconds. If our phone slow it down just to give us a slow motion feel then its not true slow motion!! If u check other phones including a moto x! It will record and playback back a video at 60fps and will slow down the parts according to your selection! But file is recording either at 59.97 or 60....I know because I've researched and have been in the video field for over 8 years now! So I can practically look at a video and tell is characteristics and in order to check the frame rate you can use media info on PC and MX player for android!
Please I'm begging you to look into this matter! As my primary reason to buybthe phone was the 120fps recording! Which is not even close to be good in terms of usability ! Please @Sultanxda please look into this!
Thank you

dwaipayanray95 said:
See that is the thing....it shouldn't happen like that!...nowhere in the camera it is said that it a slow motion thing....it is referred to as HFR denoting High Frame Rate! But its not the case once its saved onto the phone after recording...android should be recording and saving the videos at 120fps itself... And the video should be of 5 seconds if u recorded a length of 5 seconds. If our phone slow it down just to give us a slow motion feel then its not true slow motion!! If u check other phones including a moto x! It will record and playback back a video at 60fps and will slow down the parts according to your selection! But file is recording either at 59.97 or 60....I know because I've researched and have been in the video field for over 8 years now! So I can practically look at a video and tell is characteristics and in order to check the frame rate you can use media info on PC and MX player for android!
Please I'm begging you to look into this matter! As my primary reason to buybthe phone was the 120fps recording! Which is not even close to be good in terms of usability ! Please @Sultanxda please look into this!
Thank you
Click to expand...
Click to collapse
I looked into it and I have no idea how to change this behavior. Android does this by default at the framework level; Motorola's implementation on the Moto X is different because they made special modifications to the Gallery and Camera apps.

Thanks
Sent from my A0001

So only video is affected, or also slow shutter and RAW capture is present? I give it a try anyways

New version uploaded with 4K video recording fixed in all camera apps, as well as many other bugs fixed.

only 377kb
It's only 377kb, why?

Gipcodi said:
It's only 377kb, why?
Click to expand...
Click to collapse
Ehm, because a HAL is a relatively small piece of code? I don't get what your problem is.

New version uploaded with a new camera feature the OnePlus One has never had before: 1080P video recording with the front-facing camera!

Waoo..Sultan you are just awesome.
Sent from my A0001 using Tapatalk

Related

[MOD] Custom camera HAL with 4K UHD/DCI and 30 FPS video recording [Apr. 22, 2016]

Code:
/*
* Your warranty is... still valid?
*
* I am not responsible for bricked devices, dead SD cards,
* thermonuclear war, or you getting fired because the alarm app failed. Please
* do some research if you have any concerns about features included in this mod
* before flashing it! YOU are choosing to make these modifications, and if
* you point the finger at me for messing up your device, I will laugh at you.
*
*/
Installing this mod will give you the ability to record 4K UHD/DCI videos on your OnePlus X, as well as record videos at a consistent 30 frames per second in all lighting conditions (no more frame drops/stuttering when recording videos at night). This mod is compatible with most ROMs.
This is a custom camera HAL I created using CAF's vanilla camera HAL sources. As a lot of reverse engineering was involved in this, there are some caveats (see below).
Do NOT install this on my CM13 ROM!
Note that some ROMs using older proprietary camera libraries (such as the newest version of H2OS) will not benefit from 30 FPS video or my anti-shake algorithm.
If the 4K option does not appear in the camera app you're using, or your camera stops working, then clear data for the camera app that you're using.
Notable features:
4K UHD and DCI video recording
Consistent 30 FPS video recording in all lighting conditions
Intelligent anti-shake algorithm (significantly reduces motion blur when capturing photos)
Faster autofocus in low lighting conditions
No stuttering in camera viewfinder
Improved photo quality
Photo capture up to 4208x3120 resolution (instead of 4160x3120)
Caveats:
No ClearImage
No manual mode only in the OnePlus Camera app (other apps that support manual ISO and manual exposure work fine)
Installation instructions:
Install the 60 Hz Anti-banding file if you are in any of the following countries:
American Samoa
Anguilla
Antigua
Aruba
Bahamas
Belize
Bermuda
Brazil
Canada
Cayman Islands
Colombia
Costa Rica
Cuba
Dominican Republic
Ecuador
El Salvador
Guam
Guatemala
Guyana
Haiti
Honduras
Liberia
Mexico
Micronesia
Montserrat Islands
Nicaragua
Okinawa
Palmyra Atoll
Panama
Peru
Philippines
Puerto Rico
St. Kitts & Nevis Islands
Saudi Arabia
South Korea
Suriname
Tahiti
Taiwan
Trinidad & Tobago
United States
Venezuela
Virgin Islands
Instructions:
Download the camera HAL and copy it to your device
Reboot to recovery
Install the camera HAL
OPTIONAL install the 60 Hz Anti-banding file ONLY if you are in any of the countries listed above
Reboot
Downloads:
Camera HAL: http://forum.xda-developers.com/devdb/project/dl/?id=18115
60 Hz Anti-banding: http://forum.xda-developers.com/devdb/project/dl/?id=17356
XDA:DevDB Information
Custom camera HAL for OPX, Device Specific App for the OnePlus X
Contributors
Sultanxda
Version Information
Status: Stable
Created 2016-02-15
Last Updated 2016-08-10
Changelog:
April 22, 2016:
*Fixed slow-motion recording in the OnePlus Camera app (for OxygenOS)
*Fixed delay when moving camera while recording high-speed and slow-motion videos
*Fewer frames are dropped when recording high-speed and slow-motion videos now
April 20, 2016:
*Fixed blue tint when recording slow-motion and high-speed videos (60 FPS and 120 FPS videos)
April 17, 2016:
*Made anti-shake algorithm even less aggressive (images are less noisy and better quality now)
March 26, 2016:
*Made anti-shake algorithm less aggressive (images are less noisy and better quality now)
*Reduced JPEG quality to 95% (image files are smaller with no visible impact to quality)
*Improved image clarity
March 13, 2016:
*Fixed anti-banding setting in camera apps
*Set default anti-banding mode to 50 Hz (for Europe)
*Added flashable zip to change default anti-banding mode to 60 Hz (for the USA; see the installation instructions for details)
*Fixed rare flashing in camera viewfinder
March 7, 2016:
*Fixed graphical glitches when using HDR
*Fixed graphical glitches when taking photos with the front camera
*Fixed many other minor bugs
March 6, 2016:
*Fixed noisy HDR photos
*Fixed incorrect maker, model, and aperture displayed in image info
March 5, 2016:
*Fixed HDR
*Fixed manual exposure control
*Fixed manual ISO control
February 26, 2016:
*Implemented stronger, more intelligent anti-shake algorithm (significantly reduces motion blur when capturing photos)
*Fixed Panorama mode not working in Google Camera after recording video
*Fixed Photo Sphere mode not working in Google Camera after recording video
*Fixed photo capture not working while recording 4K video
February 22, 2016:
*Fixed compatibility with H2OS (note: 30 FPS video is not guaranteed in H2OS, as well as some out-of-date ROMs)
*Fixed long delay when turning off the flashlight in some ROMs
*Fixed long delay when switching between the front and back camera in some ROMs
*Improved image sharpness and clarity
February 16, 2016:
*Fixed compatibility with all ROMs
February 15, 2016:
*Initial release
Reserved
will test this soon and hope it works. you will be saviour for us.
saurabh40629 said:
will test this soon and hope it works. you will be saviour for us.
Click to expand...
Click to collapse
I tested it on CM12.1 and OxygenOS 2.2.0, and it appears to be working. Tested 4k UHD recording in Google Camera and it works.
The 4k video option won't show up in the OxygenOS camera app until you clear data for the app.
Let's see how this goes :silly:
Holy crap the legendary sultan developing for the one x?!?! Any plans for a oneplus x rom as well?
Super nice, waiting for Manuel Camera Controls as said in the post but this is already awesome
Sultanxda said:
I tested it on CM12.1 and OxygenOS 2.2.0, and it appears to be working. Tested 4k UHD recording in Google Camera and it works.
The 4k video option won't show up in the OxygenOS camera app until you clear data for the app.
Let's see how this goes :silly:
Click to expand...
Click to collapse
Because of Enormously crappy camera videos, I was having thoughts of selling this one. Seems like my money is saved. Kudos to you. :highfive:
If the camera had the capability to record to 4k,why didn't one plus include it in oos?
Flashed on temasek v4.0 and had a bootloop after that. Needed to reflash the rom.
sathyakaushik4 said:
If the camera had the capability to record to 4k,why didn't one plus include it in oos?
Click to expand...
Click to collapse
They didn't know how to fix it. There's a software bug with 4k on Snapdragon 800/801 chips that causes the 4k video to record at 7 FPS. This is a very difficult bug to fix (took me weeks to originally fix it on my OPO), so it isn't surprising that they decided to move on to other things instead of trying to solve it.
mieru said:
Flashed on temasek v4.0 and had a bootloop after that. Needed to reflash the rom.
Click to expand...
Click to collapse
The media_profiles.xml that comes with my package probably has some things in it that your ROM doesn't like. I'll have to test it myself to get a log so I can fix it.
surronix said:
Holy crap the legendary sultan developing for the one x?!?! Any plans for a oneplus x rom as well?
Click to expand...
Click to collapse
Not enough time/energy/motivation for that right now. Have a camera HAL instead
Sultanxda said:
They didn't know how to fix it. There's a software bug with 4k on Snapdragon 800/801 chips that causes the 4k video to record at 7 FPS. This is a very difficult bug to fix (took me weeks to originally fix it on my OPO), so it isn't surprising that they decided to move on to other things instead of trying to solve .
Click to expand...
Click to collapse
Don't they scout for talent on these Developer forum's if they have such dumb people sitting and developing ?
I heard a lot about you from my colleagues on OPO( obviously positive things )..... Welcome here :fingers-crossed::good:
rockuppl said:
Don't they scout for talent on these Developer forum's if they have such dumb people sitting and developing ?
I heard a lot about you from my colleagues on OPO( obviously positive things )..... Welcome here :fingers-crossed::good:
Click to expand...
Click to collapse
they already looked for sultan
but since he hasnt grad yet they didnt hire
edit: well thats what they said on AMA
Morning
Any open-source plans? Or can't you share because of reverse engineering? Will test soon
EDIT: UHD works fine and everything else also good work
getting back to OxygenOS to try it !!! Super job Sultan
Nailed it!
@Sultanxda, add to the 1st post that slowmotion mode on OOS camera app won't perform as expected. Didn't tested much, but it seems it is recording at 30fps.
It does not bothers me at all. Being possible to record at night is a big step forward.
Any samples? I'm getting to the point to install a custom recovery. I don't care about HDR or clear Image at all.
Just testing it.
I flashed it over OOS 2.2.0 with blu_spark v91.
Gonna upload some samples soon.
EDIT: https://www.youtube.com/watch?v=T_XYeGpFoJ0&list=PL7yFwUHsKYLHcLn21xGdwthFPJUL9SZXX&index=2
To cool to be true !!!
How can we hit 20 times Thanks button at a time ?
Damn this looks great!
can someone post sample in low light and picture quality?

How to record 4k video ?

On iPhone 5s, even it doesn't support 4k recording officially, we can record 4k video by installing an app called "Vizzywig 4K". It captures full 4K resolution photos (3840 x 2160 pixels) at 24 photos per second while capturing an audio soundtrack separately. Is there any app similar on android?
You need a camera that officially supports 4k before you can record in 4k. I highly doubt this app can 'magically' allow a camera to record in 4k, it is mostly placebo. The zenfone 2 can't record in 4k as it's camera only supports 1080p Max.
You can try open camera.
darklink987 said:
You need a camera that officially supports 4k before you can record in 4k. I highly doubt this app can 'magically' allow a camera to record in 4k, it is mostly placebo. The zenfone 2 can't record in 4k as it's camera only supports 1080p Max.
Click to expand...
Click to collapse
This app is proven to be work, just did a Google search. http://www.engadget.com/2014/09/17/hands-on-with-the-1000-vizzywig-4k-app/
Also this app work by taking 24 photos in one second, so is it possible for our ZF2 to do so?
xCalibur15 said:
You can try open camera.
Click to expand...
Click to collapse
I have tried it, it can only record 1080p even the option for recording 4k is enabled
Perhaps what I am looking for is an camera app that can take 24 "3840 x 2160" photo in one second and than combine these photos with a sound recording to form a video.
No. You can't do it. Even if it did work, it would be very shaky because you are not considering the lack of image stabilization. The ZenFone 2's shutter speed is just too slow to capture 24, much less 15, photos per second.

60 fps video possible?

So we've seen a couple of improvements to the camera since release, most notably with Portrait Mode recently. This is great, but where is the 60fps video? The phone must surely be capable of 1080p60 if it can do 4k at 30fps?
Neither the Razer camera app nor the modded Google Camera app I'm using allow me to select a different frame rate; does anyone know of an alternative app that can shoot higher FPS? I'd shoot 1080p60 all the time over 4k 30fps.
GarfyTheCat said:
So we've seen a couple of improvements to the camera since release, most notably with Portrait Mode recently. This is great, but where is the 60fps video? The phone must surely be capable of 1080p60 if it can do 4k at 30fps?
Neither the Razer camera app nor the modded Google Camera app I'm using allow me to select a different frame rate; does anyone know of an alternative app that can shoot higher FPS? I'd shoot 1080p60 all the time over 4k 30fps.
Click to expand...
Click to collapse
I'll subscribe to this thread, wondering the same thing. I have a feeling it would have to be updated by razer In firmware or some skilled coders here first. Seeing as we have treble, android P maybe? Should get released pretty quick for us!
I use snapdragoon camera that allow you to enable 60fps and 120 FPS video at 1080p
videogiochi said:
I use snapdragoon camera that allow you to enable 60fps and 120 FPS video at 1080p
Click to expand...
Click to collapse
Nice! thank you for that suggestion. HSR mode doesn't work for me but I only wanted HFR so I'm ok
The hardware doesn't support 4K @ 60 FPS
where do i get the Snap Drag camera?

Best video recording app for Redmi Note 7

So GCam is definitely the answer for getting the best photo quality out of this phone in almost any situation, but let's see how we can record the best possible video.
Btw, when you first try video recording with the Note 7 in low light, it's natural to be disappointed since you're comparing it to GCam's photo output in low light. GCam uses frame stacking and other techniques to remove noise, increase dynamic range and get details in both shadows and highlights as well as the rest of the image. To produce only one 12-megapixel frame, it uses anywhere from 3 to 15 frames and takes a few seconds to do the complex blending and computations to create a great low light photo. Without a much stronger SoC, ISP, a better sensor and more advanced processing algorithms, this is impossible to do while recording a video, as the phone is struggling to keep up with recording 30 8-megapixel frames (UHD) each second or 2-megapixel frames in case of 1080p. They've barely managed to get SD 660 to comfortably use real-time EIS at 1080p30, along with auto focusing, WB, exposure, noise reduction etc.
So, knowing that in low light this phone's video recording will never be great, let's focus on other aspects of its video recording. My only idea for improving low light video recording is to find an app that can use a high bitrate in order to avoid introducing additional noise and artifacts. This also applies to filming in daylight.
I'll start with some findings about the differences between the stock app, GCam and Open Camera when recording video.
STABILIZATION
As far as video stabilization goes, only stock camera's 1080p30 EIS properly uses gyro-EIS and that really is the most beautiful stabilization you'll get out of this phone. No wobbling or image distortion, it just softens the shakiness, as if the phone were on a gimbal.
1080p30 EIS in GCam – it's instantly noticeable that the viewfinder here is stabilized (whereas in the stock app it isn't). It appears to be using the gyroscope, but not in the same way the stock app does. Stabilization is OK, but not as smooth as in the stock app and wobbliness can be noticed occasionally, with more abrupt movement.
UHD EIS in GCam – better than no stabilization, but wobbliness on the edges tends to be obvious when there's a lot of movement.
1080p30 or UHD EIS in Open Camera – also a stabilized viewfinder, but the stabilization algorithm here is very wobbly, which is extremely noticeable in UHD, so try to hold the phone as stable as possible when recording in Open Camera. The highlight of Open Camera for the Note 7 is its front-facing camera UHD stabilized video recording. So far this is my only use case for Open Camera on this phone (plus testing).
If you like using 1080p60 because of its smoother panning and movement in general, here's a tip to stabilize 60 fps videos: shoot in 1080p60 without EIS in the stock app or another app (using a high bitrate when possible) and then stabilize the footage in Google Photos, which does a nice job unless the video is impossibly shaky.
SLOW MOTION
In my testing, I've never managed to get a smooth slo-mo video out of the stock app and I've tried it after every MIUI update so far. At 1080p or 720p, the result is always a stuttering slo-mo video. GCam to the rescue!
GCam can record stutter-free 1080p slo-mo for a long time (I tried it for a couple minutes) and the resulting video is smooth as butter, suffering only from an occasional hiccup here and there. Perfectly usable.
Open Camera can also record in 1080p120. Different apps should be tried out to see how smooth the slo-mo is and which one is able to use the highest bitrate, leading to the highest image quality. Although image quality does appear to be limited in slow motion mode.
FIELD OF VIEW (FOV)
If you have your phone on a tripod or you can lean on a surface to stabilize it, you should turn EIS off. This will give you a wider field of view and a sharper image. When you're recording a video, the top and bottom portions of the image are cut off to accommodate for the widescreen format. This already makes you lose around 25% of the image information that the sensor can actually see. EIS works by further zooming into the centre of the sensor (or cropping the image) and using the now-extra information to shift the frame in any direction as necessary, to produce an impression of a more stable footage.
The phone will not recognize that it's on a tripod and turn EIS off. You have to do that manually. Why would you want to do that? If you want:
1) to capture more of the scene (a wider field of view), with EIS on, you'll have to step back (which is sometimes not possible)
2) better image: stabilization comes with trade-offs. If you don't need it, turn it off. The phone will be able to use a greater number of pixels to create your fixed-resolution video, resulting in a better image.
With 1080p30 EIS off or UHD without EIS, you'll have the widest FOV possible for video on this sensor. Only top and bottom are cut off for widescreen.
1080p60 EIS off – for some reason, this has just slightly narrower FOV than 1080p30 without EIS. The same FOV appears to be present in 1080p120 (slow motion).
When EIS is on, it crops the least on the stock app, slightly more on GCam and the most on Open Camera.
VIDEO AND AUDIO BITRATES AND QUALITY
Work in progress. So far I can only tell that stock and BSG's GCam produce different videos. Stock uses a higher video bitrate and GCam a higher audio bitrate. Open Camera tends to put on a yellow cast, presumably to make the image warmer. Also, bulkin's GCam allows you to select video bitrate. Haven't played with that or the bitrate in Open Camera.
It's also worth to test other apps, such as Cinema FV-5. I've had luck with that on previous phones.
My recommendation is Open Camera by mark harman
Plzz any one provide me the link
tamalnag said:
Plzz any one provide me the link
Click to expand...
Click to collapse
open camera is on play store
Very detailed observation.. Thanks for sharing. ?
Have anyone tried 'Footej Camera'?
Great post. My recomendation for all uses is gcam, not the best in all but not the worst. Perfect for a daily use
There is a possibility to set the video bit rate in some of the other GCam MODs.
I can recommend this GCam MOD made from developer marlin-ku OR this GCam MOD which have much more valuable options (speed / ISO optimisations) from developer bulkin043. The last version of the second MOD is available in the Telegram channel here.
This port is the best working - one of the few other GCam MODs I'm frequently using on my Redmi Note 7.
have you tried anx camera
Quaresma_7 said:
If you like using 1080p60 because of its smoother panning and movement in general, here's a tip to stabilize 60 fps videos: shoot in 1080p60 without EIS in the stock app or another app (using a high bitrate when possible) and then stabilize the footage in Google Photos, which does a nice job unless the video is impossibly shaky
Click to expand...
Click to collapse
is it is also true for 4k30 ? do you getter final image quality and stabilization if you do eis in google photo as it must be a more complex algorithm vs "eis on" that only must use a simpler faster algorithm that runs in real time
is it hardware accelerated by the snapdragon 660's Spectra 160 ISP or is it software running on the arm cpu (question both for " eis on" and for stabilisation done in google photos app )
amanieux said:
is it is also true for 4k30 ? do you getter final image quality and stabilization if you do eis in google photo as it must be a more complex algorithm vs "eis on" that only must use a simpler faster algorithm that runs in real time
is it hardware accelerated by the snapdragon 660's Spectra 160 ISP or is it software running on the arm cpu (question both for " eis on" and for stabilisation done in google photos app )
Click to expand...
Click to collapse
Google photos stabilization is good, sometimes it does a miracle, but some artifacts appear in the video. It's more aggressive and intelligent than eis on but quality could be not so good. (I don't know anything about which processor is used, but in Google photo is a lot slow the stabilization process, about the double of the video duration)
video quality difference between 4k and 1080p on bsg mod
i installed this gcam mod : https://f.celsoazevedo.com/file/cfiles/gcm1/MGC_6.2.030_RN7_V1a_FINAL.apk but i notice that 1080p and 4k have a completely different look (different WB, different DR) is it due to snapdragon 660 limitations ? is gcam only configuring the hardware capture codec for snapdragon 660 hardware or is it applying some software computation (google proprietary code) on each frame in real time ?
Best video camera app for me is open camera. I do 1080p with 120 fpS with that and it's awesome. Other one is filmic pro. I can shoot flat video and chose nitrate and frame rate.
Cinema f5
My RN7 can't install the GCAM, I've been getting the message "App Not Installed" please any help?
Okusac said:
My RN7 can't install the GCAM, I've been getting the message "App Not Installed" please any help?
Click to expand...
Click to collapse
Uninstall any other previous versions. Then install this
https://drive.google.com/file/d/10OAI7zoNHiBjSmxRGTv2meclafg4nmxV/view?usp=drivesdk
Ryamoz said:
Uninstall any other previous versions. Then install this
https://drive.google.com/file/d/10OAI7zoNHiBjSmxRGTv2meclafg4nmxV/view?usp=drivesdk
Click to expand...
Click to collapse
Okay, I've than that... Thanks
My best is filmic pro. It is dedicated app for video making. U can record in flat/log profile which u then can color grade later on.
The quality is greater than other app.
Open camera is also nice but it has less control over the video. U can't control color temperature and u can't basic color grade ur videos. Plus u can't save ur preset.
I have no luck with GCam and stock one.
Pics GCam, Video Stock
Interesting Thread. On MIUI Global 10.3.6 and now MIUI Global 11.0.4 (Android 9) using GCam PMGC_7.0.009_Astrophoto_Version_V12 overall I'm impressed, activated Sabre and H265/HEVC (edit/play/upload compatibility seems good for the apps I mostly use which paired with the smaller size is good). Not sure if really but crispness/clarity seems well improved as well as less speckles/red-dots especially on the skin in artificial/low light. EIS also still very good.
I also use the stock camera and OpenCamera, so what bothered me in GCam PMGC:
a) still focus flickering in video (can it be optimized by any settings?), stock RN7 camera IMHO has considerably less such flickering?
b) needing GSF: so no CustomROMs? Or is MicroG able to solve this?
c) found no possibility to save to SD-Card DCIM, I think in PMGC V3/V4 versions this still was available?
For OpenCamera while b) und c) are no problem regarding a) there seems to be good micro movement EIS but overall movement/transition is not so smooth; focus seems manual (tapping on-screen) so I could not see flickering . I like OpenCamera for the many settings especially the filename without prefix. It is also possible to set RAW DNG or WebP (I use 4x3k JPG 84%), Exif tags, HEVC, 24 fps, flat/log profile. I wonder why half-max-res pics (2000x1500) are not available to select. For video I would like to have something 16:9 slightly bigger then FHD so like 3K (2560x1440) which is not available (only 4:3). I also can not find timelapse.
A friend has Filmic on RN7. It has pro options and as well HEVC. As i tried once EIS is ok (below stock/GCam) and it seems video focus flickering is noticable just a little more then Stock and GCAM is considerably worse. I do not like the 1/3 screen Play preview of taken videos (just 3 show up) and also the files are not saved in the standard DCIM camera folder on the SD (CMS External Storage, not found by Gallery Apps).
Currently my preference is:
Images: GCam PMGC
Video: RN7 Stock; Timelapses: GCam PMGC
Hi everyone! Back to this topic to ask you a question. After the recent upgrade to Android 10, still with MIUI 11, I've noticed that
- stock camera has video stabilization working "after save"
- gcam (tons of version tried) and opencamera have no more stabilization. Once it was directly on the screen. Now there's any noticable on the screen or offer save.
Do you have the same problem? Thanks! Any way to solve this?

Can we enable 60 FPS Video Recording on M51?

Hi All,
Can we enable 60 FPS Video Recording on M51?
It is just so infuriating that Samsung disabled the 60 FPS Video Recording on this phone, it is just incredible...
We have super slow motion, but we don't have 60 FPS Video Recording....
Please let me know if there are any option to enable this.
Thank you.
Kind regards,
Vlad
There are phones that can record 1080p 240 fps with same sensor. Encoder supports up to 127 fps in 1080p, so I don't think we can simply add a media profile and fix this. I couldn't find anything about 1080p slow motion or just 60 fps in samsung's camera app but there were some methods to check super slow motion's maximum time, probably for 960 fps fake slow motion. Samsung's camera app has a hidden camera api key to check available samsung features in the device but I don't remember anything about slow-mo. There were hdr10 support, something about 64 mp stream and a few useless samsung stuff. I think we need to modify camera libs for 60 fps.
If you are rooted you can,just search for galaxy a71 60fps (same hardware as m51)
have u try open camera app? 240 fps... not perfect but
Provideo works but 60fps mode has stuttering issues.
soulexit said:
Provideo works but 60fps mode has stuttering issues.
Click to expand...
Click to collapse
M51? Did you enabled through camera-features.xml? Or sam thrid party app?
Make shure video stabilization is disabled for 60FPS
Through camera-features.xml. 24fps and 60fps causes stuttering.
I can try with your camera-features.xml too if you can upload here.
soulexit said:
Through camera-features.xml. 24fps and 60fps causes stuttering
I can try share with your some libraries here everthing works 24 and 60fps but [email protected] just crashes,A715F
Click to expand...
Click to collapse
@FelipeHiroshi
It is still wobbly and it is not 60fps. Example in the attachments.
I'll check media profiles too and let you know if i get any progress.
So here i am attaching media profiles and a moddified mixer path that give stereo sound from a A71 same SoC
soulexit said:
@FelipeHiroshi
It is still wobbly and it is not 60fps. Example in the attachments.
I'll check media profiles too and let you know if i get any progress.
Click to expand...
Click to collapse
Results:
* camera is still the same
* music is playing from call speaker
A camera that can take ultra slow-motion should at least take 60fps videos. I'm suspecting that Samsung disabled it in driver level.
soulexit said:
Results:
* camera is still the same
* music is playing from call speaker
A camera that can take ultra slow-motion should at least take 60fps videos. I'm suspecting that Samsung disabled it in driver level.
Click to expand...
Click to collapse
Thats quite sad but you can try 120fps like on the A50 mod that not supporting 24 and 60.
About the sound mod is playing from both speakers? They are sync? Because on the a71 i need to moddify Acdb files to put with sync
FelipeHiroshi said:
Thats quite sad but you can try 120fps like on the A50 mod that not supporting 24 and 60.
About the sound mod is playing from both speakers? They are sync? Because on the a71 i need to moddify Acdb files to put with sync
Click to expand...
Click to collapse
It's only playing from the call speaker, not the loud one. A50 mod works only on previewing but still stutters while recording.
I'll compare A71 & M51 devices trees in an empty day.
soulexit said:
It's only playing from the call speaker, not the loud one. A50 mod works only on previewing but still stutters while recording.
I'll compare A71 & M51 devices trees se
Click to expand...
Click to collapse
soulexit said:
It's only playing from the call speaker, not the loud one. A50 mod works only on previewing but still stutters while recording.
I'll compare A71 & M51 devices trees in an empty day.
Click to expand...
Click to collapse
Send me your stock mixer file i will try to get this to work
About the camera 60fps on the front worked?
FelipeHiroshi said:
Send me your stock mixer file i will try to get this to work
About the camera 60fps on the front worked?
Click to expand...
Click to collapse
Hopefully it works

Categories

Resources