[TWRP][MAGISK][7.x-8.x]How to record smooth 60fps video with clear stereo sound[HEVC]

rap1do

Senior Member
May 16, 2017
124
61
28
Stephanakert
UPDATED - NOW WITH STABLE 30/60/90/120 FPS IN LOW LIGHT CONDITIONS!

NOTE! YOUR DEVICE MUST HAVE UNLOCKED BOOTLOADER! THIS INSTRUCTION ONLY FOR SNAPDRAGON VERSION PHONES!

Instruction for android nougat(TWRP):
If you want to record smooth 60(90) fps fullhd and 120fps hd videos with clear stereo sound and stabilization, follow these several simple steps:
1. Okay, it is supposed, that your device has unlocked bootloader, installed usb drivers and last fimware on android nougat or android oreo.
First of all, go to camera settings and wipe all data from system camera app, then download all necessary files from my GoogleDrive folder "ALL TOOLS" HERE.
Copy all files on your sd card except recovery.7z

2. Unpack recovery.7z on PC in any folder.
Turn off your smartphone and enter fastboot mode(vol- and power on), connect your phone to PC and run boot_twrp.bat from "tools_r25.0.3-windows (2)" folder, follow instructions on the screen.
Wait for running twrp. (TWRP recovery won't be flashed on your device!)
P.S. Pass this step if u aready have flashed twrp recovery before it.

3. Tap install, and flash: Camera_2API_addon.zip => camera.zip => sound_fix_redmi_note4x_v1.zip=>BOLTiSHok_60-90_FPS_FHD_s5k3l8 & fiks cvet-90moto_60gcam&snap.zip(for samsung s5k3l8 sensor) or BOLTiSHok_superFPS.zip(for all types of camera sensor)=>( and MIUICameraBraviaV4.zip if you want replace miui stock camera app with modified one)
back to previous menu and wipe dalvic/art and cache
And finally DO NOT FORGET FLASH lazyflasher-no-verity-opt-encrypt.zip !

Reboot your smartphone and enjoy smooth video 60 fps recording with clear stereo sound with snapdragon camera.
Note. Your default media profiles will be replaced with modified ones and all camera apps now using h.265 codec with fix for sound recording.

P.S. And of course 60 fps recording requires a lot of light, so unfortunately you can not make a video inside buildings with low light.
Also, I noticed some glitch, when i try to switch between 4k and 1080p mode with enabled stabilization, so i recommend to turn it off before changing resolution in video settings. + slow mo 720 p recording seems not working, but it works in miui camera

Okay, Now you can record with stable 30/60/90(for FULLHD)/120 fps(for HD) even in low light conditions!
Original libs for turning back also added.


All video modes(for samsung sensor) atm are:
4K/1080p 30FPS
FULLHD(60/90 FPS), HD(60/90/120 FPS), Front Camera(HD 60 FPS)
SLOW MOTION: FULLHD(60/90 FPS), HD(60/90/120 FPS), Front Camera(HD 60 FPS)
Slow motion video sample in 1080p

Instruction for android oreo and android nougat for all sensors(MAGISK) without sound fix and snapdragon camera:
Use magisk modules from my GoogleDrive folder "ALL TOOLS" HERE.
There are 2 types of module:
1) For Android Nougat and Oreo(non treble)
2) For Oreo(treble)
======================================================================================================================================================
Now u can record 60 fps video with GCAM

======================================================================================================================================================
Warning! Upgrading your fimware is accompanied by erasing "/system" partition, therefore you have to repeat all steps from instruction again!

I am not the creator of these files, so here are some credits:
Camera_2API_addon.zip credited with this post
camera.zip credited with this post
sound_fix_redmi_note4x_v1.zip credited with this post
MIUICameraBraviaV4.zip credited with this post
media_profiles.7z credited with this post
BOLTiSHok_superFPSISO2.zip, BOLTiSHok_superFPS.zip and BOLTiSHok_60-90_FPS_FHD_s5k3l8 & fiks-60moto.zip credited with this post
Magisk Modules from this post

All these files were tested on 9.5.8.0 ROM (MIUI GLOBAL 9.5)
And remember , use it at your own risk!
 

Attachments

Last edited:

Hootix

Senior Member
Dec 26, 2015
76
11
0
I have some questions.

I am on LinageOS, do I have to flash camera2api again even though I already have it enabled?

Can I still install the modded Google camera without having any conflict? No conflicts with h.265codec?

Is this the MIUi camera which works on custom ROM? Does beautify work?

My biggest concern is the Google camera. I don't want to mess it up. Your post says snapdragon camera will be installed right? So recording in 60fps will only work on that app and not others?
 

rap1do

Senior Member
May 16, 2017
124
61
28
Stephanakert
I have some questions.

I am on LinageOS, do I have to flash camera2api again even though I already have it enabled?

Can I still install the modded Google camera without having any conflict? No conflicts with h.265codec?

Is this the MIUi camera which works on custom ROM? Does beautify work?

My biggest concern is the Google camera. I don't want to mess it up. Your post says snapdragon camera will be installed right? So recording in 60fps will only work on that app and not others?
I cant say how it works on lineageos, because i have never installed it.
If u have camera2api enabled already, so obivously u do not need to flash it again.
I have installed miui mod camera, gcam and snapdragon camera together, all apps using the same h265 codec and i dont have any conflicts, all works pretty well.
I shot several videos in these apps and only snapcamera allows to record true 60 fps.
 
Last edited:
  • Like
Reactions: ridersam and Hootix

Hootix

Senior Member
Dec 26, 2015
76
11
0
I cant say how it works on lineageos, because i have never installed it.
If u have camera2api enabled already, so obivously u do not need to flash it again.
I have installed miui mod camera, gcam and snapdragon camera together, all apps using the same h265 codec and i dont have any conflicts, all works pretty well.
I shot several videos in these apps and only snapcamera allow to record true 60 fps.
Thanks I will try it. How about other apps like Facebook Live, instagram? Snapchat? Will this be messed?

Also how about safety net and Magisk? Will safetynet still pass? I'll try it out.
 
Last edited:

rap1do

Senior Member
May 16, 2017
124
61
28
Stephanakert
Thanks I will try it. How about other apps like Facebook Live, instagram? Snapchat? Will this be messed?

Also how about safety net and Magisk? Will safetynet still pass? I'll try it out.
I dunno why u worry about fb and other messengers, it doest even relate to video calls
Shortly ur profiles for sound and video will be replaced, thats all. If lineageos has the same paths for these files, so it should work.
 
Last edited:

wasd-

Senior Member
Jan 9, 2014
375
335
83
Using Lineage OS 14.1 I can confirm that 60fps and 120slowmo works. I just installed the Snapdragon Camera(apk only). Thanks!