[MAGISK] Force HEVC encoding OP7 - OnePlus 7 Themes, Apps, and Mods

First of all I'm not dev nor the author of this magisk mod.
I just made modification to media_profiles_vendor.xml from extracted OP7 ROM 10.0.1.GM57BA using module from lutyjj thread.
HEVCOP7.zip enables hevc only
HEVCOP7_lower_bitrate.zip enables hevc and lowers bitrate by 25%
One can make own modifications.
to enable hevc this line has to be changed:
<Video codec="h264" ---> <Video codec="hevc" everywhere where fileFormat="mp4" is present
to change bitrate:
bitRate="42000000" ---> bitRate="32000000" or any other value
Since it's magisk module there is hardly any risk and it can be just deleted in magisk but...
**** Disclaimer: I'm not responsible if you destroy your device. Use at your own risk!!! ****
Credits: @lutyjj @tusar8 @CrashOverride1995

what are the benefits?

Any benefits to this apart from reduced file size?

I am still using one plus 9.5.8 rom so how can apply this mod for this rom ? Tell me manual steps to change it too

But with less bitrate has less quality?

I compared the media_profiles_vendor.xml from HEVCOP7.zip with the one on my OnePlus 7 Pro 5G 10.0.6.GM25CC, and they are identical other than the h264 to hevc replacements.
Applied, thank you very much!!

Related

[MOD] 720p recording ported from Hancocks ROM

BEFORE YOU READ ANY FURTHER, THIS MOD/PORT (WHATEVER) WILL PROPABLY ONLY WORK ON RED LENSED DEFYS! SORRY BUT IT SEEMS TO BE A HARDWARE THING! AND THERE ALSO MIGHT BE THE SLIGHT POSSIBILITY THAT IT IS LIMITED TO 3.4.2_145-003 VERSION ONLY! (AT LEAST THIS IS THE VERSION HANCOCKS ROM IS BASED ON AND THE SAME I TESTED IT WITH)
to make it short, i (kind of) ported the 720p recording capability of hankocks rom 1.11 to pays rom 3.3 (based on 3.4.2_145-003).
first of all, I AM NO DEVELOPER! so all props go to hankock! what i did was the following:
i took all the libs from hancocks rom which had something to do with camera & encoding (as you can see, not a very devlike procedure) and put them into my system/libs. then i took media_profiles.xml from hancocks rom and put it to my system/etc (of course i changed back permissions afterwards). first i used hancocks patched stock camera app and merged my and his build.prop so that the whole thing would run on my rom. and it worked perfectly. but this solution has 2 drawbacks:
1. hancock used 3gpp container, which is imho inferior to mp4
2. the audio encoding is very bad (amr_nb, 8kbps)
then i found out, that if i used lgcamera instead i would't need to change build.prop anymore and it still worked fine. besides of that, lgcamera is much more customizable settingwise. and by not modifying build.prop, i hope to enhance compatibility of this mod to other froyo versions.
and that is what my package contains:
-all libs with "enc", "cam", "camera" in therr names from hancocks rom (i know, i'm an amateur )
-media_profiles.xml from hancocks rom
-lgcamera 5.25 (free) btw. it works with the latest pro version from the market too
please use tenfars clockwork mod or other custom recovery to flash this update.zip. the built in original recovery won't work (doesn't accept signature). BEFORE YOU START, DON'T FORGET TO MAKE A NADROID BACKUP!!!
here you find an untouched video sample: http://forum.kut-btu.de/video/VIDEO00017.mp4
([email protected],8fps, mp4-container, video: [email protected]~10000kbit/s, audio: [email protected]/s, 44khz)
i know, seems very choppy but this is because i was walking constantly. framerate is quite good. my defy runs at 1,2ghz but i tested 720p rec @ 800mhz too and it worked the same. it might be necessary to apply sdcard read_ahead_kb patch (mine runs at 2560 kb instead of 128) to avoid slow framerate effect which could be observed on hancocks rom.
sadly, recording with .h264 codec is still not possible (and i doubt it ever will). hence the resulting video is no match for the 720p recordings of e.g. the samsung wave but imho it is still a lot better than stock and looks almost great
now i leave it to the real devs to optimize this, whatever it is.
DISCLAIMER:
I WILL NOT BE HELD RESPONSIBLE FOR ANY DAMAGES RESULTING FROM THIS MODIFICATION!
/edit:
mod works fine on the following froyo versions:
-3.4.2-117
-3.4.2-145 (as the mod comes from this version)
-3.4.2-155
mod doesn't work on:
-3.4.3-11
strange behavior detected:
after recording in 720p dmesg shows:
Timed out waiting for DSP suspend 3
pm_op()latform_pm_suspend+0x0/0x54 returns -1
PMevice C6410 failed to suspend:error -1
PM:Some devices failed to suspend
Click to expand...
Click to collapse
don't know, which impact this has on battery drain. after fresh reboot and w/o recording in 720p this problem doesn't show up.
Thnaks for this - i'll have a play with it later today
It works with Barebones 1.4... when im recording it seems little bit choppy, but playing it in MoboPlayer is good (smooth, maybe not 30 fps but its good!).
Thank you!
Antszej said:
It works with Barebones 1.4... when im recording it seems little bit choppy, but playing it in MoboPlayer is good (smooth, maybe not 30 fps but its good!).
Thank you!
Click to expand...
Click to collapse
great! since Barebones 1.4 is based on CEE 3.4.2-155-002 Deblur, we can add it to the compatibility list.
yes, the recording view seems choppy on my system too, but the resulting video is quite smooth (~23-24fps).
http://www.multiupload.com/APEW3UPMI0
Here is the sample.
juuu
I want this for green lens...
insestito said:
juuu
I want this for green lens...
Click to expand...
Click to collapse
sorry. i believe that 720p recording isn't impossible for green lense models. but i do believe that this patch based on hancocks mod will do the trick only for red lens defys. because it isn't just the color of the lens but a totally different sensor. perhaps someone figures out a mod for green lenses too.
But official Froyo is near, just wait, it should have 720p recording for EVERYONE.
I compare it to xd1 ROM files, and find the different files are,
720p_mp4venc_sn.dll64P
libOMX.TI.720P.Encoder.so
libOMX.TI.JPEG.Encoder.so
libOMX.TI.mp4.splt.Encoder.so
libOMX.TI.Video.encoder.so
Hope it can reduce the update size.
Antszej said:
But official Froyo is near, just wait, it should have 720p recording for EVERYONE.
Click to expand...
Click to collapse
what leads you to this assumption?
sunoldman said:
I compare it to xd1 ROM files, and find the different files are,
720p_mp4venc_sn.dll64P
libOMX.TI.720P.Encoder.so
libOMX.TI.JPEG.Encoder.so
libOMX.TI.mp4.splt.Encoder.so
libOMX.TI.Video.encoder.so
Hope it can reduce the update size.
Click to expand...
Click to collapse
feel free to modify the package everyone... my work is done
Worked like a charm for me, thanks!
ToTTenTranz said:
Worked like a charm for me, thanks!
Click to expand...
Click to collapse
u r welcome
Yep it works here too but i cant see much difference between WVGA and this 720p..its almost the same. Is there any app on market that has continuous autofocus while recording video(like barcode scanner) ?
I'll create this patch for the green lens?
insestito said:
I'll create this patch for the green lens?
Click to expand...
Click to collapse
is this a statement or a question?
derbestimmer said:
is this a statement or a question?
Click to expand...
Click to collapse
Question for you or any Dev, sorry...
Google translator is very bad...
insestito said:
Question for you or any Dev, sorry...
Google translator is very bad...
Click to expand...
Click to collapse
i don't think i will be any helpfull, cause i'm no dev. i just took the work of a dev and ported it to another rom. sorry. perhaps someone else is able to do it.
My problem with Hancocks ROM is that lgcamera records very light sound, no matter what encoding I chose (AMR_NB, AMR_WB or AAC). I am not even sure the software records sound on defy with encoding as AMR_WB and AAC.
Video works ok with MPEG4 encoding though with twp slight issues. One is video file bitrate is not the same as configured in lgcamera settings. The other one is framerate is always below 25 - not sure if SD card speed is the bottleneck.
shural said:
My problem with Hancocks ROM is that lgcamera records very light sound, no matter what encoding I chose (AMR_NB, AMR_WB or AAC). I am not even sure the software records sound on defy with encoding as AMR_WB and AAC.
Video works ok with MPEG4 encoding though with twp slight issues. One is video file bitrate is not the same as configured in lgcamera settings. The other one is framerate is always below 25 - not sure if SD card speed is the bottleneck.
Click to expand...
Click to collapse
with light sound, do you mean quiet or bad quality? strange when i set lgcamera from amr_nb to aac, it does use this codec at least the resulting video shows this in codecinfo. and i think the sound quality is slightly better too compared to amr. concerning the other two issues, i have the same experience. the framerate never goes over 23,9fps and when i force it to 25 or even 30, lgcamera won't start recording. youre right the bitrates of the resulting video are mostly lower then the bitrates chosen in lgcamera. 13 prduces ~10, 10 produces ~8 and 8 produces ~6 mbps. but imho there is a difference visible between 13 and 8mbps respectively 10 and 6 in the resulting video. at least on the computer you can see the difference.
Sent from my MB525 using Tapatalk

[ROOT] [Nexus 5x | 6p] 60fps 1080p recording

So guys finally the much Awaited feature/MOD is here 60fps 1080p recording on 5x/6p
defcomg has created this MOD which works on FreeDcam(sadly, it doesn't work on Google camera yet) .
He also made an app called libchanger which modifies the libmmcamera_imx377.so file and adds a custom media profile in FreeDcam config folder.
--------------------------------------------------------------------------------------------------------------------
All The Credits goes to @defcomg
So, lets begin.
--------------------------------------------------------------------------------------------------------------------
* Things you need
A Rooted Nexus 5x
Root Browser/ES explorer or any other root browser.
--------------------------------------------------------------------------------------------------------------------
*How to Install (MANUALLY)
1.Download the files attached below.
2.Install FreeDcam
3.open root browser and go to system/vendor/lib/ and rename the STOCK lib from libmmcamera_imx377.so to libmmcamera_imx377.bak and Extract the zip and copy libmmcamera_imx377.so(attached below) file there and set permission to rw--r--r.
4.Then go to DCIM/FreeDcam/config/ and delete CustomMediaProfiles.text(stock one) and if its not there then just copy CustomMediaProfiles.text(attached below).
5.Open FreeDcam and go to menu and apply this settings
*set Video Profile: 1080pHFR
*then scroll down to API and set API: camera1
*set Orientation Correction: On
6. Enjoy the beauty of 1080p @ 60fps
*How to Install(Lib changer app)
Though i would suggest you to copy those files manually but in case if you don't want any hassle then just follow this tutorial made by @decomfg
http://forum.xda-developers.com/nex...ble-60fps-video-recording-libchanger-t3424621
Thank him for this great work.
--------------------------------------------------------------------------------------------------------------------
Download Section
FreeDcam:- https://github.com/troop/FreeDcam/releases
libmmcamera_imx377:- http://forum.xda-developers.com/attachment.php?attachmentid=3821997&d=1469320878
CustomMediaProfiles:- http://forum.xda-developers.com/attachment.php?attachmentid=3821843&d=1469305543
Flashable zip:- http://forum.xda-developers.com/attachment.php?attachmentid=3830539&d=1470094840Thanks to @przemcio510
PS: i am newbie:angel:
maybe sample? pleaseeeeeeeeeeeeeeee
Hello
Looks like fps are still 30:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'MOV_2016_08_06_17_21_16.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
creation_time : 2016-08-06 20:21:29
Duration: 00:00:11.46, start: 0.000000, bitrate: 99854 kb/s
Stream #0:0(eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 100458 kb/s, SAR 1:1 DAR 16:9, 30.01 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2016-08-06 20:21:29
handler_name : VideoHandle
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 191 kb/s (default)
Metadata:
creation_time : 2016-08-06 20:21:29
handler_name : SoundHandle
Doesn't matter the orientation selected, the resulting video is still upside down when the camera is used in "normal" mode (90° anticlockwise ).
Hello everyone. I tried this mod , following all instructions to the letter. And it works. I recorded a couple of videos but they were too big.
Around 1 min in length and 500mb in size. So I converted one of them to slightly lower bitrate mp4 file without audio. In the recordings audio
works. But to reduce file size for easy upload, I disabled audio. Link to sample is given below. The original recordings have orientation issues.
I had to go to VLC player Video effects to rotate video by 180 degrees to watch properly. Anyway, not a big deal. As we now have 60fps 1080p videos.
:victory: :good:
http://d-h.st/9NUU
THANKS TO THE DEVELOPER. AWESOME WORK.
sasank360 said:
Hello everyone. I tried this mod , following all instructions to the letter. And it works. I recorded a couple of videos but they were too big.
Around 1 min in length and 500mb in size. So I converted one of them to slightly lower bitrate mp4 file without audio. In the recordings audio
works. But to reduce file size for easy upload, I disabled audio. Link to sample is given below. The original recordings have orientation issues.
I had to go to VLC player Video effects to rotate video by 180 degrees to watch properly. Anyway, not a big deal. As we now have 60fps 1080p videos.
:victory: :good:
THANKS TO THE DEVELOPER. AWESOME WORK.
Click to expand...
Click to collapse
i forgot to mention first turn on orientation and now tilt ur phone right side ...the camera should be on ur right hand side.
i will upload the sample.
Hello all. I tested this mod after my previous report. It still works. But google camera and the other modded Camera X app crash when i choose slow-motion mode.
Is this expected ? I can provide logs, If needed. Thanks.
pacmanman said:
Hello
Looks like fps are still 30:
[...]
Doesn't matter the orientation selected, the resulting video is still upside down when the camera is used in "normal" mode (90° anticlockwise ).
Click to expand...
Click to collapse
Have you selected camera1 api and 1080pHFR mode in FreeDcam?
sasank360 said:
Hello all. I tested this mod after my previous report. It still works. But google camera and the other modded Camera X app crash when i choose slow-motion mode.
Is this expected ? I can provide logs, If needed. Thanks.
Click to expand...
Click to collapse
Yes, 60 fps kills 120 fps slowmotion.
Hey guys i got this to work without touching system using Magisk, i'm waiting for a response from the developer of Magisk just to make sure i did all the good steps (coding wise) and i will release it here.
Just doubled check here and android pay still works as far as removing or adding cards, just don't know if purchases will work since none of my cards work with pay.
does this work on N?
RonnellTapawan said:
does this work on N?
Click to expand...
Click to collapse
Asking the real questions here
do you have to use the dcam app to have 60fps or after lib change can it be recorded thru stock camera?
It is expected to support 7.1.1??
That's an amazing mod, i love that
Sorry for the incontinence but... Is it on developing a version compatible with Google Camera?

[MOD]H.265 a.k.a 'hevc codec' Video Recording for OnePlus 2[Nougat/Oreo]

Hello everyone,
As we all know that oneplus 2 supports hevc codec but by default it is not used as the primary video codec. So i've modified a system file to allow the camera to record with H.265 video codec by default.
*/
* * Your warranty is NOT void. * * I'm 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 the modification * 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. * */
Steps:-
1)Take a nandroid backup.
2) Your device is rooted.
3)Download any file explorer that has access to system files. I prefer to use 'Root Browser'.
https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
4)Download the 'media_profiles.xml' , it will be linked below. (see post 2)
5)Open File Explorer and go to /system/etc and backup the original 'media_profiles.xml' in case you wanna revert back.
6)Now copy the modified media_profiles.xml file to /system/etc and replace it with the old one.
7)set permissions to rw-r-r (0644)
8)turn off the device> boot into recovery> clear cache only
9)restart and Enjoy
Special Thanks to @64ashg for spending his precious time creating the Magisk Module. [check post 2 for download]
This mod is working on some Nougat and Oreo ROMs.
Tested on Vertex ROM, RR, Pixel Experience,LineageOS 15.1
If it doesn't work on your ROM, report below. I'll see what i can do.
For OxygenOS - It isn't working. [Testing]
If you like the mod, you are welcome. And Don't be shy to hit the like button. Feel free to share the thread but do not mirror any download files. Just redirect everyone here.
I've made 3 files depending on user requirements.
1st[H.265 codec with Stock Bitrate](File Size won't be reduce, only the codec will change.)
4k - 42 Mbits
1080p - 20 Mbits
720p - 14 Mbits
2nd[H.265 codec with 50% reduced Bitrate] Consumes less storage space and use it only for day time shots. 1080p and 720p videos might pixilate while panning through scenes.
4k - 20 Mbits
1080p - 10 Mbits
720p - 7 Mbits
3rd[(Balanced) H.265 codec with 28% reduced Bitrate] Suitable for both day and night shots.
4k at 30 Mbits [Size-205 MB/min]
1080p & 720p at 15Mbits
Link for Magisk Module.
Balanced - https://mega.nz/#!egREXayA!MyXj7ZFs_xBgIZLH5uFz6HERdLWt38ZI3bG1VOMyQMw
is quality worse, almost same or same?
chxei said:
is quality worse, almost same or same?
Click to expand...
Click to collapse
Not a huge difference. Just a 5-10 % boost in the quality. Mostly noticeable in 4k and 1080p. But the compression is great. ?
The quality and also the compression is better?
Pierre2324 said:
The quality and also the compression is better?
Click to expand...
Click to collapse
Try it and let me know. ?
tusar8 said:
Try it and let me know.
Click to expand...
Click to collapse
I tested and its the same thing..looks like it didilnt changed the file.. (Stock bitrate) i get the same filesize,
Pierre2324 said:
I tested and its the same thing..looks like it didilnt changed the file.. (Stock bitrate) i get the same filesize,
Click to expand...
Click to collapse
Obviously it will create the same file size if you use the stock bitrate. Try the 50% reduced bitrate. Compare both 4k videos of h.264 and h.265.
tusar8 said:
Obviously it will create the same file size if you use the stock bitrate. Try the 50% reduced bitrate. Compare both 4k videos of h.264 and h.265.
Click to expand...
Click to collapse
With stock bitrates why would I use h.265 over h.264?
Pierre2324 said:
With stock bitrates why would I use h.265 over h.264?
Click to expand...
Click to collapse
If you are asking such a question, it clearly means that you don't know the difference between h.264 & h.265/hevc. H.265 exports video with the same quality as h.264 but reduces the file size by 40%(it doesn't automatically do its magic). You will need to adjust the bitrate for it to work. Now if anyone wants to record 4k video with H.265 and stock bitrate which is 42 Mbits, he/she can achieve the quality of the video normally where you will need to increase the bitrate upto 60/70 using h.264 codec.
tusar8 said:
If you are asking such a question, it clearly means that you don't know the difference between h.264 & h.265/hevc. H.265 exports video with the same quality as h.264 but reduces the file size by 40%(it doesn't automatically do its magic). You will need to adjust the bitrate for it to work. Now if anyone wants to record 4k video with H.265 and stock bitrate which is 42 Mbits, he/she can achieve the quality of the video normally where you will need to increase the bitrate upto 60/70 using h.264 codec.
Click to expand...
Click to collapse
Thanks for your answer so the quality should be better if we use same bitatres?
Pierre2324 said:
Thanks for your answer so the quality should be better if we use same bitatres?
Click to expand...
Click to collapse
Definitely. I've noticed 5% boost in quality. But it isn't that great as we all know that the quality of the video depends on many things like the sensor, framerate etc. So the big question, why should we use this mod?
Basically if we need to save our precious storage. ?
tusar8 said:
Definitely. I've noticed 5% boost in quality. But it isn't that great as we all know that the quality of the video depends on many things like the sensor, framerate etc. So the big question, why should we use this mod?
Basically if we need to save our precious storage.
Click to expand...
Click to collapse
ok one last thing, the framerate is not that good on h.265? and if I flash an update do I loose the codec file I changed?
Pierre2324 said:
ok one last thing, the framerate is not that good on h.265? and if I flash an update do I loose the codec file I changed?
Click to expand...
Click to collapse
Use oxygen camera at good lighting condition, it will constantly record at 30fps but at dark it drops to 20fps to brighten the video. So i use google camera at dark to have constant 30fps . And yes, you will loose the codec if you flash an update to your rom. And if you find 50% reduced bitrate video quality degraded, you can try the Balanced Bitrate file. It is good for both day and night time shots.
I can make a magisk module from the files, if users are using magisk..
I've made the same magisk mod for my 3t for ota survival.
64ashg said:
I can make a magisk module from the files, if users are using magisk..
I've made the same magisk mod for my 3t for ota survival.
Click to expand...
Click to collapse
That would be great. :good:
tusar8 said:
That would be great. :good:
Click to expand...
Click to collapse
Gimme some time, I'll upload it here
No sound!
I followed the instructions and use media_profiles(Balanced). And I recorded videos, unfortunately there's no sound when i play the videos. Need help please.
Tony Ralte said:
I followed the instructions and use media_profiles(Balanced). And I recorded videos, unfortunately there's no sound when i play the videos. Need help please.
Click to expand...
Click to collapse
Thanks for testing the mod.
Which ROM are you using?
And send me the original 'media_profiles.xml' and 'media_codec.xml' file from /system/etc folder.
tusar8 said:
Thanks for testing the mod.
Which ROM are you using?
And send me the original 'media_profiles.xml' and 'media_codec.xml' file from /system/etc folder.
Click to expand...
Click to collapse
I am using lineage OS 14.1.
I cannot put the link of the original files
Is there any other way to send you?

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

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!
YT Channel where I'll be uploading my example videos
And originals on Google Drive:
1
2
3
4
5
Audio test(sorry for incorrect left and right side recognizing)
I was waiting for your thread since you announced it on 4pda, let's see.
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?
Hootix said:
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?
Click to expand...
Click to collapse
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.
rap1do said:
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.
Click to expand...
Click to collapse
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.
Hootix said:
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.
Click to expand...
Click to collapse
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.
Using Lineage OS 14.1 I can confirm that 60fps and 120slowmo works. I just installed the Snapdragon Camera(apk only). Thanks!
confirmed working on AOSP based rom
wasd- said:
Using Lineage OS 14.1 I can confirm that 60fps and 120slowmo works. I just installed the Snapdragon Camera(apk only). Thanks!
Click to expand...
Click to collapse
with hevc codec?
rap1do said:
with hevc codec?
Click to expand...
Click to collapse
Since I didn't install the media_profiles from the zip i don't think so.
rap1do said:
with hevc codec?
Click to expand...
Click to collapse
I installed with the media_profiles file and it works too
maybe its app dependent?
Do I have to flash lazyflasher, I'm on LOS. And where do I get it?
Hootix said:
Do I have to flash lazyflasher, I'm on LOS. And where do I get it?
Click to expand...
Click to collapse
all tools in the 1st post (4th string)
Where do I set video resolution in modded camera apk?
kamil79123 said:
Where do I set video resolution in modded camera apk?
Click to expand...
Click to collapse
which one?
miui - in general settings - system apps, camera
snap - swipe to video and tap settings(gear icon in the right top corner) -resolution
rap1do said:
which one?
miui - in general settings - system apps, camera
snap - swipe to video and tap settings(gear icon in the right top corner) -resolution
Click to expand...
Click to collapse
Got it, thanks!
Could you describe me what's the ZSL, HDR Pro, HDR Live?
kamil79123 said:
Got it, thanks!
Could you describe me what's the ZSL, HDR Pro, HDR Live?
Click to expand...
Click to collapse
As I understood ZSL -Zero Shutter Lag (instant shot)
hdr pro - dunno , mb enhanced hdr algorythm, same for hdr live
rap1do said:
As I understood ZSL -Zero Shutter Lag (instant shot)
hdr pro - dunno , mb enhanced hdr algorythm, same for hdr live
Click to expand...
Click to collapse
Even without ZSL phone takes photo almost instant, same as with ZSL turned on. Well, these options seems to not work on our phones too.
rap1do said:
all tools in the 1st post (4th string)
Click to expand...
Click to collapse
I don't think you need lazy flasher if you are on LOS or AOSP? It is only for MIUI roms? I have never used it
That sound fix is the file with media profiles?

POCO X3 front camera 1440P support

Hi. Poco x3's front camera can record 1080p(16:9) video on default camera app. Using Open camera i can record 2592x1940p(648:485), then cut from it 2560x1440p(16:9).
Q1: Why front camera does not support higher than 1080p on default camera app?
Q2: Why phone does not support 1440p recording, but supports 4k?
Q3: Is it impossible adding 1440p support editing, build.prop and media_profiles.xml files?
1. Xiaomi didn't even consider to include it because 1080p is "enough". And in this price range manufacturers rarely put more than 1080p for video, even at all. They can even add EIS to front camera, but they didn't.
2. It supports but again, Xiaomi didn't included it as they found no need for it.
3. I think not with build.prop but with custom camera app + libs & media_profiles.xml, it's possible.
For example, there is a mod for Poco X3 that enables 320kbps audio in video recording by modifying media_profiles.xml

Categories

Resources