[Magisk][Module] Hevc Recording Enabler v0.1 for ZUK Z2 Plus - Lenovo ZUK Z2 (Plus) Themes, Apps, and Mods

Hey everyone i don't own the device but @deathbreath2010 wanted to enable HEVC for this device so i made a magisk module for everyone to try
This module enable HEVC/H265 video recording on ZUK Z2 Plus
The bitrate values are the same as original and also half
the aac bitrate values are untouched
Why should I use HEVC instead of H264?
Basically, HEVC provide the same quality as H264, but using half the bitrate, this means that you can record videos with the same quality but using less space, or, if you're more inclined to that, record video that use the same space but with better quality (less compression, therefore less artifacts and more details overall).
Stock Bitrate changelog:
Code:
v0.1
- Initial release
Half Bitrate changelog:
Code:
v0.1
- Initial release

Dhruvit Pokharna said:
Hey everyone i don't own the device but @deathbreath2010 wanted to enable HEVC for this device so i made a magisk module for everyone to try
This module enable HEVC/H265 video recording on ZUK Z2 Plus
The bitrate values are the same as original and also half
the aac bitrate values are untouched
Why should I use HEVC instead of H264?
Basically, HEVC provide the same quality as H264, but using half the bitrate, this means that you can record videos with the same quality but using less space, or, if you're more inclined to that, record video that use the same space but with better quality (less compression, therefore less artifacts and more details overall).
Stock Bitrate changelog:
Code:
v0.1
- Initial release
Half Bitrate changelog:
Code:
v0.1
- Initial release
Click to expand...
Click to collapse
Thanks for the module. I'm on Android 10(StagOS) and I can confirm HEVC is enabled. Wanted to post screenshot of media info but upload fails..
Cheers

deathbreath2010 said:
Thanks for the module. I'm on Android 10(StagOS) and I can confirm HEVC is enabled. Wanted to post screenshot of media info but upload fails..
Cheers
Click to expand...
Click to collapse
Your Welcome, Thanks for the Donation.

On ZUK Z2 there is also a problem with slow motion in google camera. It only works sometimes and is quite dark compared to normal video. I don't know if this is also related to media_profiles. On Oneplus 3 slow motion in Gcam was fixed, but i don't know how they did this. Do you have any idea?
Cheers

deathbreath2010 said:
On ZUK Z2 there is also a problem with slow motion in google camera. It only works sometimes and is quite dark compared to normal video. I don't know if this is also related to media_profiles. On Oneplus 3 slow motion in Gcam was fixed, but i don't know how they did this. Do you have any idea?
Cheers
Click to expand...
Click to collapse
Yes i think slow motion requires low iso or shutter speed to work so it gets dark for everyone in slow motion. i havent really found a slowmo fix that works for oneplus 3 yet and i dont think its working for anyone if you know one that works for oneplus 3 i can try to make it work for zuk z2 plus.

Dhruvit Pokharna said:
Yes i think slow motion requires low iso or shutter speed to work so it gets dark for everyone in slow motion. i havent really found a slowmo fix that works for oneplus 3 yet and i dont think its working for anyone if you know one that works for oneplus 3 i can try to make it work for zuk z2 plus.
Click to expand...
Click to collapse
In your other thread about hevc someone posted a zip and said that slow mo is working for him in Android 10 i he replaces some libs. But I don't know if this is good advice. I rarely use slow mo, but it is nice to have anyway.
Cheers

deathbreath2010 said:
In your other thread about hevc someone posted a zip and said that slow mo is working for him in Android 10 i he replaces some libs. But I don't know if this is good advice. I rarely use slow mo, but it is nice to have anyway.
Cheers
Click to expand...
Click to collapse
i saw but below that some guy tried and said it doesnt work.

Related

Does anyone know to enable 1080p @60 fps ?

Hello, does anyone know if this is implemented in a ROM or if there's a mod available to enable 1080p 60fps recording ? I barely found out about this just before i decided to purchase the 10 and found it odd due to the fact that the M8 can do 1080p @60:rolleyes :roll eyes: . Is there a way a request can be made or something ?
Chrismedina72 said:
Hello, does anyone know if this is implemented in a ROM or if there's a mod available to enable 1080p 60fps recording ? I barely found out about this just before i decided to purchase the 10 and found it odd due to the fact that the M8 can do 1080p @60:rolleyes :roll eyes: . Is there a way a request can be made or something ?
Click to expand...
Click to collapse
I've looked into it the but HTC added some compilation the configuration for 60fps is the same for The HTC 10 Nexus 6p and 5X have it working on the nexus .
HTC Complications.
In Camera 2 Mode it could be accessed via high speed recording api but for some reason this causes strange green overlay flickering video is in 60fps but unusable so that's out.
Camera 1 mode using Qualcomms video-hfr parameter HTC seems to have substituted this with their own video-mode parameter in theory it should work but they messed with some switch where even if you select 60fps it tries to look for a 90fps stream but that's nothing that can't be fixed in ida.
I tried using video-mode param but didn't seem to take any effect I do not have a HTC 10 to do further tests to make matters worse HTC added log mask code in pretty much all the libs rendering logcat useless.
The logcat mask needs to be disabled somehow once that's done there maybe hope but as it is now no device and no logcat I can't do much about it.
There alternative is to get 60fps working at 4k that does not require video-hfr or high-speed recording it requires time and trial and error to find the correct register values currently the know reg configs give 40fps 1080p and 32-35fps 4k.
Sent from my NX503A using XDA Free mobile app
Was anyone able to achieve [email protected] video recoding with the stock camera app?
I always saw that a lot of phones I had before got some software mods that improved e.g. camera, or any other app, so why is it that HTC 10 cannot get Camera mod to include [email protected]?
Besides, 4k video IS recorded at 60fps, so I doubt it is not possible with 1080p...
Thank you everyone for explanations and answers
CrazyCypher said:
Was anyone able to achieve [email protected] video recoding with the stock camera app?
I always saw that a lot of phones I had before got some software mods that improved e.g. camera, or any other app, so why is it that HTC 10 cannot get Camera mod to include [email protected]?
Besides, 4k video IS recorded at 60fps, so I doubt it is not possible with 1080p...
Thank you everyone for explanations and answers
Click to expand...
Click to collapse
Anyone figure this out? I'm looking at the Pixel or the HTC 10. The pixel can record at 1080p 120FPS and it has the same CPU as the HTC 10

How to enable google camera 4k on custom roms (i.e. ResurrectionRemix)

Hey guys,
I really like the google camera but it seems like I can't get 4k (30fps) video recording up and running. If I switch it on, the camera force closes, no matter what I do or what version I use.)
Right now I am at the latest version of saneklic (2018-07-21; MGCamera_5.1.0.18_R5Plus_v.5.1.17_fix_crash.apk)
I know about the tutorial claiming you need to enable it in some "whyred.xml" which is in a "device feature folder" (a folder somewhere in system/etc/) or something like that, but there is no such thing in a custom rom: it exists only on MIUI. I've already tried every tutorial possible, but nothing helps.
4k is working with the lineage snap, the google camera picture quality is much better though and I really prefere the gcam (because of additional settings/mods)
Thank you very much, any help is very much appreciated. If someone can help me, I will donate you a coffee :highfive:
Marvin
Hey man, I'm really disappointed so far by RN5, I couldn't find a way to record stabilized 4K on custom roms, not even with Open Camera which worked fine on MIUI 10. I have a two year old RN3 which records 4K with gcam (not stabilized) and takes slightly better photos than RN5.
So far i've tried RR, LOS and AEX. 4K recording crashes any camera I've used. Open Camera just gives an error. Waited 2 weeks to unlock bootloader, thinking it will open the gates of heaven. In fact been through hell since I unlocked(yesterday). Antirollback is like a minefield which I luckily avoided, then front camera barely works with gcam, some slight battery drain with custom roms and now 4K recording is broken. Feels like I've downgraded my phone.
Think I'll try to flash MIUI 10, root it, enable camera 2 api for gcam and use Open Camera for EIS enabled 4K. Btw the latest gcam by alone_in_dark works best, even front camera works quite good, try it.
Edit: I flashed MIUI 10, once I enabled camera2 api 4K doesn't work. So it's either 4K or HDR+. Thanks Xiaomi.
Saicoth said:
Hey man, I'm really disappointed so far by RN5, I couldn't find a way to record stabilized 4K on custom roms, not even with Open Camera which worked fine on MIUI 10. I have a two year old RN3 which records 4K with gcam (not stabilized) and takes slightly better photos than RN5.
So far i've tried RR, LOS and AEX. 4K recording crashes any camera I've used. Open Camera just gives an error. Waited 2 weeks to unlock bootloader, thinking it will open the gates of heaven. In fact been through hell since I unlocked(yesterday). Antirollback is like a minefield which I luckily avoided, then front camera barely works with gcam, some slight battery drain with custom roms and now 4K recording is broken. Feels like I've downgraded my phone.
Think I'll try to flash MIUI 10, root it, enable camera 2 api for gcam and use Open Camera for EIS enabled 4K. Btw the latest gcam by alone_in_dark works best, even front camera works quite good, try it.
Click to expand...
Click to collapse
Can you provide link to gcam ? Thanks.
reza6d said:
Can you provide link to gcam ? Thanks.
Click to expand...
Click to collapse
Sure man
Direct download link https://www.celsoazevedo.com/files/android/google-camera/f/CameraX-V2.apk
Edit: For front camera don't use HDR+ enhanced, only HDR+.
Saicoth said:
Sure man
Direct download link https://www.celsoazevedo.com/files/android/google-camera/f/CameraX-V2.apk
Edit: For front camera don't use HRR+ enhanced, only HDR+.
Click to expand...
Click to collapse
Holy grill,its nice thanks.
Didnt expect frontcam to work.But it does.
Saicoth said:
Hey man, I'm really disappointed so far by RN5, I couldn't find a way to record stabilized 4K on custom roms, not even with Open Camera which worked fine on MIUI 10. I have a two year old RN3 which records 4K with gcam (not stabilized) and takes slightly better photos than RN5.
So far i've tried RR, LOS and AEX. 4K recording crashes any camera I've used. Open Camera just gives an error. Waited 2 weeks to unlock bootloader, thinking it will open the gates of heaven. In fact been through hell since I unlocked(yesterday). Antirollback is like a minefield which I luckily avoided, then front camera barely works with gcam, some slight battery drain with custom roms and now 4K recording is broken. Feels like I've downgraded my phone.
Think I'll try to flash MIUI 10, root it, enable camera 2 api for gcam and use Open Camera for EIS enabled 4K. Btw the latest gcam by alone_in_dark works best, even front camera works quite good, try it.
Edit: I flashed MIUI 10, once I enabled camera2 api 4K doesn't work. So it's either 4K or HDR+. Thanks Xiaomi.
Click to expand...
Click to collapse
Thanks for everything! To be honest I prefere much more [email protected] instead of [email protected] I managed to get 4k recordings on lineage snap & open camera no problem. Google camera is where it's at though, I love the settings & mods. I can help you out though if you really want to do 4k recordings ^^
MarvinMe said:
Thanks for everything! To be honest I prefere much more [email protected] instead of [email protected] I managed to get 4k recordings on lineage snap & open camera no problem. Google camera is where it's at though, I love the settings & mods. I can help you out though if you really want to do 4k recordings ^^
Click to expand...
Click to collapse
Can't say no to that. But since 4K (3840 × 2160 resolution) doesn't appear in open camera after enabling camera2 api, I don't think there's a fix for that. It appears only 4000 x 2000 2:1 which gives an error. I did manage to get 4K working with another third party camera, but without EIS. Because RN5 can record 4K with excellent stabilization it's a pitty not to use it. So now if I want to record something I just use another build.prop without cam2.api then reboot, and switch back to enabled cam2.api prop when I want to use HDR+ :laugh:
Saicoth said:
Can't say no to that. But since 4K (3840 × 2160 resolution) doesn't appear in open camera after enabling camera2 api, I don't think there's a fix for that. It appears only 4000 x 2000 2:1 which gives an error. I did manage to get 4K working with another third party camera, but without EIS. Because RN5 can record 4K with excellent stabilization it's a pitty not to use it. So now if I want to record something I just use another build.prop without cam2.api then reboot, and switch back to enabled cam2.api prop when I want to use HDR+ :laugh:
Click to expand...
Click to collapse
This is horrible! I mean is it a firmware issue or some custom rom problem? Unfortuantly I'm not much into mobile software development... I really really want a fix, I would even pay money for it xD :highfive:
Edit_0: If we take a look at this link; a possible solution is shown but it doesn't work... a hotfix would be cool but meh it's alright you can't have it all...
Edit_1: Installing it as a system app doesn't help either btw
4K EIS with camera2 api
MarvinMe said:
This is horrible! I mean is it a firmware issue or some custom rom problem? Unfortuantly I'm not much into mobile software development... I really really want a fix, I would even pay money for it xD :highfive:
Edit_0: If we take a look at this link; a possible solution is shown but it doesn't work... a hotfix would be cool but meh it's alright you can't have it all...
Edit_1: Installing it as a system app doesn't help either btw
Click to expand...
Click to collapse
Hello my friend, it seems you can have it all, I finally found a way to record 4K with EIS while having camera2 api enabled. I'm really happy now and overall satisfied with the phone. Only issue remaining is the front camera HDR+ which is beyond my knowledge, hopefully someone else will come with a fix.
So now, how I managed to record 4K? I'm on MIUI 10 (8.7.12), and using latest blackbox kernel by KunalKene1797. Don't know if these have any effect, but I thought it's good to know.
The third party camera I'm using is Snap Camera, there are certain settings which need to be enabled. I'll post a video with the settings I used and which worked best. 4K Video Support and Use Camera2 API being the most important ones. There could be other settings which could improve the recording, but I like to stay on these stable settings, because I'm pleased with the results so far.
Here's the video with the settings needed in Snap Cam https://youtu.be/gRj9LhYWv5Y(video is back)
Here's the first 4K video https://youtu.be/oQGc4gXnGU0
A test for auto-focus https://youtu.be/V41k21qKQpE
No EIS sample vs EIS https://youtu.be/_qNFNs2gq74 VS https://youtu.be/00J-3cAzLjg
Edit 1: I also tried setting higher bitrate than the default 42, however in windows at the details on the first video it shows 40 total bitrate and when setting to 64 it shows 42, either way it seems the quality was marginally improved. I guess the phone can't write faster than that or the storage doesn't allow it.
https://youtu.be/Q7Lqlr-QanA
Some stuttering can be seen from 0:08 to 0:11, but I think that's because the phone started thermal throttling, it's very hot outside and from all the testing, phone was quite hot too.
I really hope it works for you as well, take care.
Saicoth said:
Hello my friend, it seems you can have it all, I finally found a way to record 4K with EIS while having camera2 api enabled. I'm really happy now and overall satisfied with the phone. Only issue remaining is the front camera HDR+ which is beyond my knowledge, hopefully someone else will come with a fix.
So now, how I managed to record 4K? I'm on MIUI 10 (8.7.12), and using latest blackbox kernel by KunalKene1797. Don't know if these have any effect, but I thought it's good to know.
The third party camera I'm using is Snap Camera, there are certain settings which need to be enabled. I'll post a video with the settings I used and which worked best. 4K Video Support and Use Camera2 API being the most important ones. There could be other settings which could improve the recording, but I like to stay on these stable settings, because I'm pleased with the results so far.
Here's the video with the settings needed in Snap Cam https://youtu.be/gRj9LhYWv5Y
Here's the first 4K video https://youtu.be/oQGc4gXnGU0
A test for auto-focus https://youtu.be/V41k21qKQpE
No EIS sample vs EIS https://youtu.be/_qNFNs2gq74 VS https://youtu.be/00J-3cAzLjg
I really hope it works for you as well, take care.
Click to expand...
Click to collapse
Youtube removed the settings video, can you post it in text here? Or upload the video somewhere else? Thanks! Been looking for a solution to have 4k EIS and camera2 api for a long time since Open Camera didn't work anymore.
jmartinho said:
Youtube removed the settings video, can you post it in text here? Or upload the video somewhere else? Thanks! Been looking for a solution to have 4k EIS and camera2 api for a long time since Open Camera didn't work anymore.
Click to expand...
Click to collapse
Please check back later, I appealed to the decision to remove my video. The video doesn't contain any scam or anything that may violate the community guidelines.
In the mean time I'll make the video available from google photos https://photos.app.goo.gl/AqZHZ9xMn4nSc9pv7
Saicoth said:
Please check back later, I appealed to the decision to remove my video. The video doesn't contain any scam or anything that may violate the community guidelines.
In the mean time I'll make the video available from google photos https://photos.app.goo.gl/AqZHZ9xMn4nSc9pv7
Click to expand...
Click to collapse
That worked great! Thanks!
Am running pixel experience 9.0. I want to use Google camera. Which should I download and how to enable camera2api?
Saicoth said:
Please check back later, I appealed to the decision to remove my video. The video doesn't contain any scam or anything that may violate the community guidelines.
In the mean time I'll make the video available from google photos https://photos.app.goo.gl/AqZHZ9xMn4nSc9pv7
Click to expand...
Click to collapse
Hi! Thanks for all the details. I am using the latest miui 10, and WITHOUT api2 turned on, I used hedge camera app, and the 4k eis was working fine, but phone was droping the frames / stuttering the recorded video, which is a bit annoying.
I tested your setup, and I can see that its better, but still sometimes I can see some dropped frames. It happen to you too?
Thanks in advance for any suggestion.
misiek735 said:
Hi! Thanks for all the details. I am using the latest miui 10, and WITHOUT api2 turned on, I used hedge camera app, and the 4k eis was working fine, but phone was droping the frames / stuttering the recorded video, which is a bit annoying.
I tested your setup, and I can see that its better, but still sometimes I can see some dropped frames. It happen to you too?
Thanks in advance for any suggestion.
Click to expand...
Click to collapse
Yes, it happens to me as well, in the first 8 to 10 seconds, I think it's the cpu, it can't use EIS very well with 4K. Without EIS there are no dropped frames or stutter issues.
A suggestion would be to use a very fast micro sd card, haven't tested, but worth a try.
After about 4-5 minutes the phone gets quite warm and stutter is inevitable due to thermal throttling.
Flash this in TWRP to enable 4k recording in Google camera and other camera2 API-enabled apps
drive.google.com/open?id=1fRX0ASjOnsxbA0XAHOwkV_sz7TCV3dwg

camera2 api highframerate recording

Many roms without camera2.api support 1080p 60fps recording via snapdragon and other camera apps ( Citrus, Aex etc).
But in my experience z2 plus cant record 60fps if camera2.api is enabled.
ie in gcam 1080p 60fps is not possible.
In nougat roms flashing osstwrp enables camera2.api but after that high frame rate recording is not possible.
In oreo roms which camera2.api already added 60fps is not possible in any camera app.
I'm not a dev.
Tried to edit media profiles, build.prop, magisk modules but no luck.
I'm searching desperately for a solution in xda more than 6 months.
Because nothing matches gcam in photo quality and 60fps is a must have video feature.
Please any dev kind enough do a research and edit library files so that using camera2.api we could record 1080p 60fps.
Please devs @MR.HACKER5476 @davidevinavil @kubersharma @Rodrigo Rodrigues @devabhi @narshi shukla @optimumpro can anyone point look into this matter? This is a really need for Zuk Z2 and I hope you devs can fix this small but weird issue!
GopalKaul said:
Please devs @MR.HACKER5476 @davidevinavil @kubersharma @Rodrigo Rodrigues @devabhi @narshi shukla @optimumpro can anyone point look into this matter? This is a really need for Zuk Z2 and I hope you devs can fix this small but weird issue!
Click to expand...
Click to collapse
Thanks for the support bro.
Atleast someone can make zip/ magisk module so that we can toggle camera2.api on and off.....???
Darkness During Video Recording
Is there any solution for dark video recording on almost every custom rom ?
Please let me know if you have any idea.
Ess Arr said:
Is there any solution for dark video recording on almost every custom rom ?
Please let me know if you have any idea.
Click to expand...
Click to collapse
gcam or any cam...?
Workaround
GopalKaul said:
Please devs @MR.HACKER5476 @davidevinavil @kubersharma @Rodrigo Rodrigues @devabhi @narshi shukla @optimumpro can anyone point look into this matter? This is a really need for Zuk Z2 and I hope you devs can fix this small but weird issue!
Click to expand...
Click to collapse
Since nobody responds this is what Im currently doing as a workaround.
Im in H2O oreo build.
There is afterflash patch for this build.
In that patch there are 2 camera.msm8996.so files.
One for stock and one for gcam.
If you replace stock vendor/lib/hw/camera.msmxxxx.so with gcam .so file then camera2.api works and vice versa.
And reboot not required.
A root explorer is only needed.
Atleast, by a file replace we can switch.
A must read about hal3 and libraries
https://www.reddit.com/r/oneplus/comments/7cz7t5/oneplus_roms_camera_situation/
I hope we can get this HAL changing stuff too! We can use stock camera in conjunction with Google Camera!
GopalKaul said:
I hope we can get this HAL changing stuff too! We can use stock camera in conjunction with Google Camera!
Click to expand...
Click to collapse
There is a hal switcher apk.
But i cant figure it out.
May be u try what this does.
Kid yourself not. Zuk's camera hardware is not capable of 60fps in high resolution. Just look up the specs.
optimumpro said:
Kid yourself not. Zuk's camera hardware is not capable of 60fps in high resolution. Just look up the specs.
Click to expand...
Click to collapse
You think 1080 60fps not possible in zuk..?
Reallly...........????????????
Seriously you never seen a 60fps 1080p footage out of z2 plus...?
optimumpro said:
Kid yourself not. Zuk's camera hardware is not capable of 60fps in high resolution. Just look up the specs.
Click to expand...
Click to collapse
Dude! The stock Camera easily does that!!!
Surprised
GopalKaul said:
Dude! The stock Camera easily does that!!!
Click to expand...
Click to collapse
He is the legendary jaguar's optimumpro right..?
Why he talk like this..?
Surprised.
Anyone still doesn't know 1080p 60fps possible in zuk?.
60fps with gcam working is so ignored in this forum. I individually asked many devs for this in their rom threads but no one responds.
I know its is not easy but at least a reply from a dev is enough.
nikhilZ2 said:
He is the legendary jaguar's optimumpro right..?
Why he talk like this..?
Surprised.
Anyone still doesn't know 1080p 60fps possible in zuk?.
60fps with gcam working is so ignored in this forum. I individually asked many devs for this in their rom threads but no one responds.
I know its is not easy but at least a reply from a dev is enough.
Click to expand...
Click to collapse
Even I have PMed devs like kubersharma but I didn't get much of a response. Kuber is busy with ArrowOS offlately as he is in the development team.. let's see if some dev comes to help . @optimumpro can you figure this? Cause it works on stock ROM and some custom roms with old camera api1..
optimumpro said:
Kid yourself not. Zuk's camera hardware is not capable of 60fps in high resolution. Just look up the specs.
Click to expand...
Click to collapse
I have 720p at 120fps and 1080p at 90fps recorded from zuk z2 plus. I can share it here.
arun356y said:
I have 720p at 120fps and 1080p at 90fps recorded from zuk z2 plus. I can share it here.
Click to expand...
Click to collapse
I think its not needed. As we already know.
Don't know why optimumpro doubted us.
Another useful post I found.
Its from Mi5 thread. But I think its also applicable to us.
I think this is the reason for 60fps not happening.
Camera2.api is incomplete and camera1.api works only in legacy mode.
defcomg said:
The Camera Hal has 2 APIs one Named Qcamera2 and the other Qcamera3
Qcamera2 has the id 256 Qcamera 3 has id 786 or 756 can't remember the exact number now.
By Default all Qualcomm devices after SD600 use Qcamera2 this is what the miui camera uses basically Camera 1 api
Qcamera 3 is what activates camera 2 api it is Camera 2.
When Android Loads up and the camera hal loads it checks for the build.prop flag posted in this thread if it finds it and has value of 1 it sends a command with hal Id 786 effectively disabling qcamera 2.
When Qcamera 3 loads camera 2 is enabled so is camera 1 however camera 1 in qcamera 3 runs in a sort of emulated mode where it only has basic function like color effect exposure compensation white balance etc .
That's why functions such as HDR fail because they are part of qcamera 2.
Now there is a solution for this before I get to that I will explain how the camera is opened
App > Framework Java > Camera Client Lib > Hal Lib.
App executes Camera.open > inside Framework Java Android.Hardware.Camera Class is a method called open this invokes a native method which invokes camera client > Camera Client then also invokes the open method > then the hal starts up the camera . that's the normal way for camera 1.
Inside qcamera2 there is an alternate method called openLegacy what this allow is for qcamera2 to be called directly even with camera 3 active so when using the normal way of camera.open it uses qcamera3 when using camera.openLegacy it defaults back to qcamera2 for that session.
My proposal was yo redirect all camera.open request in the framework to camera.openLegacy so its system wide alternatively is to patch miui Camera .
I hope that makes sense
Click to expand...
Click to collapse
No hope
No hope..
I think we have to live with it.
Either gud still or gud video.
Not both.
Its impossible without proper camera blob and libraries I think.
nikhilZ2 said:
No hope..
I think we have to live with it.
Either gud still or gud video.
Not both.
Its impossible without proper camera blob and libraries I think.
Click to expand...
Click to collapse
email zuk developers maybe.
Not official
arun356y said:
email zuk developers maybe.
Click to expand...
Click to collapse
Chances are low.
Since even camera2.api is not official for us.
Lets hope it comes in zui5 pie.
Since pie is announced for zuk z2 china.
At present the dev or group who made cam2 api for our device are the only hope.
I dont know who did it.
nikhilZ2 said:
At present the dev or group who made cam2 api for our device are the only hope.
I dont know who did it.
Click to expand...
Click to collapse
As far as I remember, it was MR.HACKER5476 who brought camera2 API for our device

YouTube Vanced 2160p60HDR playback is very stuttery with too many frame drops

https://drive.google.com/file/d/10lGieXYspI_xzBzyoDSYgJh0yomdLpVU/view?usp=drivesdk
Check the stats for nerds near the end of the screen recording for details. 1440p60HDR and below resolutions work perfectly fine both in stretched out and normal modes but as soon as 2160p60HDR is turned on, video frames start to drop and the playback becomes very laggy/stuttery. I'm using the default codec in 'codec override'. I've tried pixel and samsung codecs but the res. is limited to 1080p max. Is there any workaround for 4k60 or do I have to live with 1440p?
Vanced version: Official 14.21.54 Black
MIUI Version - 10.4.4 Stable
why would you need 2k60 and 4k60 video playback ?
Trisks said:
why would you need 2k60 and 4k60 video playback ?
Click to expand...
Click to collapse
just for fun...1440p60 is fine though.
th1nd said:
just for fun...1440p60 is fine though.
Click to expand...
Click to collapse
4k60 by itself is really heavy. Even my PC with 1050Ti cant handle them
Trisks said:
4k60 by itself is really heavy. Even my PC with 1050Ti cant handle them
Click to expand...
Click to collapse
I have a 1050Ti too and my ****ty A10 7890k has literally zero problems running 8k60 (yes you heard it correctly - "8k60") without any O.C. It's not that my n8pro can't play 4k60 at all, there is definitely a bug or something which is keeping it from delivering adequate frames at appropriate frame times. So as per my analysis, the first few frames (~150-250 frames) are rendered at buttery smooth 60fps (which is only like 2-4 secs) but the rest 500-800 frames are very stuttery. I wanna know why this happens.
Share the app link
share the app link
[/B]
th1nd said:
https://drive.google.com/file/d/10lGieXYspI_xzBzyoDSYgJh0yomdLpVU/view?usp=drivesdk
Check the stats for nerds near the end of the screen recording for details. 1440p60HDR and below resolutions work perfectly fine both in stretched out and normal modes but as soon as 2160p60HDR is turned on, video frames start to drop and the playback becomes very laggy/stuttery. I'm using the default codec in 'codec override'. I've tried pixel and samsung codecs but the res. is limited to 1080p max. Is there any workaround for 4k60 or do I have to live with 1440p?
Vanced version: Official 14.21.54 Black
MIUI Version - 10.4.4 Stable
Click to expand...
Click to collapse
nagaraju5663 said:
share the app link
[/B]
Click to expand...
Click to collapse
https://vanced.app/nonroot (download the black one)

[MAGISK][MODULE] HEVC Recording Enabler v0.3

Hi, I've made a Magisk Module that enable HEVC / H265 Recording in the stock camera App.
This module enable HEVC/H265 video recording on OnePlus 6 and OnePlus 6T.
The bitrate values are the same as H264 and the HEVC code it's enabled for all the video profiles that previously used H264.
The audio codec it's still AAC and the audio bitrate doubles from 96 kb/s to 192 kb/s to get a better audio quality.
I've also made a diffrent fork that use half of the bitrate (and therefor half the space), it also keeps the original audio bitrate and change the audio codec to HEAAC to save space without losing quality
Why should I use HEVC instead of H264?
Basically, HEVC provide the same quality as H264, but using less of helf the bitrate, this means that you can record videos with the same quality but using less space, or, if you're more inclined to that, record video that use the same space but with better quality (less compression, therefore less artifacts and more details overall). This is the theory behind HEVC, pratically speaking I've noticed some differences, other users havent, so I guess the best way to find out if it really works it's by letting my beloved XDA users test this mod.
More info about HEVC on Wikipedia
Compatibility:
Should be compatible with every ROM since the mod change files in the /vendor partition, but I've tested only on OOS Open Beta 33
Original version changelog:
Code:
v0.3
- Change the audio bitrate from 96 kb/s to 192 kb/s
- Change audio codec from HEAAC to AAC (ha better audio quality for bitrate major than 128 kb/s)
v0.2
- Add HEVC support for all configurations previously used with H264
- Add HE-AAC support in HEVC encoded profiles
- Remove config files that doesn't affect the mod result
- Update HEVC encoder configuration to match the same limits has H264
v0.1
- Initial release
Half-bitrate version changelog:
Code:
v0.3
- Change the Bitrate multiplier, now it's 0.38 and the effective bitrate (checked on 4k60fps) it's 60.9 Mb/s
v0.2.1
- Change the Bitrate multiplier, now it's about 0.4 and use about half of the original space
v0.2
- Add HEVC support for all configurations previously used with H264
- Add HE-AAC support in HEVC encoded profiles
- Remove config files that doesn't affect the mod result
- Update HEVC encoder configuration to match the same limits has H264
v0.1
- Initial release
Download links:
Stock bitrate (same space, less compression, better quality)
Half bitrate (half of the space compared to original, quality should be similar)
For older version check the releases in the gitlab repo
Source links:
Stock bitrate
Half bitrate
How to check if it's working?
Shoot a video and then check which coded it's used, you can use this app
Let me know if you see improvements or not, thanks in advance!
Can you tell if this works on Stock OOS only or Custom ROMs too? Also on a side note, what's the benefit of this module? And I'm sure someone else will ask it too, but does this work with the Stock OOS Cam only or it will work with Gcam too?.
DarthVader said:
Can you tell if this works on Stock OOS only or Custom ROMs too? Also on a side note, what's the benefit of this module? And I'm sure someone else will ask it too, but does this work with the Stock OOS Cam only or it will work with Gcam too?.
Click to expand...
Click to collapse
In short, HEVC it's a coded that allow better picture quality compared to H264 (the coded used by default on OP6/6T) when using the same bitrate (occupying the same memory), I've made a short explanation in the readme of the repo with a handy chart about compression ratio comparison with H264
This module enable HEVC on stock camera for sure, I haven't check on GCam since it already has a built-in HEVC encoder, but I don't know if when disabled uses H264 or the stock defined by the media_profile.xml
DarthVader said:
Can you tell if this works on Stock OOS only or Custom ROMs too?
Click to expand...
Click to collapse
Should work on any ROM, but for now I've tried only on the latest OOS Open Beta
How to find it withing Magisk Manager? Just search HEVC?
Inviato dal mio ONEPLUS A6013 utilizzando Tapatalk
RikiBez said:
How to find it withing Magisk Manager? Just search HEVC?
Inviato dal mio ONEPLUS A6013 utilizzando Tapatalk
Click to expand...
Click to collapse
Right now isn't available on Magisk Manager, I'm waiting for approval, I don't know how much time it will take, but you can download it from here:
Stock bitrate
Half bitrate
eathtespagheti said:
Right now isn't available on Magisk Manager, I'm waiting for approval, I don't know how much time it will take, but you can download it from here:
Stock bitrate
Half bitrate
Click to expand...
Click to collapse
What exactly changes by enabling HEVC recording?..
Have no idea what that is...
cultofluna said:
What exactly changes by enabling HEVC recording?..
Have no idea what that is...
Click to expand...
Click to collapse
If you use the stock bitrate Module, you get better picture quality in videos for the same file size
If you use the half bitrate file you should get again better video quality but also smaller video files for the same length
Didn't work for me 10.3.1
eathtespagheti said:
If you use the stock bitrate Module, you get better picture quality in videos for the same file size
If you use the half bitrate file you should get again better video quality but also smaller video files for the same length
Click to expand...
Click to collapse
I recorded a 4k60 frame video with the stock camera for 30 seconds, then installed stock bitrate, recorded, then uninstalled and installed half bitrate and all three file sizes were the same and looked the same.
Then I tried 1080p60, same results with all three. all the same file size and quality.
Is there a special way to enable it besides just flashing via magisk?
eathtespagheti said:
...
Right now I don't have enough posts to be able to put links in thread, but I should be able to put links in replies if you ask me the download links, otherwise check my github / gitlab account and you'll find the source there, the username it's the same as here on XDA
Mod edit - Link to download added: https://gitlab.com/eathtespagheti/o...a8f64ddc6d0dbc/oneplus6-6t-hevc-recording.zip
Click to expand...
Click to collapse
Sir, I've added the download link to your OP. I hope this is fine with you.
Regards
Oswald Boelcke
Gytole said:
I recorded a 4k60 frame video with the stock camera for 30 seconds, then installed stock bitrate, recorded, then uninstalled and installed half bitrate and all three file sizes were the same and looked the same.
Then I tried 1080p60, same results with all three. all the same file size and quality.
Is there a special way to enable it besides just flashing via magisk?
Click to expand...
Click to collapse
Were you filming the same scene? A lot depend also on what you were filming, imho the quality difference it's noticeable only when watching the video in a good monitor or when you are editing, you notice that there are less artifacts in the details and the overall sharpness it better, but on the phone itself it's impossible to spot the difference. To be sure that the HEVC it's enabled try checking the codec info on the video, you can try with this app and in the format section it should say HEVC if the mod it's working, otherwise it will show AVC
Oswald Boelcke said:
Sir, I've added the download link to your OP. I hope this is fine with you.
Regards
Oswald Boelcke
Click to expand...
Click to collapse
Thanks I needed it ??
eathtespagheti said:
Were you filming the same scene? A lot depend also on what you were filming, imho the quality difference it's noticeable only when watching the video in a good monitor or when you are editing, you notice that there are less artifacts in the details and the overall sharpness it better, but on the phone itself it's impossible to spot the difference. To be sure that the HEVC it's enabled try checking the codec info on the video, you can try with this app and in the format section it should say HEVC if the mod it's working, otherwise it will show AVC
Yes, it says HEVC but the thing is I recorded stock camera 4k60 no modded camera, your stock bitrate, and the half bitrate and all 3 files sizes are the same.
I used a tripod and recorded a black sheet for 30 seconds.
Is there a trick? I could really use the half bitrate. Haha damn life saver.
Click to expand...
Click to collapse
Yes, it says HEVC but the thing is I recorded stock camera 4k60 no modded camera, your stock bitrate, and the half bitrate and all 3 files sizes are the same.
I used a tripod and recorded a black sheet for 30 seconds.
Is there a trick? I could really use the half bitrate. Haha damn life saver.
Click to expand...
Click to collapse
I think it's because the bitrate it's variable, so when you are filming something that's not changing and doesn't have much details in it (like a still black sheet for 30 seconds) the camera used the lowest bitrate possible to get that video anyway, try filming something in in movement that you can reproduce, I will do some tests too
eathtespagheti said:
I think it's because the bitrate it's variable, so when you are filming something that's not changing and doesn't have much details in it (like a still black sheet for 30 seconds) the camera used the lowest bitrate possible to get that video anyway, try filming something in in movement that you can reproduce, I will do some tests too
Click to expand...
Click to collapse
Tried 1080p60 just recording my keyboard on the floor. Same results. The bitrate is the same.
Gytole said:
Tried 1080p60 just recording my keyboard on the floor. Same results. The bitrate is the same.
Click to expand...
Click to collapse
Ok I've checked on my phone too, same bitrate between HEVC and AVC, maybe I've to change some other parameter in order to change the bitrate, I will post an update here when I'll have a free minute to recheck the files
eathtespagheti said:
Ok I've checked on my phone too, same bitrate between HEVC and AVC, maybe I've to change some other parameter in order to change the bitrate, I will post an update here when I'll have a free minute to recheck the files
Click to expand...
Click to collapse
You're awesome! Thanks for the quick replies, and like I said, you doing this, and saving me space is HUGE. Girlfriend and I are pumped hahaha
eathtespagheti said:
Were you filming the same scene? A lot depend also on what you were filming, imho the quality difference it's noticeable only when watching the video in a good monitor or when you are editing, you notice that there are less artifacts in the details and the overall sharpness it better, but on the phone itself it's impossible to spot the difference. To be sure that the HEVC it's enabled try checking the codec info on the video, you can try with this app and in the format section it should say HEVC if the mod it's working, otherwise it will show AVC
Thanks I needed it ??
Click to expand...
Click to collapse
I flashed your module and its working. If you can do anything with the bitrate it would be appreciated
Hi, thanks for the mod [emoji106] just a quick question for you. Is it possible to add Hevc to single shot pictures as well?
As you should be able to get the same quality pictures for half the size.
AndyBury said:
Hi, thanks for the mod [emoji106] just a quick question for you. Is it possible to add Hevc to single shot pictures as well?
As you should be able to get the same quality pictures for half the size.
Click to expand...
Click to collapse
Well seeing as how HEVC stands for High Efficiency Video Coding.... No
But there is HEIF, that's what you want.
Gytole said:
You're awesome! Thanks for the quick replies, and like I said, you doing this, and saving me space is HUGE. Girlfriend and I are pumped hahaha
Click to expand...
Click to collapse
Arkmars20 said:
I flashed your module and its working. If you can do anything with the bitrate it would be appreciated
Click to expand...
Click to collapse
After like two full days of trying I havent been able to reduce the bitrate, changing the default parameters seems to not affect in any way the camera settings, still choose some values automatically that are even different from what's written in the original config file without mod
AndyBury said:
Hi, thanks for the mod [emoji106] just a quick question for you. Is it possible to add Hevc to single shot pictures as well?
As you should be able to get the same quality pictures for half the size.
Click to expand...
Click to collapse
Causical said:
Well seeing as how HEVC stands for High Efficiency Video Coding.... No
But there is HEIF, that's what you want.
Click to expand...
Click to collapse
Well, AndyBury has a point! In fact the HEIF and HEVC are strongly related, and according to Wikipedia "The HEIF specification also defines the means of storing High Efficiency Video Codec (HEVC)-encoded intra images and HEVC-encoded image sequences" which surerly means something, but tbh I'm not so sure what's this something. Anyway I was already planning to trying enable HEIF via media_profiles, but seems something more complex than just adding a codec in a list, the only standardized usage of HEIF right now seems to be the one used by Apple on iPhones and Macs, I think that until Google doesn't implement in some way HEIF photos with camera we can't do anaything about it.

Categories

Resources