yashsingh1/xdaforums huggingface dataset:
[Xiaomi Mi 5 Themes, Apps, and Mods] stars2:
Thanks to eszdman for this mod!

This is a little bit modified version (not the libs)

But now is working flawlessly....

* 60 fps option working with Google Camera

* no flickering in Google Camera, when you touch the screen to focus in video recording

Download from here (lifetime is 7 days)

http://wikisend.com/download/314156

(I tested on latest RRN rom, and latest Google Camera Mod by BSG, but all other camera app is working...)
[Xiaomi Mi 5 Themes, Apps, and Mods] itsboogie:
Works perfectly, thanks! Fixed my issue with the flickering GCam too.

Any idea if we can push the mod one step further and get 1080p120fps and 720p240fps slow-motion like some of the other SD820 phones or would it not be possible on the Mi5? Either way, 1080p60fps (and no flickering) is a huge improvement :good:
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
Actually, mi 5 supports 1080p120 natively with miui camera, you can try it on mitfahzy's port of miui camera. Not sure why no custom rom or even stock rom enables it. One of life's mystery.
[Xiaomi Mi 5 Themes, Apps, and Mods] eszdman:
With stock lib mi5 supports this only with binning 1920*1080/2*2
[Xiaomi Mi 5 Themes, Apps, and Mods] Mr.201:
Hey thanks for the module. No crashes & flickering. Working 60fps on jdcteam 7.1.2
[Xiaomi Mi 5 Themes, Apps, and Mods] eszdman:
I fixed it, re download please :D
[Xiaomi Mi 5 Themes, Apps, and Mods] eszdman:
Thanks for the media_profiles fix
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Can you put a guide to install this very requested feature? I'm on the latest Xiaomi.eu stable firmware and I have deleted SuperSU to install magisk but after flashed this module, rebooted, the stock camera doesn't work when I set 1080p video resolution!! What am I doing wrong? Write the steps. Do I need to install Google camera? Before or after the module?
[Xiaomi Mi 5 Themes, Apps, and Mods] eszdman:
The stock camera should not work because it's hard to fix this
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Thanks... because nobody is clear here and there is no guide to go ahead. I also have never used magisk because I always had SuperSU. So with last package posted by a Stars2 there is no problem with stock camera, it works as always but video recording is 30 FPS max. Now I flash Google camera to see it work on my Mi 5 Pro 120 GB. Should I reboot the phone for every flash of magisk module right?

---------- Post added at 09:11 AM ---------- Previous post was at 08:56 AM ----------

Thank you stars2!! I'm following you since Jiayu G4 Advanced Miui ROM! You did a great job for that phone infact I was able to use it through that ROM. So you helped again.
[Xiaomi Mi 5 Themes, Apps, and Mods] Mkkt Bkkt:
First you should avoid SuperSU , it's old and doesn't pass safety net by Google ( you can check in Google play store if your device is certified or not)

Magisk is better and pass safety net because it's doesn't change/edit system files and this is where magisk modules like this one comes in allowing you to change system files without triggering safety net.

Secondly if you are using Roms like AEX MOD , you can download universal zip files (it's a magisk modules) then go magisk=>Modules=> now press the + at the bottom and search for file you just downloaded and select it , it will install automatically then press Roboot to apply the Modules you just installed. That's it , once the phone has rebooted you can go test if it's works , in your case : start gcam mod and record a video with 60fps enabled at the top , once you have finished recording your video , you need to check if video has been recorded in 60fps or not , apps like MX Player can give this information very easy.
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Ok thanks, using SuperSu I never felt any problems, and I used it for years in every phone. But if magisk is better and it doesn't touch system files it's better and I will go with it. But now I have Xiaomi.eu ROM which is the best ROM I've found, Aex was missing some options that Miui has, so I am on Miui 9 and the Google camera I downloaded from the collection thread crashes. So I would not I would have to flash Aex mod to get it working. Is there a camera APK working with Miui?

However I use Video Info Viewer for this because it is more precise.
[Xiaomi Mi 5 Themes, Apps, and Mods] alone_in_dark:
Its not hard to fix Stock Camera's 1080p and 4k.. Frame rate is need to be adjusted from 60 fps to 30 fps in "media_profile.xml" at line 181 and 233. Your today's new module should work fine as it contains this fix.

Download today's updated module by [MENTION=6792776]eszdman[/MENTION] or the module of [MENTION=2228991]stars2[/MENTION] above.
[Xiaomi Mi 5 Themes, Apps, and Mods] eternal70:
Thanks for the module, it fix all the camera related problem i've known !

[MENTION=6792776]eszdman[/MENTION] is it possible for you to push your change to lineage gerrit ? So other roms can add this fix to their source
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
I still don't understand... Want be more accurate? I ve already downloaded the fix by stars2 and the camera is working but taking a video doesn't record at 60 FPS but max 30....so should I use another camera??! Or just modify media_profile?

Google camera doesn't work on Miui
[Xiaomi Mi 5 Themes, Apps, and Mods] stars2:
1. Download my fix or eszdman updated zip

2. Add module to Magisk Manager and Reboot

3. Install Google Camera (I tryed with this: https://www.celsoazevedo.com/files/android/google-camera/f/MGC_5.1.018_FINAL_3.3.apk )

3. Open Google Camera and Select Video Recording mode, in the top of the preview screen select 60 FPS option and try to record.

You can check with any video info app, the framerate is 59,**
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Ok, so I tried to install this Google camera you posted and it works but image preview is rotated, pressing on video camera makes the app crash so I cannot change fps...so video recording doesn't work
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
i have no idea what that means lol
[Xiaomi Mi 5 Themes, Apps, and Mods] alone_in_dark:
You don't have to modify media_profiles.xml.. I said that for OP.. Just re-download the universal module or stars2's module.. Activate in magisk.. Make sure you have enabled camera 2 api and installed Mi5's camera upside down fix. Then install this Gcam version. Stock camera can't record at 60 fps. Gcam can.

https://www.celsoazevedo.com/files/android/google-camera/f/GoogleCamera-Pixel2Mod-Arnova8G2-V6.apk
[Xiaomi Mi 5 Themes, Apps, and Mods] ergysramaj:
Any link to that port? I can't find it
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
http://en.miui.com/thread-860484-1-1.html

Not sure if it works on oreo though. The last i used it was with lineage 14.1
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
I downloaded V7 beta 8 of the same cam and I can say it now works with camera 2 enabled! I was thinking that zip was enough flashing it.

So the thing now is that in the dark with only my netbook light, the camera can record at 46,88 FPS which is not bad but now I want try to record with lights turned on to see if it's better.

Two other videos:

Light turned on with flash 52,02 FPS.

Without flash 47,74 FPS.

What I can say is that videos are overall dark so if would be a fix to this would be good. I'm sure Xiaomi can make a better job if they work on it. It's really disappointing if they don't.
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Slowmotion crashes on stock camera and sometimes on Google camera too.

Google camera is not good to take pictures because it's not able sync with flash. Took some pics, all blacks.
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
There are some lags with google camera while starting up, and then it just got stuck. Not sure if this mod is the cause or the google camera port itself(using arnova82's v6). Here is the log taken using matlog. I hope someone can figure out what it means because i'm clueless about any of it. There seems to be a long lines of error with QCamera in there. I'm using AEX(latest), stock kernel. Just clean flashed today.
[Xiaomi Mi 5 Themes, Apps, and Mods] alone_in_dark:
MX player shows exactly 60 fps. The problem is that the more fps a video has, the more darker it gets. No doubt, video quality has increased.. But, as the lib has been modified, it also makes stock camera's 30 fps dark. The workaround for night video recording till now is either you can record in 4k with stock camera or you can disable the module before recording in 1080p. Forget about xiaomi.. They haven't implemented 60 fps on Mi 6 and Mi Note 3.. Mi 5 is 2016's. :rolleyes:

I think you are talking about v7 beta 8 of arnova's gcam. I would suggest to use V6 for now on Mi 5. It's Stable. Just select "Pixel 2017 Zsl Hdr+" for Config Camera HDR+ in settings.
[Xiaomi Mi 5 Themes, Apps, and Mods] virushunt:
When activate the Mod, the pictures taken with Gcam are very graini. Is it possibel to fix that?
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Yes I was referring to V7 beta 8. Now I will try V6. And if something goes wrong I will try the one recommend by stars2 MGC_5.1.018_FINAL_3.3.

Update

With Google camera V6 things seem to go better but not perfect as I have seen on some videos. 52,67 FPS. The fact is that framerate is not stable. Maybe there are some options to touch.

Update

Wow I made a video with stars2 recommended camera https://www.celsoazevedo.com/files/android/google-camera/f/MGC_5.1.018_FINAL_3.3.apk and it crashed the first time I started videocamera but then it recorded at 56,83 FPS (I'm making always the same type of video and shots to test the same kind of light and colours). So it's the best till now and I didn't touch setting, only set FPS, but I want remove text on camera preview

I also want try the Xiaomi A1 camera port because everyone says it's well made.
[Xiaomi Mi 5 Themes, Apps, and Mods] apo103:
Can you make for Twrp and MIUI 9.2.1.0
[Xiaomi Mi 5 Themes, Apps, and Mods] tbtodkar:
Front camera

Any fix for upside down front camera???

Rom miui 9 8.3.8 beta android 7.0
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Sure man here you go http://www70.zippyshare.com/v/ZSdldEhD/file.html flash with magisk and reboot.
[Xiaomi Mi 5 Themes, Apps, and Mods] iKeramat:
60 FPS Is Fully Working But Slow Motion And Time-Laps Is Not Working 14.03.2018 Version
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
I was wondering if the problems I got are related to Miui os because of its limitations. Maybe if I go with Aex mod I can get perfect 1080p 60 fps videos. But the thing for which I hesitate is that Miui camera is the best I tried taking photos so I would not deprive me of that.
[Xiaomi Mi 5 Themes, Apps, and Mods] virushunt:
Running with cpMiui 8.3.15 and works fine here.
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Can you test the 60 FPS recording in the dark or with low light and then calculate the FPS? Use Video Info Viewer in the market which is more accurate.

Because a really good 60 FPS video should be minimum on 58-59 FPS without decrease, like Oneplus 3 that works well.

I hope Xiaomi wakes up and give us officially this great feature which is due.
[Xiaomi Mi 5 Themes, Apps, and Mods] virushunt:
Only 53,35 fps....
[Xiaomi Mi 5 Themes, Apps, and Mods] stars2:
Try Android 7.1.2 Lineage OS based custom rom (Lineage OS 14.1 or what you want) and you can use ported MIUI Camera (The ported version from the Xiaomi A1 is 98% fully working, except the age and gender detection, qr code scanner and possibly hand held twilight, but all function is working, no lag, force close or something.

The MIUI Camera is the best for video recording, and macro photo shooting in night, with flashlight function, or the night photos with manual function and long exposure....

The Google Camera is better fro photo shooting in daylight with HDR+ mode, more sharpness, less noise...
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Miui camera is the best for what I have seen...pics look good but videos 30 FPS limited are not a good deal if you like to record, so I will use Google camera. But I'm just looking for a nice OS which has features of Miui like flash during locked phone pressing buttons, a force close function in the task bar, option to choose separated status bar with notifications and toggles, central button to unlock phone with fingerprint without pressing it but only touching...these are some of things I need, and for sure no bugs. Lineage 14.1 was not complete for me also if it was running well. I'll try AEX mod new version and lineage 15 to see best one...or if nothing really changes in video recording fps I will return to a comfortable Miui by Xiaomi.eu ... Let's see if Xiaomi is able to make a nice Oreo ROM with battery life and waiting for Miui 10...hope it will be lighter with minimal good functions.

---------- Post added at 11:38 PM ---------- Previous post was at 11:34 PM ----------

53,35 is not that good...far from ideal, that means you will notice framerate loss during playback. Watching Monster Mite video it was stable.
[Xiaomi Mi 5 Themes, Apps, and Mods] Mr.201:
I always got like 57fps - 59fps doesn't matter low light or good light. Though quality is not sharp as shooting in 30fps
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Rom and camera?
[Xiaomi Mi 5 Themes, Apps, and Mods] Mr.201:
Jdcteam 7.1.2 & Arnova's pixel2mod
[Xiaomi Mi 5 Themes, Apps, and Mods] 0xii:
Hi, i have a problem with recording in 60 fps, so when i start recording, preview is lagging, final video also, but without recording, just preview, its full 60 fps, somebody know what to do ?
[Xiaomi Mi 5 Themes, Apps, and Mods] virushunt:
Haha if im Take the Infos from MX Player like Monster Mite it shows 60 fps.

So whats the trueth now?

It's the same Video in low Light.

I can't See frameloos in playback
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
I just said that MX player is not accurate as Video Info Viewer because it says max framerate value 60 but not the real one. So use only Video Info Viewer to get the corrects fps, the average fps, the others are wrong.

---------- Post added at 11:40 AM ---------- Previous post was at 11:34 AM ----------

Arnova's camera version?

---------- Post added at 11:51 AM ---------- Previous post was at 11:40 AM ----------

Now I want just show you all what I mean so you can understand what I mean. Follow Monster Mite Telegram channel https://t.me/monstermite, he did a good job posting two videos recorded in 1080p with different framerate. Download the videos and you can notice the difference.

The video recorded in 30 fps gives these infos:

Fps 24,82

While video recorded in 60 fps gives this:

Fps 59,89

which is great and makes a HUGE difference with 30 fps. This is how videos in 1080p should be recorded in 60 fps.

So I have to try its same ROM and camera to check if I can get same results on my Mi 5 Pro 128 GB.
[Xiaomi Mi 5 Themes, Apps, and Mods] stars2:
Latest version has flashing preview bug in Google Camera, when you touch the screen and refocus...
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Which?
[Xiaomi Mi 5 Themes, Apps, and Mods] stars2:
03.20. libhack

1. open google camera

2. select video mode and 30 fps

3. touch the screen to focus, dark to light, and you see the flashing
[Xiaomi Mi 5 Themes, Apps, and Mods] maarcnylmz:
are we going to see updates for this version? because only that version works on los 15.1. thank you btw.
[Xiaomi Mi 5 Themes, Apps, and Mods] ojosehenrick:
There's a way to add 60fps preview on normal camera? (photos, not just video)
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
Happens on mine too. Using instagram camera not google camera.
[Xiaomi Mi 5 Themes, Apps, and Mods] 2D-Kun:
Plsss dev can you do this on the mi6 too? I'm willing to help you.
[Xiaomi Mi 5 Themes, Apps, and Mods] XDADev001:
Hey, thanks for the mod, the flashing is gone now and i can shoot 60 fps video, but now camera preview is a lot noisier and very laggy, please fix this
[Xiaomi Mi 5 Themes, Apps, and Mods] Mkkt Bkkt:
How did you fix the auto focus flashing/flickering?? I installed the last version on last AEX MOD ROM build and the flickering is still here when I aim for the light [its doesn't happens all the time]
[Xiaomi Mi 5 Themes, Apps, and Mods] XDADev001:
It's just fixed after installing this module, I'm also on latest AEX MOD, I also use latest Darkness kernel
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
I think he's talking about the flicker during the first few second of recording. Not the high contrast light flickering we have
[Xiaomi Mi 5 Themes, Apps, and Mods] Mkkt Bkkt:
What u meant is the auto focus keeps trying to focus every 1sec when you aim the camera to the light source , my camera screen keeps going full black then goes back to normal state very rapidly every like 0.5sec or lower...

I should probably take a screen recoding ...
[Xiaomi Mi 5 Themes, Apps, and Mods] newazsharifahanaf:
Good
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
yeah that's the problem i'm having too, on all camera app. i meant the flickering XDADev001 was talking about might be the one that happens on Google camera only. not the same problem.
[Xiaomi Mi 5 Themes, Apps, and Mods] androidiandrea:
Any idea to make it work with omnirom? The processo android.media stops working :/
[Xiaomi Mi 5 Themes, Apps, and Mods] Rasputlix:
How to mount it using PixelExperience? I've been trying to modify archive just to try to mount it and I get this zip ins't a magisk module.
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Where can I find the working link for this mod?
[Xiaomi Mi 5 Themes, Apps, and Mods] Mr.201:
Other than google camera and miui camera, this mod makes camera preview and recording exhibit frame drops in whatsapp, instagram and other app that uses its own camera lag.
[Xiaomi Mi 5 Themes, Apps, and Mods] DxMorph:
hi,

big thanks for ur work eszdman... now mi5 can record in 60fps, superb

but is this bug or my method was wrong?

when it switch to camera mode & 30fps video, it becomes lag...

i using LOS 14.1 & GoogleCamera-Pixel2Mod-Arnova8G2-V7beta-test-6_1

also applying camera2api & universal 60fps module at magisk too

am i must apply other module or missing something??
[Xiaomi Mi 5 Themes, Apps, and Mods] saiojitsu:
Nothing for Mi note 3? this module is fantastic...
[Xiaomi Mi 5 Themes, Apps, and Mods] deepblue2000:
is this 1080p@60fps patch possible for Mi6 too ?
[Xiaomi Mi 5 Themes, Apps, and Mods] ergysramaj:
https://drive.google.com/file/d/125DtvvzHflJvcJgDBPxRP1rYa52nxREz/view?usp=drivesdk
[Xiaomi Mi 5 Themes, Apps, and Mods] ojosehenrick:
On mi5, when the light is great (like clouds) the screen starts to flick
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
Good thanks
[Xiaomi Mi 5 Themes, Apps, and Mods] Paradika123:
Wow this is so amazing, I'm gonna try this soon?

Anyway, I know this is kind of dumb question, but where I can get latest GCamMod for Mi5??

Thanks ?
[Xiaomi Mi 5 Themes, Apps, and Mods] virushunt:
https://www.celsoazevedo.com/files/android/google-camera/
[Xiaomi Mi 5 Themes, Apps, and Mods] tiktok28:
Hi, the mod works great! The only problem I find with the mod is that it introduces a lot of noise into pictures.
[Xiaomi Mi 5 Themes, Apps, and Mods] alone_in_dark:
[MENTION=6792776]eszdman[/MENTION] , it would be great if you could modify only the lib that's related with 1080p video recording. This would avoid all the problems related with pictures and 30 fps videos. Just modify so that Gcam can capture at 60 fps.

Thanks in advance.
[Xiaomi Mi 5 Themes, Apps, and Mods] lazye53:
Dude, can you take a look?

It uses the same camera sensor (Sony Imx298).

Could you provide it for Le Pro 3 (X720) ?

I can only record 30 fps ...

Please help....
[Xiaomi Mi 5 Themes, Apps, and Mods] eternal70:
I think it's reasonable because it's not only about 60fps bug. There's also the flickering bug which is annoying when you record videos on any fps. This hack fix it too
[Xiaomi Mi 5 Themes, Apps, and Mods] Paradika123:
I saw some user said that when using this mod makes the picture/photo quality decreased, is it true? because I can't see the difference before and after using this mod. Thanks
[Xiaomi Mi 5 Themes, Apps, and Mods] luigi0824:
does it also fix the drop of frame rate on the front camera while shooting videos indoors?
[Xiaomi Mi 5 Themes, Apps, and Mods] doktor24h:
LOS 15.1- Gcam stop working in horizontal position or stop after 10 seconds of 60fps recording.

I try various version of Gcam.

I am using v4 of this module.
[Xiaomi Mi 5 Themes, Apps, and Mods] mijorus:
Use footej camera for that and set shutter to 1/30 or something

---------- Post added at 03:33 PM ---------- Previous post was at 03:25 PM ----------

Download link?
[Xiaomi Mi 5 Themes, Apps, and Mods] doktor24h:
https://drive.google.com/file/d/125DtvvzHflJvcJgDBPxRP1rYa52nxREz/view
[Xiaomi Mi 5 Themes, Apps, and Mods] citivsaltivsfortivs:
Very sorry noob here: I am not able to install through Magisk as a zip file or when extracted. How do you install it? I am on Global rom.
[Xiaomi Mi 5 Themes, Apps, and Mods] ergysramaj:
Find Modules in magisk than click the + at the bottom , find the zip for magisk ...
[Xiaomi Mi 5 Themes, Apps, and Mods] Jonas Cardoso:
The result was not what I expected

Without module

With module
[Xiaomi Mi 5 Themes, Apps, and Mods] alone_in_dark:
Still Picture or Video?
[Xiaomi Mi 5 Themes, Apps, and Mods] Jonas Cardoso:
Picture
[Xiaomi Mi 5 Themes, Apps, and Mods] mm1rza:
is this old version? flickering at outdoor (indoor works good)

mode video 60fps or 30fps works perfectly

https://www.youtube.com/watch?v=cMf_gLI9gTc
[Xiaomi Mi 5 Themes, Apps, and Mods] maddoka:
Probably not the latest version, I get no more flickering on the last version which is from Apr 15 I believe (location is the same on Google drive, see 2nd post).
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
Didn't realize there's a newer build. :/ Gonna check it out now
[Xiaomi Mi 5 Themes, Apps, and Mods] ergysramaj:
On mi5 3/64 los 15.1 universal mod crashed media and won't work . The los module doesn't do anything . The only mod that worked was the flickering one from star on los 15.1
[Xiaomi Mi 5 Themes, Apps, and Mods] Pierfranc:
There is no notification from author to the updated mod so no one noticed it, thanks
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
Tried the latest 15april build. No more flickering. Hooray!

The only problem left is the laggy viewfinder on third party apps like instagram
[Xiaomi Mi 5 Themes, Apps, and Mods] alone_in_dark:
What about picture quality? Is it affecting still pics like old version? I don't have magisk on Oreo, so can't test..
[Xiaomi Mi 5 Themes, Apps, and Mods] mm1rza:
which version gcam ??
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
Not sure if it looks better or worse. But there is some difference between having it enabled vs disabled.

---------- Post added at 01:54 PM ---------- Previous post was at 01:53 PM ----------

Tbh i've never used one versioj specifically. Keep switching around
[Xiaomi Mi 5 Themes, Apps, and Mods] stillka:
Hi,

thaks for your great work and update 01.05.18

-color fix

-added super focus

But module version in magisk is showing V2 instead of expected V5 so I am not sure if its recent, could you fix it?
[Xiaomi Mi 5 Themes, Apps, and Mods] maddoka:
For me there are focus issues in photos and the colors are very unsaturated with this version.
[Xiaomi Mi 5 Themes, Apps, and Mods] gingerboy92:
Yup. I have it too. Below pics show both problems(one with the module enabled and the other disabled). Color and focus issue after a while. The focus issue disappear when i switch between 60fps to 30fps and back in video, but later it reappears. And then there's the microshutter/microlag in viewfinder for anything other than 60fps video recording mode
[Xiaomi Mi 5 Themes, Apps, and Mods] ergysramaj:
Any1 on los 15.1? That tried the mod and worked?