[OP3/3T] Unlock 720P slowmotion video WITH sound on Google Camera! - OnePlus 3 Guides, News, & Discussion

THIS MOD DOES NOT WORK ON OREO
First off
- your device has to be rooted / or at least have TWRP working to move the file
- you probably have to be on the latest OxygenOS Android 7.1.1 Beta for this to work
- the videos will be recorded with the latest Google Camera App:
http://www.apkmirror.com/apk/google...amera-4-3-016-147548696-android-apk-download/
- you will be able to record slowmotion video in 720p with sound
- you will be able to edit the video with Google Photos and to manually set the desired area which is played in slowmotion, the other area will play in full motion, just like on the iPhone for example!
How-to
1.) Download this file: https://www.dropbox.com/s/kt0pa3ks8b1lzpy/media_profiles.xml?dl=0
2.) put it into root/system/etc and overwrite the existing file
3.) set the correct permissions! rw-r--r-- (0644)
4.) reboot your device
5.) install the linked Google Camera, start it, go into Slowmotion mode
6.) open the Video from within the Google Photos App and edit it...
7.) Have fun!
I only stumbled across this just now, so I only got to test it on my OP3 with Beta12 Android 7.1.1.
I don't know if this works on older Betas or the latest stable build, so don't ask me.
But you are welcome to share your experience with us if you try it on other builds.
Keep in mind that the linked Google Camera version will only work on Android 7.1.1!
Here is a quick sample video I took which shows you how the video can be edited in Google Photos:
The sound is actually as good as always while playing it in full-speed in Google Photos and respectively "worse" in slowmotion,
which has to be expected in my opinion. At least it is much better than slowmotion without any sound, which is the reason I newer touched this feature in the past.
For the long explanation on how I found out about this:
I was already testing the latest Google Camera for Android 7.1.1 after flashing Beta 12 and unfortunately the slowmotion mode crashed immediately each time.
Today I stumbled over this commit for the OP3/3T on LineageOS:
https://review.lineageos.org/#/c/163935/
https://review.lineageos.org/#/c/163935/1/configs/media_profiles.xml
It adds these lines to the existing media_profiles.xml:
Code:
<!-- CAMCORDER_QUALITY_HIGH_SPEED_HIGH/720P : [email protected]; 27.0 Mbps -->
<EncoderProfile quality="highspeedhigh" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="27000000"
width="1280"
height="720"
frameRate="120" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<EncoderProfile quality="highspeed720p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="27000000"
width="1280"
height="720"
frameRate="120" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
<!-- CAMCORDER_QUALITY_HIGH_SPEED_HIGH/1080P : [email protected]; 34.0 Mbps -->
<EncoderProfile quality="highspeed1080p" fileFormat="mp4" duration="30">
<Video codec="h264"
bitRate="34000000"
width="1920"
height="1080"
frameRate="60" />
<!-- audio setting is ignored -->
<Audio codec="aac"
bitRate="96000"
sampleRate="48000"
channels="2" />
</EncoderProfile>
This commit is meant to make slowmotion work on the latest Google Camera on LineageOS.
I thought to myself, why not add this code to the file provided in OxygenOS.
What can I say, It just works! The file provided above is taken from OOS Beta 12.
I just added the mentioned code from the spoiler.
I also think 1080p slowmotion with sound should be possible when we can already record [email protected]!

Great , works like a charm .
??????

Nice post, well explained. It would be nice to unlock 240fps too, but I highly doubt that's gonna happen.

Can the video encoding be changed to h.265?

Does this affect the existing OnePlus Camera?

shubhaemk said:
Does this affect the existing OnePlus Camera?
Click to expand...
Click to collapse
No, it still works as before. It also still fails to record audio in slowmotion mode.

is there any chance to get it implemented into the oneplus camera apk?

AcmE85 said:
First off
I don't know if this works on older Betas or the latest stable build, so don't ask me.
Click to expand...
Click to collapse
I can confirm that this also works on 7.0. I.e on 4.0.x oxygen os rom.
Thanks for the tip bro.

Camera and video recording works for me, but slow mo force closes the app. Followed all instructions. Not sure what "overwrite the existing file" means. What file are we talking about overwriting? Are we changing names of it? I also noticed I'm at 644 not 0644, none of the options I clicked added a zero in front.

MrWilsonxD said:
Camera and video recording works for me, but slow mo force closes the app. Followed all instructions. Not sure what "overwrite the existing file" means. What file are we talking about overwriting? Are we changing names of it? I also noticed I'm at 644 not 0644, none of the options I clicked added a zero in front.
Click to expand...
Click to collapse
It looks like you are changing the permissions for Google camera.
Read the instructions again please.
You have to download the XML file from step 1.)!

Thank you..It works on experience rom based on oos 4.0.3 in op3...I just had to dwonload google camera compatible with android 7.0..Then followed your guide..:good:

AcmE85 said:
It looks like you are changing the permissions for Google camera.
Read the instructions again please.
You have to download the XML file from step 1.)!
Click to expand...
Click to collapse
You would think at this point I would be able to read.. -_- obviously not. I replaced it, thank you. Everything works now! Thank you!

720P On OnePlus 3 and 3T.This is really a great news for all OnePlus 3 and 3T users.

@AcmE85
First of All I would like to give you a medal. Thx you so much for this. OnrPlus 3/3T is so strong that can have so much good features in camera. Too bad that OnePlus team dont work on it.
I have some question:
1. Please can you make record with 240fps slowmotion?
2. You say somethong about 1080p at 120fps? Can you do that?
3. And what about make slowmotion better video quality, to add more bitrate?
For all this and more camera features Im ready to pay.
One more time Thx you a LOT!

isko01 said:
1. Please can you make record with 240fps slowmotion?
2. You say somethong about 1080p at 120fps? Can you do that?
3. And what about make slowmotion better video quality, to add more bitrate?
Click to expand...
Click to collapse
You're welcome. I did not really code anything myself though.
1. I think the camera sensor does not even support 240fps
2. I did say 1080p at 60 fps. Sorry but both the stock OOS Camera and Google Camera are closed source and I'm no dev.
3. You could try to manually raise the bitrate inside the xml file. In terms of brightness there is nothing than can be done though.
Slowmotion recordings will always be darker compared to regular videos because of the higher framerate.
More fps means the sensor has less time per frame to capture light. A higher shutter-speed when you compare this to photos.

AcmE85 said:
You're welcome. I did not really code anything myself though.
1. I think the camera sensor does not even support 240fps
2. I did say 1080p at 60 fps. Sorry but both the stock OOS Camera and Google Camera are closed source and I'm no dev.
3. You could try to manually raise the bitrate inside the xml file. In terms of brightness there is nothing than can be done though.
Slowmotion recordings will always be darker compared to regular videos because of the higher framerate.
More fps means the sensor has less time per frame to capture light. A higher shutter-speed when you compare this to photos.
Click to expand...
Click to collapse
My friend,
I can tell you that crDroid ROM for OnePlus 3/3T have modified camera that can record 240fps at 720p.
So please can you take it from that rom and make it work for stock?
Here is Youtube proof video:
Go on 2minit and you will see 240fps at 720p.

@isko01
I'm at work right now but will take a look later...
If you want to help then please provide me the media_profiles.xml from mentioned crdroid.
edit: I've tried editing the xml to enable 240 fps but it did not work. Nothing I can do as I can't modify the apps to record with 240 fps.
I also suspect missing camera libs for 240 fps in OxygenOS. I won't flash CrDroid to test this out or find the missing pieces though.
If you want to help with this mod feel free to ask the CrDroid Dev how he managed to enable 240 fps recording.
I can only repeat that I am no dev, so anything which involves real coding is beyond my knowledge.

AcmE85 said:
@isko01
I'm at work right now but will take a look later...
If you want to help then please provide me the media_profiles.xml from mentioned crdroid.
edit: I've tried editing the xml to enable 240 fps but it did not work. Nothing I can do as I can't modify the apps to record with 240 fps.
I also suspect missing camera libs for 240 fps in OxygenOS. I won't flash CrDroid to test this out or find the missing pieces though.
If you want to help with this mod feel free to ask the CrDroid Dev how he managed to enable 240 fps recording.
I can only repeat that I am no dev, so anything which involves real coding is beyond my knowledge.
Click to expand...
Click to collapse
I will try, but im a noob, but i will try.
How I see on the video clip they are using Snapdragon camera but modified.

There is no way to run oss 7.0??

jotaandro said:
There is no way to run oss 7.0??
Click to expand...
Click to collapse
Users already commented that it also works on OOS 4.0.3.
Follow the how-to and use an older Google camera:
http://www.apkmirror.com/apk/google...era-4-1-006-126161292-2-android-apk-download/

Related

1080P Video Recording!!!!!!

Alright don't chew my arse if I am not right, but I think I just might be...
Gspot image attached of a 10sec. sample video using the below settings and attached media_profiles.xml
What I have done is edited the build.prop with a new property using Prop Editor:
Code:
ro.media.camcorder.1080p=mp4,h264,60,24000000,aac,128000,44100,2
So property is:
Code:
ro.media.camcorder.1080p
Value:
Code:
mp4,h264,60,24000000,aac,128000,44100,2
I also made changes to the Media_profiles.xml file and have attached that file in zip format.
To install:
Unzip the file
using root explorer go to /System/etc
Rename media_profiles.xml to media_profiles.xml.bak
copy the new media_profiles.xml file to /System/etc
Change permissions to rw-r--r--
Reboot
Open up the camcorder
Goto Settings 1080P Shows HD+ on the screen when recording..
enjoy 1080P video recording...
FYI.. In 720p mode the same 10sec video had a file size of 14MB
In 1080 mode same subject matter video 10 sec. with a file size of 21MB.
Another build.prop edit:
ro.camcorder.videoModes=true
Default is false
This enables Video mode, which includes Video message, Normal, Slow motion, and Fast motion.
Hope this helps!!
The BIG question is, why do you want 1080P recordings? The optics can not really even support 720P and 1080P will not make it look better, probably even worse and the file will be twice as big. Playback of 1080P I can understand.
Just my 0.02
Cheers
nice post, but is the 1080p recording still only 24fps?
Also, to solve the spacing problem in the post, put the lines inside the Code tags
Code:
ro.media.camcorder.1080p=mp4,h264,60,24000000,aac,128000,44100,2
pederb said:
The BIG question is, why do you want 1080P recordings? The optics can not really even support 720P and 1080P will not make it look better, probably even worse and the file will be twice as big. Playback of 1080P I can understand.
Just my 0.02
Cheers
Click to expand...
Click to collapse
Being able to extract any frame and have it 2mp is pretty cool to me. It the highest resolution, if you're playing it on a nice full HD screen, it will fill every pixel. It does look better in 1080p
andy2na said:
nice post, but is the 1080p recording still only 24fps?
Also, to solve the spacing problem in the post, put the lines inside the Code tags
Code:
ro.media.camcorder.1080p=mp4,h264,60,24000000,aac,128000,44100,2
Click to expand...
Click to collapse
I'm actually glad that it's 24fps. If you think, any professional movie on a dvd only plays 24fps. When it gets up to 30fps, it plays faster and looks more like a home video, so I like the 24fps look better.
Thanks for this will try it out tonight!
Sent from my MB860 using XDA Premium App
Not work on Stock rom! At least for me...
It looks better but our software is not optimized to record 1080p yet. So videos are slightly choppy.
Sent from my MB860 using XDA Premium App
Works great on CherryBlur!
Still a little choppy during recording, but the output file is definitely 1080p at 24fps.
Playback is very smooth.
Nice find on the xml file.
Doesn't work for me too!!!
p.s. atrix has far more optics than just 2.5 mpx (1080p)
agurzhiy said:
Doesn't work for me too!!!
p.s. atrix has far more optics than just 2.5 mpx (1080p)
Click to expand...
Click to collapse
same as me
A agurzhiy and yusmiza... Did you change the permissions of the media_profiles.xml to rw-r--r-- and reboot after copying the file over and making the changes in the build prop?
does the front camera work? noticed in you xml you put the high setting for the front cam at 720P
Seems to work for me. At least 720 and 1080 the file sizes were different anyway (for the same time frame) Nothing to really test it on here at work.
edit: When taking pictures the 720 and 1080 file sizes are different also...though both say 3.8 mp still
i just edited myself!
Please tell me the version of your FW and is it a stock camera?
p.s. i do not care 1080, i need SloMo, but my buildProp has on default ro.camcorder.videoModes=true
Default was true for me
running Ken's GB beta 4 and yes stock camera
i'll try to copy your file. I found slomo and fastmo
but both of them, while playing are just usual video. Nothing faster, nothing slower, despite the fact that camera on slomo each second counts as 3 seconds (so it shows after 3 seconds that 9 seconds were recorded)
y2... Thanks for catching that!! I didn't realize I didn't put the front camera setting back to norm.. My front Camera doesn't work due to a swimming pool incident with my Atrix, but it will usually come up with a black screen.. now I get a FC.. I will make the appropriate changes and update the file.. Let me know if the new file lets the front cam work on yours...
agurzhiy said:
Doesn't work for me too!!!
p.s. atrix has far more optics than just 2.5 mpx (1080p)
Click to expand...
Click to collapse
the optics don't matter, it's the sensor. the sensor is also not able to capture constant data at the full 5 MP (video); it can take pictures at that level but it can't handle video at that level. that's why whenever you record a video on you digital camera, it's at a much smaller resolution, or why when you do burst-mode on some cameras, the maximum size is smaller than the regular MP rating.
agurzhiy said:
i'll try to copy your file. I found slomo and fastmo
but both of them, while playing are just usual video. Nothing faster, nothing slower, despite the fact that camera on slomo each second counts as 3 seconds (so it shows after 3 seconds that 9 seconds were recorded)
Click to expand...
Click to collapse
ag.. Mine records like you said counts as 3, but will play back slow. I do have the app HERE loaded as well...

MiraVision, ClearMotion & (more of 30FPS Now is possible!)

There are at least two very important things for me, and that would be an excellent improvement to the user experience of this phone.
The first is can use MiraVision. This is a great improvement to the image quality.
The software comes preinstalled !!! at least in the weekly version 5.11.26 and 5.12.3 ...
Now you can be activated, and it is magnificent !!! but the settings can not be saved.
When turning off the display, it returns to the default setting.
The second is be able to record video at normal speed, at least at 60FPS. Helio x10 can do that and much more, and the image sensor too, the software why not?
If we succeed in this, the phone would win many positive points.
Anyone wants help me?
Of course you can't save the settings, miui have a stock screen management
Sent from my Redmi Note 2 using Tapatalk
Well ... Now you can record video in HD at 60FPS (or more)
The solution is here
But we need help to make it work the "slow motion".
We need the name of the tag for this mode.
You know if it's possible to use clear motion in CM?
That feature is really amazing..
FAP31 said:
Well ... Now you can record video in HD at 60FPS (or more)
The solution is here
But we need help to make it work the "slow motion".
We need the name of the tag for this mode.
Click to expand...
Click to collapse
Can u translate it to English? I can't find the media.profile.XML in root explorer. Please help.
Javi22 said:
You know if it's possible to use clear motion in CM?
That feature is really amazing..
Click to expand...
Click to collapse
+1 can someone test that?
60 FPS camera
Simply MIUI lacks media_profiles.xml, that usually is included in every Android version in /system/etc
This file is read from multimedia apps in order to get phone's capabilities with camcorder.
If you insert that file in MIUI the stock camera app will read it and the camcorder fps drop will be bypassed. The camera will record at 60fps also in low light condition! Actually file works fine, in fact it will put the exposure at a low level in order to get best fps performance. But it isn't so optimized and the Spanish team is working on it. You can download the file from https://drive.google.com/file/d/0B1jCoBYPR8eGbVVXZkM1V2VBdUk/view?usp=sharing
You have to set permission to 644 RW R R
Slow motion will not work for now. But it's great that at least we will have a perfect camera fps for now (720p 60fps and 1080p 46fps).
The question is, why if the hardware of our phone is so powerful Xiaomi made a rom that actually doesn't reflect this powerfulness??
For cyanogenmod we don't have anything right....?
Superb job!
Sent from my Redmi Note 2 using Tapatalk
jack_21 said:
60 FPS camera
Simply MIUI lacks media_profiles.xml, that usually is included in every Android version in /system/etc
This file is read from multimedia apps in order to get phone's capabilities with camcorder.
If you insert that file in MIUI the stock camera app will read it and the camcorder fps drop will be bypassed. The camera will record at 60fps also in low light condition! Actually file works fine, in fact it will put the exposure at a low level in order to get best fps performance. But it isn't so optimized and the Spanish team is working on it. You can download the file from https://drive.google.com/file/d/0B1jCoBYPR8eGbVVXZkM1V2VBdUk/view?usp=sharing
You have to set permission to 644 RW R R
Slow motion will not work for now. But it's great that at least we will have a perfect camera fps for now (720p 60fps and 1080p 46fps).
The question is, why if the hardware of our phone is so powerful Xiaomi made a rom that actually doesn't reflect this powerfulness??
Click to expand...
Click to collapse
Amazing work ?
hey guys and for the 4k? mtk6795 can recoring and camera sensor too!!
Guys how to open the miravision app
It shows up in my installed apps list but how to open the app
Well guys, I've some good news. I've successfully managed to get ClearMotion running on MIUI
Will share it today or tomorrow!
Here you go guys!
http://forum.xda-developers.com/red...d-enable-clearmotion-miui-based-roms-t3278552
jack_21 said:
60 FPS camera
Simply MIUI lacks media_profiles.xml, that usually is included in every Android version in /system/etc
This file is read from multimedia apps in order to get phone's capabilities with camcorder.
If you insert that file in MIUI the stock camera app will read it and the camcorder fps drop will be bypassed. The camera will record at 60fps also in low light condition! Actually file works fine, in fact it will put the exposure at a low level in order to get best fps performance. But it isn't so optimized and the Spanish team is working on it. You can download the file from https://drive.google.com/file/d/0B1jCoBYPR8eGbVVXZkM1V2VBdUk/view?usp=sharing
You have to set permission to 644 RW R R
Slow motion will not work for now. But it's great that at least we will have a perfect camera fps for now (720p 60fps and 1080p 46fps).
The question is, why if the hardware of our phone is so powerful Xiaomi made a rom that actually doesn't reflect this powerfulness??
Click to expand...
Click to collapse
I got fhd 60fps, 30mb/s, thanks
Its working but..
In HD - 60 FPS but the video is very dark
In FHD - video is bright, but 16 FPS
Slow-motion works with this mod 60fps hd video?
Sent from my Redmi Note 2 using Tapatalk
vipkokata said:
Slow-motion works with this mod 60fps hd video?
Sent from my Redmi Note 2 using Tapatalk
Click to expand...
Click to collapse
Nope.

[GUIDE]Record better videos+low light fps workaround+increase bitrate on the Redmi 2

So you want to record more natural looking videos on your Redmi 2? Maybe so you get more headroom when video editing? Or does recording in low light look too choppy? Then this might be for you!
After reading Redmi 2 on XDA and checking out FreeDCam, I can say that it’s the best looking video recorder I’ve tried on my phone.
Of course you want to see some samples (Sorry if the samples aren’t that great but there weren’t any colourful flowers around. )
YouTube samples
Outside and sunny...
CM Snap
FreeDCam
Outside...
CyanogenMod Snap
FreeDCam
FreeDCam with some adjustments
Low light with workaround
CyanogenMod Snap
FreeDCam
This camera app will give you more manual controls than any other video recording app plus, you can even change them while recording! Here’s some specific settings that you should change…
Exposure: Adjust so nothing looks too dark or too bright (find the balance).
Contrast: Change to 0 (or something slightly higher). I guess the problem with other apps is that the contrast is set too high and makes shadows look too dark and highlights look too bright.
Sharpness: Set to 0 as the video will look more soft and natural. Sharpening after recording (i.e. using a program) seems to look better…
Denoise: Turn off as colours get washed out and we start to lose some of that detail. (Or keep it on if you really hate noise.)
There’s some issues regarding focussing, manual focus doesn’t seem to work. If you want to set your focus to infinity, after launching the app, set the focus to auto, tap to focus once and then set your focus to infinity.
Ok great now I can record better videos! But at night the video looks blurry, choppy…
The reason why this happens is so that more light can enter the camera for longer, causing the video to look blurry, choppy and noisy. Here is a workaround where you can now record at a constant 30fps even in the dark! This idea came from some OnePlus thread where you could rename a front camera video binary file to the rear camera video binary as the front camera records at a constant 30fps. Be aware there is a trade-off and it is that dark places won’t be as bright at 30fps compared to 15fps!
If you don’t do this, then 15fps could actually be helpful as you can see more with less light! FreeDCam will help a lot with a low light situation with the increased exposure and decreased contrast. You’ll get more noise though. You can either activate the denoiser and/or run a denoiser plugin after you have recorded your video.
(Note: I’m not responsible for anything that might happen on your phone. I’ve only tested this on cm13 so the files might be different across different roms.)
Note that this mod will affect all apps that record video and dark places will look very dark.
Go to /vendor/lib/
Copy the name libchromatix_ov8865_sunny_default_video.so and then back it up (rename it to something like libchromatix_ov8865_sunny_default_video.so1
Create a copy of libchromatix_ov2680_5987fhq_default_video.so and rename it to libchromatix_ov8865_sunny_default_video.so
To revert change libchromatix_ov8865_sunny_default_video.so1 back to libchromatix_ov8865_sunny_default_video.so
Increase bitrate…
You can increase the video bitrate with FreeDCam (or any other video recording app if you mess with media_profile.xml) so you can record all that fine detail (including especially the noise). Here, we’ll change the bitrate to 40Mbps.
Just head to /system/etc/media_profiles.xml and look for: (tip: near the end)
<VideoEncoderCap name="h264" enabled="true"
minBitRate="64000" maxBitRate="20000000"
minFrameWidth="176" maxFrameWidth="1920"
minFrameHeight="144" maxFrameHeight="1088"
minFrameRate="15" maxFrameRate="30"
maxHFRFrameWidth="1920" maxHFRFrameHeight="1080"
maxHFRMode="120" />
Click to expand...
Click to collapse
Change maxBitRate to 40000000 and save. This edit only tells the phone the maximum bitrate it can encode at.
In FreeDCam, make sure you’re in 1080p! Change video bitrate to 40000000 and audio bitrate 320000. Be aware that the video size will now be around 300MB/min so make sure you have plenty of storage. (I tried using an USB OTG Drive. It works! But the USB device interfered with the microphones and created noise. )
So yeah. The difference might not be that noticeable to some, but to me, it looks a lot better to me. While recording, the viewfinder might lag a bit but in the actual recorded video, it’ll be fine. I might put more samples up or maybe you try this out and get some samples for me! Hopefully there are some people here who are interested in video. :good:
My first thread
Awesome!! Works flawlessly with this app!
why dont you just give the edited file
gamernayeem said:
why dont you just give the edited file
Click to expand...
Click to collapse
Of what?
magmar452 said:
Of what?
Click to expand...
Click to collapse
media_profiles.xml
gamernayeem said:
media_profiles.xml
Click to expand...
Click to collapse
I'll make a flashable zip for both the mods
magmar452 said:
I'll make a flashable zip for both the mods
Click to expand...
Click to collapse
thanks
If you can you post guide for better picture quality in general,I am overwhelmed by amount of options it provides can you post screenshots of balanced set of options to choose specifically for our device. Thanks for this thread anyway .
rohitsonone said:
If you can you post guide for better picture quality in general,I am overwhelmed by amount of options it provides can you post screenshots of balanced set of options to choose specifically for our device. Thanks for this thread anyway .
Click to expand...
Click to collapse
Sorry, this is a video specific guide. I'm making some flashable zips and I'll put some screenshots when I have time. Perhaps @shanx_verma can make a picture guide? If I have lots of time then maybe I'll make one.
Prioritizing FPS Over Exposure
Hi magmar452.
Thank you very much for this. This is some juicy detail you uncovered here!
magmar452 said:
Go to /vendor/lib/
Copy the name libchromatix_ov8865_sunny_default_video.so and then back it up (rename it to something like libchromatix_ov8865_sunny_default_video.so1
Create a copy of libchromatix_ov2680_5987fhq_default_video.so and rename it to libchromatix_ov8865_sunny_default_video.so
To revert change libchromatix_ov8865_sunny_default_video.so1 back to libchromatix_ov8865_sunny_default_video.so
Click to expand...
Click to collapse
My front-facing camera also goes into "Slideshow Mode" in low light, so following your exact steps above didn't work for me. However, I fiddled a bit and found what does work for me:
Trade exposure for fps priority:
1. Go to /vender/lib/
2. Rename "libchromatix_ov8865_sunny_default_video.so" to "libchromatix_ov8865_sunny_default_video.so1"
3. Create a copy of "libchromatix_ov8865_sunny_hfr_60fps.so" and rename it to "libchromatix_ov8865_sunny_default_video.so"
EDIT1: Getting decent night time results using "libchromatix_ov8865_q8v18a_default_video.so" as the source. It actually allows me proper exposure/fps control. "libchromatix_ov8865_q8v18a_hfr_60fps.so" handles similarly, but prioritizes fps.
EDIT2: Various vendor libs from github/TheMuppets/xiaomi/cancro also work. However, results are all over the place.
This isn't a proper fix, but it's really good to be Slideshow-free.
Samples:
ov8865_sunny (default): youtu.be/pS544qW35ZM
ov8865_q8v18a: youtu.be/PcCC95EIceg
imx226_video_hdr: youtu.be/E79zcYlq7pU
pexxie said:
Hi magmar452.
Thank you very much for this. This is some juicy detail you uncovered here!
My front-facing camera also goes into "Slideshow Mode" in low light, so following your exact steps above didn't work for me. However, I fiddled a bit and found what does work for me:
1. Go to /vender/lib/
2. Rename "libchromatix_ov8865_sunny_default_video.so" to "libchromatix_ov8865_sunny_default_video.so.org"
3. Create a copy of "libchromatix_ov8865_sunny_hfr_60fps.so" and rename it to "libchromatix_ov8865_sunny_default_video.so"
EDIT: I'm getting decent night time results using "libchromatix_ov8865_q8v18a_default_video.so" as the source. It actually allows me proper exposure/fps control.
Not sure why it works, but it works. Maybe it's coincidence. I still get the occasional brief dips to 20-odd fps, but they're too infrequent to be a nuisance. It's not a proper fix, but it's really good to be Slideshow-free.
Short Samples: Original & Hack Job
Original: youtu.be/3VHuGj33vp4
Hack Job: youtu.be/oEH2E7t_5EI
P.S. I'm running CyanogenMod Nightly 6.0.1 (wt88047) on my Redmi 2 Pro (2014817)
Click to expand...
Click to collapse
I think most roms have switch to the lollipop canera blobs and that's why the front camera is choppy now to fix the 'dark video' problem. I've switched to Resurrection Remix, there are some few changes that had to be made to the instructions (getting the old front camera file) so I can still get 30fps.I'll check it out renaming to the 60fps file. Currently I'm quite busy
magmar452 said:
So you want to record more natural looking videos on your Redmi 2? Maybe so you get more headroom when video editing? Or does recording in low light look too choppy? Then this might be for you!
Afterreading Redmi 2 on XDA and checking out FreeDCam, I can say that it’s the best looking video recorder I’ve tried on my phone.
Of course you want to see some samples (Sorry if the samples aren’t that great but there weren’t any colourful flowers around. )
YouTube samples
Outside and sunny...
CM Snap
FreeDCam
Outside...
CyanogenMod Snap
FreeDCam
FreeDCam with some adjustments
Low light with workaround
CyanogenMod Snap
FreeDCam
This camera app will give you more manual controls than any other video recording app plus, you can even change them while recording! Here’s some specific settings that you should change…
Exposure: Adjust so nothing looks too dark or too bright (find the balance).
Contrast: Change to 0 (or something slightly higher). I guess the problem with other apps is that the contrast is set too high and makes shadows look too dark and highlights look too bright.
Sharpness: Set to 0 as the video will look more soft and natural. Sharpening after recording (i.e. using a program) seems to look better…
Denoise: Turn off as colours get washed out and we start to lose some of that detail. (Or keep it on if you really hate noise.)
There’s some issues regarding focussing, manual focus doesn’t seem to work. If you want to set your focus to infinity, after launching the app, set the focus to auto, tap to focus once and then set your focus to infinity.
Ok great now I can record better videos! But at night the video looks blurry, choppy…
The reason why this happens is so that more light can enter the camera for longer, causing the video to look blurry, choppy and noisy. Here is a workaround where you can now record at a constant 30fps even in the dark! This idea came from some OnePlus thread where you could rename a front camera video binary file to the rear camera video binary as the front camera records at a constant 30fps. Be aware there is a trade-off and it is that dark places won’t be as bright at 30fps compared to 15fps!
If you don’t do this, then 15fps could actually be helpful as you can see more with less light! FreeDCam will help a lot with a low light situation with the increased exposure and decreased contrast. You’ll get more noise though. You can either activate the denoiser and/or run a denoiser plugin after you have recorded your video.
(Note: I’m not responsible for anything that might happen on your phone. I’ve only tested this on cm13 so the files might be different across different roms.)
Note that this mod will affect all apps that record video and dark places will look very dark.
Go to /vendor/lib/
Copy the name libchromatix_ov8865_sunny_default_video.so and then back it up (rename it to something like libchromatix_ov8865_sunny_default_video.so1
Create a copy of libchromatix_ov2680_5987fhq_default_video.so and rename it to libchromatix_ov8865_sunny_default_video.so
To revert change libchromatix_ov8865_sunny_default_video.so1 back to libchromatix_ov8865_sunny_default_video.so
Increase bitrate…
You can increase the video bitrate with FreeDCam (or any other video recording app if you mess with media_profile.xml) so you can record all that fine detail (including especially the noise). Here, we’ll change the bitrate to 40Mbps.
Just head to /system/etc/media_profiles.xml and look for: (tip: near the end)
Change maxBitRate to 40000000 and save. This edit only tells the phone the maximum bitrate it can encode at.
In FreeDCam, make sure you’re in 1080p! Change video bitrate to 40000000 and audio bitrate 320000. Be aware that the video size will now be around 300MB/min so make sure you have plenty of storage. (I tried using an USB OTG Drive. It works! But the USB device interfered with the microphones and created noise. )
So yeah. The difference might not be that noticeable to some, but to me, it looks a lot better to me. While recording, the viewfinder might lag a bit but in the actual recorded video, it’ll be fine. I might put more samples up or maybe you try this out and get some samples for me! Hopefully there are some people here who are interested in video. :good:
My first thread
Click to expand...
Click to collapse
Can you make a guide for MI 5? I'm trying to record guitar videos but it's choppy
luigi0824 said:
Can you make a guide for MI 5? I'm trying to record guitar videos but it's choppy
Click to expand...
Click to collapse
Sorry I don't have an Mi 5. See if lowering resolution helps or not having enough light causes this issue.
flashable zip is there?
It will be easy then

[FIX] Razer Phone 2 Viewfinder and EIS Fix Magisk Modules

Note:
- I am not responsible for anything that goes wrong with your device, bootloops, bricks, paperweights etc... Nothing should go wrong but hey i need to include this. If you need any help i will try my best to help you to fix it if you comment.
(Downloads at the bottom of this post in the attached files)
Should work with every Razer Phone 2
Installation:
Open Magisk Manager and head to the Modules page
Click on the plus(+) and select the file you want to install
To install more than one file, after one module has installed go back and redo the same process with the other file you downloaded
The Viewfinder Fix: Download Link If XDA Is Broken
It will replace your tuned camera file with the file that razer used in android OREO as that one has no issues with the viewfinder​Issues: None that i know of so far, if you notice anything you can mention it in the comments but it is likely i cannot fix it​
The EIS Fix: Download Link If XDA Is Broken
EIS (Electronic Image Stabilisation) helps your videos look more stable, by default this is only available at 30fps and only in some apps. However, with this fix EIS will be enabled in any app that asks for it and it will work at 1080p 60fps.​Make sure to not use the stock camera app with this but instead a gcam with 60fps support for this phone (like BSGs)​Issues: It will break 4k 60fps recording, it just won't work. Also it will break 1080p 60fps recording on the front camera.​
And finally, yes of course these modules work together
Also if you need anything else or want to join the Razer Phone community join our group on Telegram!
thanks!
Why is this needed? Can you provide any context? Are these features broken on stock, or just in Gcam?
MishaalRahman said:
Why is this needed? Can you provide any context? Are these features broken on stock, or just in Gcam?
Click to expand...
Click to collapse
on stock the camera viewfinder is blurry and colours smudge, making 3rd party apps like Instagram very bad with recording videos and not being able to see well on on what you're taking a picture of.
This issue came around with the pie update for razer phone 2 so I managed to fix the viewfinder issue by using the razer libs from android OREO.
This is for every app, not just gcam.
The EIS fix allows for video stabilization at 1080p 60fps.
Usyless said:
on stock the camera viewfinder is blurry and colours smudge, making 3rd party apps like Instagram very bad with recording videos and not being able to see well on on what you're taking a picture of.
This issue came around with the pie update for razer phone 2 so I managed to fix the viewfinder issue by using the razer libs from android OREO.
This is for every app, not just gcam.
The EIS fix allows for video stabilization at 1080p 60fps.
Click to expand...
Click to collapse
Thanks for the explanation. Do you have any videos/photos to show the fix in action? Or can anyone else confirm this works? Cheers!
MishaalRahman said:
Thanks for the explanation. Do you have any videos/photos to show the fix in action? Or can anyone else confirm this works? Cheers!
Click to expand...
Click to collapse
I am outside right now but I will upload a comparison video later as I am recording some right now
MishaalRahman said:
Thanks for the explanation. Do you have any videos/photos to show the fix in action? Or can anyone else confirm this works? Cheers!
Click to expand...
Click to collapse
I have made a couple comparison videos and here they are: (read the description of each as it describes what to look for if it is not immediately visible)
1. Stock Camera Libs through the gcam viewfinder
2. My module through the gcam viewfinder
3. Stock Camera libs recording a video of snapchat (it just records the viewfinder)
4. My module recording the same video in snapchat
Even with the low youtube quality as of now (still processing probably) the changes are noticeable
MishaalRahman said:
Thanks for the explanation. Do you have any videos/photos to show the fix in action? Or can anyone else confirm this works? Cheers!
Click to expand...
Click to collapse
Using both of these and my gcam is much better. Viewfinder no longer has a ghosting effect, colors are better, and stabilization works.
Usyless said:
Note:
- I am not responsible for anything that goes wrong with your device, bootloops, bricks, paperweights etc... Nothing should go wrong but hey i need to include this. If you need any help i will try my best to help you to fix it if you comment.
(Downloads at the bottom of this post in the attached files)
Should work with every Razer Phone 2
Installation:
Open Magisk Manager and head to the Modules page
Click on the plus(+) and select the file you want to install
To install more than one file, after one module has installed go back and redo the same process with the other file you downloaded
The Viewfinder Fix: Download Link If XDA Is Broken
It will replace your tuned camera file with the file that razer used in android OREO as that one has no issues with the viewfinder​Issues: None that i know of so far, if you notice anything you can mention it in the comments but it is likely i cannot fix it​
The EIS Fix: Download Link If XDA Is Broken
EIS (Electronic Image Stabilisation) helps your videos look more stable, by default this is only available at 30fps and only in some apps. However, with this fix EIS will be enabled in any app that asks for it and it will work at 1080p 60fps.​Make sure to not use the stock camera app with this but instead a gcam with 60fps support for this phone (like BSGs)​Issues: It will break 4k 60fps recording, it just won't work. Also it will break 1080p 60fps recording on the front camera.​
And finally, yes of course these modules work together
Also if you need anything else or want to join the Razer Phone community join our group on Telegram!
Click to expand...
Click to collapse
Which camera version are you using? The 7.4 version doesnt with when i want to use video and the 7.3 versions all crash instantly on startup same as 7.2.
Danishblunt said:
Which camera version are you using? The 7.4 version doesnt with when i want to use video and the 7.3 versions all crash instantly on startup same as 7.2.
Click to expand...
Click to collapse
Impossible, are you using BSGs cameras? also disable the EIS fix to check if it is that one.
Is it the EIS FIX of VF FIX doing it? and which gcams did you try (by which modder)
Usyless said:
Note:
- I am not responsible for anything that goes wrong with your device, bootloops, bricks, paperweights etc... Nothing should go wrong but hey i need to include this. If you need any help i will try my best to help you to fix it if you comment.
(Downloads at the bottom of this post in the attached files)
Should work with every Razer Phone 2
Installation:
Open Magisk Manager and head to the Modules page
Click on the plus(+) and select the file you want to install
To install more than one file, after one module has installed go back and redo the same process with the other file you downloaded
The Viewfinder Fix: Download Link If XDA Is Broken
It will replace your tuned camera file with the file that razer used in android OREO as that one has no issues with the viewfinder​Issues: None that i know of so far, if you notice anything you can mention it in the comments but it is likely i cannot fix it​
The EIS Fix: Download Link If XDA Is Broken
EIS (Electronic Image Stabilisation) helps your videos look more stable, by default this is only available at 30fps and only in some apps. However, with this fix EIS will be enabled in any app that asks for it and it will work at 1080p 60fps.​Make sure to not use the stock camera app with this but instead a gcam with 60fps support for this phone (like BSGs)​Issues: It will break 4k 60fps recording, it just won't work. Also it will break 1080p 60fps recording on the front camera.​
And finally, yes of course these modules work together
Also if you need anything else or want to join the Razer Phone community join our group on Telegram!
Click to expand...
Click to collapse
Usyless said:
Impossible, are you using BSGs cameras? also disable the EIS fix to check if it is that one.
Is it the EIS FIX of VF FIX doing it? and which gcams did you try (by which modder)
Click to expand...
Click to collapse
Using BSG 7.4 latest release, only got the VF Fix as I would like to shoot 4k.
I'm using:
https://f.celsoazevedo.com/file/cfiles/gcm1/MGC_7.4.104_V0a.apk
Danishblunt said:
Using BSG 7.4 latest release, only got the VF Fix as I would like to shoot 4k.
I'm using:
https://f.celsoazevedo.com/file/cfiles/gcm1/MGC_7.4.104_V0a.apk
Click to expand...
Click to collapse
You on android 9 or 10? also try disable it and see if it works.
also try re downloading it as maybe it got corrupted
Usyless said:
You on android 9 or 10? also try disable it and see if it works.
also try re downloading it as maybe it got corrupted
Click to expand...
Click to collapse
Am on stock rom Pie and did redownload and try without ur mods.
Danishblunt said:
Am on stock rom Pie and did redownload and try without ur mods.
Click to expand...
Click to collapse
okay so,
1. does it work without the mods?
2. I've had testers and it all works on stock rom and android 10
3. does the redownloaded one work?
4. if you use a social media app like Instagram does it work?
Usyless said:
okay so,
1. does it work without the mods?
2. I've had testers and it all works on stock rom and android 10
3. does the redownloaded one work?
4. if you use a social media app like Instagram does it work?
Click to expand...
Click to collapse
1.) Camera works on stock camera app, instagram, facebook, gcam 6.1.
2.) Doesnt work with gcam 7.4 with or without mods
3.) redownloaded and reinstalled 3 times, clean install.
Danishblunt said:
1.) Camera works on stock camera app, instagram, facebook, gcam 6.1.
2.) Doesnt work with gcam 7.4 with or without mods
3.) redownloaded and reinstalled 3 times, clean install.
Click to expand...
Click to collapse
it seems more of like an issue with your phone or something as I've not heard of anybody having problems with the viewfinder fix.
about the 7.4 gcam, try BSGs latest version from celsoazevado, it should be labelled test
also you said the camera works in social medias, is that with or without the viewfinder fix
Usyless said:
it seems more of like an issue with your phone or something as I've not heard of anybody having problems with the viewfinder fix.
about the 7.4 gcam, try BSGs latest version from celsoazevado, it should be labelled test
also you said the camera works in social medias, is that with or without the viewfinder fix
Click to expand...
Click to collapse
I don't see the latest version being labelled as test. Maybe you're talking about one of those that are labelled as test?
Danishblunt said:
I don't see the latest version being labelled as test. Maybe you're talking about one of those that are labelled as test?
Click to expand...
Click to collapse
seems it got deleted then, join the telegram channel with the version available there, https://t.me/razer_phone
you can also get more help there

Themes / Apps / Mods Modded camera with improved audio quality for Realme GT2

Since there was no fix, provided by Realme, for the quality of the audio in videos recorded with the stock camera app, and unlocking the bootloader is still not available for the RMX3311 (EU) the only way to improve the audio was to modify another camera app, without loosing stock camera features, like 60fps, stabilization, etc.
So, I've decompiled and modified the GCam port from SHAMIM (SGCAM) and changed the audio source from "Camcorder" to "Voice recognition" (see https://developer.android.com/reference/android/media/MediaRecorder.AudioSource), is not perfect but much better than stock.
I've also included the configuration xml for SGCAM 8.4 with basic settings for Realme GT2 so the quality of photos and videos be similar to the stock camera.
Working (after importing my config xml) :
- Back (main) camera: FHD videos 30/ 60fps, 4k 30fps, image quality equal to stock camera
- Improved sound quality in video recordings for front and back camera
- Front camera 60fps
Not working:
- Slow motion (works partially)
- Aux cameras (wide and macro)
- HDR+ or HDR+Enhanced if activated the colors are bad, inaccurate, too artificial. Can be improved but I personally like the results without hdr+, so I don't care to make them work.
I've created two builds because the recorded audio channels are reversed, (android 13, fw c.06), you can check using stock sound recorder, if you speak to top mic the sound plays on bottom speaker, mono for current situation (with reversed channels) and stereo for when (if) they will fix the channels order.
Install instructions:
1. Download the modified SGCAM from here:
mono: https://uploadnow.io/f/G4Ctrh7
or
stereo:
https://uploadnow.io/f/lJBRS1t
2. Download the Realme GT2 config file for SGCAM 8.4: Lcfg1.xml (attached to this post)
3. Install SGCAM, open once, allow permissions, (needed to create folders for configs)
4. Copy Lcfg1.xml to [phone internal storage]/SGCAM/XML/Lcfg1.xml
5. Import Lcfg1.xml by double tapping the blank space between shutter button and switch camera button (see the attached screenshot)
6. Leave a message if it helped you
reserved
Will test, nice work. Still angry at Realme for crippling the device like this.
This is sooooooooooo much better
In case if someone wonders, there is a xml for the GT 2 Pro, which the ultrawide camera works with, and it also works on our GT 2, but the picture quality is very low and noisy.
https://forum.xda-developers.com/t/gcam-for-realme-gt2-pro.4429173/post-87701663
It is in the attachments.
@hdavid1 For the aux cameras (wide and macro) to work you need GCAM, with package name com.ss.android.ugc.aweme But those have an issue, the photos taken with the main camera are shifted to the right (they have a black border on the left) - tested only on my GT2.
hdavid1 said:
In case if someone wonders, there is a xml for the GT 2 Pro, which the ultrawide camera works with, and it also works on our GT 2, but the picture quality is very low and noisy.
https://forum.xda-developers.com/t/gcam-for-realme-gt2-pro.4429173/post-87701663
It is in the attachments.
Click to expand...
Click to collapse
just tested that xml file and it's not working. My SGCAM build is not derived from the com.ss.android.ugc.aweme package, because of the reason posted above.
wizard8400 said:
just tested that xml file and it's not working. My SGCAM build is not derived from the com.ss.android.ugc.aweme package, because of the reason posted above.
Click to expand...
Click to collapse
hi there i have the gt but the 1 with the same audio issue i can open the bootloader so i can fix it but i dont know how can you provide me some guidence pls?
@alex61194, I didn't understand your request. Can you rephrase, please. And use punctuation, it really helps
wizard8400 said:
@alex61194, I didn't understand your request. Can you rephrase, please. And use punctuation, it really helps
Click to expand...
Click to collapse
sry, tipped too fast, i have the realme gt 5g, and have the same issue as your phone but in my case i can open the bootloader and be root, but i dont know what i have to change to fix the mic issue(i saw i have to edit mixed_paths.xlm), honestly i dont care about video but about voice recording in general
post here your mixer_paths.xml and I'll have a look, I don't think it's the same as on the gt2
Have you tried out other Audio Sources and if that changes anything or is Voice Recognition the best for this device?
@smashda Yes I've tried them all, and voice recognition is the only one with acceptable results. Sources like unprocessed is too low, voice com. has too much noise canceling, etc.
wizard8400 said:
post here your mixer_paths.xml and I'll have a look, I don't think it's the same as on the gt2
Click to expand...
Click to collapse
here you go https://mega.nz/file/8odHXDSB#IhmdD1ntn4fMyeRpMVZnNj-uiSBNUG9kOuseiC8bBjo
@alex61194
*!!! have a backup so you can restore from custom recovery, just in case.
1.make sure you are editing mixer_paths.xml from /vendor/etc
2. modify the file according to the instructions from the screenshots.
3.after saving the file verify/set the permissions to be rw-r-r (like before)
4. reboot the phone, check if the modifications are still there
5. try a recording see if something changed. Do not expect to fix or improve something. This is just a test to see if we are on the right path.
6. tell me the results.
@wizard8400 bruh we have GT 2 Indian variant RMX3312 with an unlocked bootloader. We, unfortunately don't have TWRP. Can you give some suggestions?
@Ptathavi I think is possible with magisk:
first you need to flash a patched boot image (patched by magisk) to have root
and then something like: https://forum.xda-developers.com/t/how-to-change-files-in-the-directory-system-with-magisk.4454489/
or try searching something like "edit system file with magisk"
wizard8400 said:
@Ptathavi I think is possible with magisk:
first you need to flash a patched boot image (patched by magisk) to have root
and then something like: https://forum.xda-developers.com/t/how-to-change-files-in-the-directory-system-with-magisk.4454489/
or try searching something like "edit system file with magisk"
Click to expand...
Click to collapse
Thank you bro, much appreciated. I'll try. Since I've root there's posibility
Ptathavi said:
Thank you bro, much appreciated. I'll try. Since I've root there's posibility
Click to expand...
Click to collapse
How did you root it? Did you flash the patched boot img from magisk?
Prinve said:
How did you root it? Did you flash the patched boot img from magisk?
Click to expand...
Click to collapse
Join our group for help
Mod. edit: social media link removed. alecxs
What!!! I have been searching for this for so long but i couldn't find it, searches only showed Neo 2 and Pro and as there were no posts in XDA i thought development hasn't started yet so i was learning/trying to build twrp and build device tree for it. Thanks for the link

Categories

Resources