[MOD] HEVC/H.265 Video Recording V2.1 - OnePlus 5 Themes, Apps, and Mods

I was able to modify OnePlus 5 to enable HEVC/H.265 video recording at 4k, 1080p & 720p resolutions. I have also reduced the bit rate for the video so that it will take less storage space.
There are 2 Magisk module attached below one with 40% bit rate reduction and other with original bitrate.
Note - Take a backup of your 'media_profiles.xml' located at system/etc/ before attempting this mod.
To install just unzip and overwrite 'media_profiles.xml' at system/etc/ with permission 0644 and reboot your phone.
Here is a link to the file on google drive if you are not able to download it here.https://drive.google.com/open?id=0BwXqylXTgITAOWllTi1XRE5qdDA
Update V2-
Added Magisk Module
Decreased the video bit-rate by around 40%
Video is currently recorded at following bit-rate
4K at 24Mbps (default is 42Mbps)
1080p at 11Mbps (default is 20Mbps)
720p at 8Mbps (default is 14Mbps)
Update V2.1-
Fix for slow motion crashing on modded google camera
Tested only on OxygenOS 4.5.8

Awesome. Reboot needed?

str8str said:
Awesome. Reboot needed?
Click to expand...
Click to collapse
Yes, a reboot is required.

Magisk module possibly ?

NightMean said:
Magisk module possibly ?
Click to expand...
Click to collapse
Maybe when I get some free time.

I'll make the magic module, but I can't d/l the needed file for some reason...

dustintinsley said:
I'll make the magic module, but I can't d/l the needed file for some reason...
Click to expand...
Click to collapse
here is a google drive link for the file https://drive.google.com/open?id=0BwXqylXTgITAOWllTi1XRE5qdDA

Works on 3 /3t or its just cot 5?

niwia said:
Works on 3 /3t or its just cot 5?
Click to expand...
Click to collapse
Don't have a 3/3t to test it out, but most probably it won't work as the camera setup is different.

What did you modify to enable this? Would be useful to know so that we can see if the same could be done on the 3/3T

Is there any noticeable reduction in image or sound quality?

Really useful... Could you please do the same for 3 and 3t? Or at least try? Thank you

doubleaykay said:
What did you modify to enable this? Would be useful to know so that we can see if the same could be done on the 3/3T
Click to expand...
Click to collapse
M.M.K said:
Really useful... Could you please do the same for 3 and 3t? Or at least try? Thank you
Click to expand...
Click to collapse
There is actually a mod like this for OnePlus 3 https://forum.xda-developers.com/oneplus-3/how-to/mod-hevc-h-265-encoding-enabled-t3586792
Try it out. If it doesn't work then I can try to do it for 3/3t.

Robdyx said:
Is there any noticeable reduction in image or sound quality?
Click to expand...
Click to collapse
As far as I have tested, I was not able to find any difference in the image or sound quality.

doubleaykay said:
What did you modify to enable this? Would be useful to know so that we can see if the same could be done on the 3/3T
Click to expand...
Click to collapse
media_profiles.xml needs to be modified to enable hevc encoding. You can check media_codecs.xml file in /system/etc/ to check if your phone supports hevc encoding, or if you want me to look into it just upload these two files and I will have a look.

pankajsammal said:
media_profiles.xml needs to be modified to enable hevc encoding. You can check media_codecs.xml file in /system/etc/ to check if your phone supports hevc encoding, or if you want me to look into it just upload these two files and I will have a look.
Click to expand...
Click to collapse
Files are from the open beta 11 for the 3t, should be similar to the stable channel and 3. And the thread mentioned above for op3 is a really old one, additional codec support has been added to the devices since. Colud create conflicts, so I wouldn't be trying that out.
Edit I do see the support for hevc in media_codec.xml

opening video with desktop player says hevc so it should be worked. good job!! I guess we can have same quality with less bitrate as to say better quality at the same bitrate, even if max quality remains the same (sensor's limit)
---------- Post added at 01:58 AM ---------- Previous post was at 01:21 AM ----------
I just made a test: recorded 2 videos at lowest bitrate in 264 (1,5mb/s) and 265 (0.8mb/s). 265 quality is much much better!

pankajsammal said:
I was able to modify OnePlus 5 to enable HEVC/H.265 video recording at 4k, 1080p & 720p resolutions. I have also reduced the bit rate for the video so that it will take less storage space.
Note - Take a backup of your 'media_profiles.xml' located at system/etc/ before attempting this mod.
To install just overwrite 'media_profiles.xml' at system/etc/ with permission 0644 and reboot your phone.
Here is a link to the file on google drive if you are not able to download it here.https://drive.google.com/open?id=0BwXqylXTgITAOWllTi1XRE5qdDA
Tested only on OxygenOS 4.5.5
Click to expand...
Click to collapse
I'm not familiar with these things; What's the advantage of doing this?

0xTJ said:
I'm not familiar with these things; What's the advantage of doing this?
Click to expand...
Click to collapse
H.265 codec reduces file size without compromising video quality.

64ashg said:
Files are from the open beta 11 for the 3t, should be similar to the stable channel and 3. And the thread mentioned above for op3 is a really old one, additional codec support has been added to the devices since. Colud create conflicts, so I wouldn't be trying that out.
Edit I do see the support for hevc in media_codec.xml
Click to expand...
Click to collapse
Test to see if the attached file works for you. (don't forget to take a backup of the original)

Related

[MOD] Camera - Image/Video/Audio Bitrate Increases for Best Quality [NEW PROFILES!]

I AM NOT RESPONSIBLE FOR ANY NEGATIVE IMPACTS OR CONSEQUENCES ON YOUR PHONE IF YOU SO CHOOSE TO USE THIS GUIDE.
It had come to my attention that recording for long periods of time will result in large file sizes when using my mod. For this reason, I have now created different profiles to increase quality in either images or video/audio, including a new experimental version!
It has been stated that stock 1080P video runs around 20Mbps on the G2 (I consistently have 30Mbps). These mods can increase 1080P video to approximately 40-50Mbps. 720P, images, and audio Kbps can also be increased to max potential. The following steps help you unleash the best quality on the G2 camera!
WARNING: INCREASED BITRATES MEANS MORE STORAGE SPACE IS TAKEN UP.
PREREQUISITES
1) You MUST be rooted.
2) You MUST have recovery installed.
3) Download 1 of 6 media profiles:
media_profiles.xml (Increases to Image/Video/Audio)
media_profiles.xml (Increases only to Image)
media_profiles.xml (Increases only to Video/Audio)
media_profiles.xml (Stock)
media_profiles.xml (Experimental - Further Increases to Image/Video/Audio)
media_profiles.xml (Experimental - Further Increases solely to Image)
NOTE: I have tested the experimental Image/Video/Audio version. The image is a tad bit better. The video seems more stabilized and averages around 45Mbps. Audio stays about the same.
4) Download either Jishnu Sur's version 1 or version 2 mod (I prefer version 1). He now has version 2.5, 2.5.1, and 2.5.2, but only 2.5.2 has been successfully tested with my mod.
5) Download the stock file to revert from Jishnu Sur's versions.
MOD METHOD #1 (RECOMMENDED) - Requires most files from above.
1) Place all the downloaded files somewhere in the phone.
2) Boot into recovery.
3) Flash the stock zip.
4) Reboot system.
5) Boot back into recovery.
6) Flash the Jishnu Sur mod downloaded.
7) Reboot system.
8) Use a file explorer (like Root Explorer) app to open the folder where the downloaded media profiles file is.
9) Rename the media profiles file to be "media_profiles.xml".
10) Copy the media_profiles.xml file.
11) Navigate up to the root folder and go the "etc" folder.
12) Paste the media_profiles.xml file.
13a) A message may appear asking for rewrite (R/W) capability. Select "yes".
13b) A message will appear asking to confirm overwriting the current version. Select "yes".
14) Reboot the phone 1-4 times.
INSTALLATION METHOD #2 - Requires only the media_profile.xml and Stock file from above.
1) Place all the downloaded files somewhere in the phone.
2) Boot into recovery.
3) Flash the stock zip.
4) Reboot system.
5) Use a file explorer (like Root Explorer) app to open the folder where the downloaded media profiles file is.
6) Rename the media profiles file to be "media_profiles.xml".
7) Copy the media_profiles.xml file.
8) Navigate up to the root folder and go the "etc" folder.
9) Paste the media_profiles.xml file.
10a) A message may appear asking for rewrite (R/W) capability. Select "yes".
10b) A message will appear asking to confirm overwriting the current version. Select "yes".
11) Reboot the phone 1-4 times.
REBOOTS: The reason for the last step is that it needs at least one reboot (but probably two) to increase the quality of video. The images should already be at their highest quality.
AUDIO ISSUES: If the issue where audio can no longer be heard occurs, it has been confirmed that going back to stock and repeating the steps fixes this.
QUALITY INCREASES: I found that after at least one (as many as four) reboot I was getting extremely high video bitrates; between 38Mbps and 50Mbps! The image quality should increase above stock as well as above Jishnu Sur's mods. Audio increases between 190-210Kbps.
MOD DIFFERENCES: I found a few differences in these mods. Jishnu Sur's version 1 seems to help with focus and a few other things. His version 2 adds to his first by restricting high ISO or low FPS in low-lit areas. His newer versions decrease bitrates. My mod increases the quality of images and videos above Jishnu Sur's, but does not have the other features.
PREVIEW OF IMAGES AND VIDEO: Here is a large zip file of images I took while testing. There were an abundance from my reboots, but I only chose one set per folder since the file is almost 70MB!
HOW TO CHECK QUALITY:
Images - Check the storage sizes of two or more images. Open an image in Preview or any viewer that can zoom. Zoom in on the curtains. Open the other image(s) for comparison and perform the same amount of zoom. Compare the clarity (sharpness) of the images.
Video - Check the storage sizes of two or more videos. Right-click on a video and click Properties. Click the Details tab. Check the bitrate of the video. Right-click on the other video(s) and perform the same actions. Compare the difference in bitrates.
A quick lesson on Lighting (ISO, FPS, Exposure): The higher the ISO the more light for the camera, but with more noise in the image. The lower the frame rate (FPS) the more light for the camera, but less smoothness for video. Exposure can help you compensate for images (or parts of images) that come out too bright or dark. Exposure should be used when optimal ISO or FPS settings have been found and changing them will alter quality in some manner.
Credits: Jishnu Sur for his mods.
nice man. just flashing his mod now and your media profiles..i'm excited!
Can you post some examples of before and after the mod?
Sent from my VZW LG G2
Any way to download without signing up for a sky drive account?
Sent from my Nexus 10 using XDA Premium HD app
idk if its this or his camera mod, but audio doesn't work anymore.
---------- Post added at 02:13 PM ---------- Previous post was at 02:10 PM ----------
yes it's this mod.
flashing this for me took away audio during video recording. i went back to the old media profiles and audio is back.
jayochs said:
idk if its this or his camera mod, but audio doesn't work anymore.
---------- Post added at 02:13 PM ---------- Previous post was at 02:10 PM ----------
yes it's this mod.
flashing this for me took away audio during video recording. i went back to the old media profiles and audio is back.
Click to expand...
Click to collapse
Sorry to hear that. Just went back through my test files of video and each one I created had audio (The Simpsons were playing in the background). I am not sure why this is not working for you, anyone else with this issue?
Heatshiver said:
Sorry to hear that. Just went back through my test files of video and each one I created had audio (The Simpsons were playing in the background). I am not sure why this is not working for you, anyone else with this issue?
Click to expand...
Click to collapse
really weird. yeah, i made a backup of the stock media profiles after flashing his mod, and audio is back now...weird.
trickster2369 said:
Any way to download without signing up for a sky drive account?
Click to expand...
Click to collapse
You should not have to create a SkyDrive account as I have it open for public download. I logged out of my account, tested it, and I had no problem accessing it. Please check again and reply if the problem persists for you.
"NOTE: Flashing other Media Profiles may loose the quality as the camera.msm8970 is synced with the Media Profile."
i wonder if flashing this mod would've actually made it worse bc of that?
jayochs said:
really weird. yeah, i made a backup of the stock media profiles after flashing his mod, and audio is back now...weird.
Click to expand...
Click to collapse
I'm a bit confused, his mod, or mine? If the audio occurs after his (it doesn't for me), you can try my mod without his. My mod is purely for quality increases. I have done this for other phones before and never lost audio.
I have no audio either...
Kenchi* said:
I have no audio either...
Click to expand...
Click to collapse
Can you confirm if this is after flashing the other mod, or did you just try mine?
Heatshiver said:
You should not have to create a SkyDrive account as I have it open for public download. I logged out of my account, tested it, and I had no problem accessing it. Please check again and reply if the problem persists for you.
Click to expand...
Click to collapse
All good. I downloaded in browser mode. And, apparently, I have an account, just haven't used it in forever.?
Thanks Devs. From my VZW G2.
jayochs said:
"NOTE: Flashing other Media Profiles may loose the quality as the camera.msm8970 is synced with the Media Profile."
i wonder if flashing this mod would've actually made it worse bc of that?
Click to expand...
Click to collapse
I would have to say no just from the test files I have. I think the statement refers to media profiles that have yet to be altered (stock settings), which would definitely bring down your bitrates (back to stock).
Heatshiver said:
I would have to say no just from the test files I have. I think the statement refers to media profiles that have yet to be altered (stock settings), which would definitely bring down your bitrates (back to stock).
Click to expand...
Click to collapse
ah. what i did was flashed his mod, then pushed your media profiles and lost all audio.
also, the videos that were recorded with your media profiles didn't work correctly on my PC. they would freeze up and wouldn't play right...then i went back to his media profiles and it worked fine. weird.
jayochs said:
ah. what i did was flashed his mod, then pushed your media profiles and lost all audio.
also, the videos that were recorded with your media profiles didn't work correctly on my PC. they would freeze up and wouldn't play right...then i went back to his media profiles and it worked fine. weird.
Click to expand...
Click to collapse
Okay, now were getting somewhere. It is odd this works for me without issues, but not for you. One thing I can think of is I flashed another zip at the same time when flashing his.
Maybe you can help diagnose this issue with me. First, what variant of G2 do you have (I assume an American carrier)? Second, would you be willing to undue his mod and try just my mod to see the results? These two things would tell me a lot about what is happening...
Heatshiver said:
Okay, now were getting somewhere. It is odd this works for me without issues, but not for you. One thing I can think of is I flashed another zip at the same time when flashing his.
Maybe you can help diagnose this issue with me. First, what variant of G2 do you have (I assume an American carrier)? Second, would you be willing to undue his mod and try just my mod to see the results? These two things would tell me a lot about what is happening...
Click to expand...
Click to collapse
hey..actually out right now so i won't be flashin stuff or playin around, but i can say that i'm running the Verizon version of the G2.
From another thread a user modding the media_profiles didnt see any changes to vids and images r u sure it works for anything except for codec checks? Make sure the modded apk, libs and media_profile all match with the same bitrate and settings perhaps.
somemadcaaant said:
From another thread a user modding the media_profiles didnt see any changes to vids and images r u sure it works for anything except for codec checks? Make sure the modded apk, libs and media_profile all match with the same bitrate and settings perhaps.
Click to expand...
Click to collapse
These can be hit or miss on different phones. On my S4 changes to the media profile would not take if replaced. I could change the values in-file and they would stay, but the quality would not change at all. On my ZTE U950, the file would indeed change and improve.
This mod works with more than just the codec checks, here are a few simple reasons why:
1) You can check the audio in the my media profile. The audio in the file is at 320Kbps, however, the video file for preview is a bit above 192Kbps. So this should disprove that only codec checks are being done since the audio is not being pumped up as high as I would like (yet).
2) The video storage sizes are also different, and if they were at the same bitrates (even if the codec read differently) the sizes should be similar since they are of similar length and content.
3) I performed some basic math to determine what percentage of my Jishnu Sur preview video is compared to my preview video. How does this help? If the storage size and bitrate percentages come out about the same, then the codec should be displaying the correct information since the storage sizes can't be incorrect. Both came out to about 83%. I can provide this simple equation if people wish to check for themselves.
I do welcome the question and any others people may have. People should make informed decisions before using mods.
Hello,first i want to thank you for your work.I have the Korean F320S model and i have the same problem with audio too.I dont think its model dependent as it seems.I did the same as the other guy,flashed the other mod and after that pushed your profile in.Im willing to help with the issue if you have something i can try.

[MOD] Enable ClearMotion on MIUI based ROMs

Folks, I bring to you the wonderful frame interpolation feature supported by our chipset MediaTek Helio X10: ClearMotion!
Disclaimer:
Confirmed working on most MIUI builds for Redmi Note 2. (7.0.12, 7.0.14, 7.1.4.0 CHINA, 7.1.3.0 CHINA, 5.12.24, 5.12,23, 5.11.1 etc)
Does not work on Global stable MIUI Builds beyond 7.0.12; however, it works in equivalent China builds.
Pre-requisites:
Rooted Redmi Note 2 (or MediaTek based device on MIUI 7 ROM)
TWRP or CWM recovery installed
Flashable zip file containing ClearMotion libraries ported to MIUI
Steps:
Method 1:
Download the file "Enable_ClearMotion_v2_for_Redmi_Note_2_by_Hasaan6545.zip" and place it in your sdcard
Reboot into recovery and backup your ROM (as a precaution).
Flash the file. Reboot
Play a video using MX Player (or any player that supports HW decoding) and feel the difference
Method 2 (Only for those who can not flash the zip for any reason; you may attempt manual installation).
Download the file "Enable_ClearMotion_v2a_for_Redmi_Note_2_by_Hasaan6545.zip" and place it in your sdcard. Extract the folder.
Using "Root Explorer", navigate to "system/build.prop" and use its built in text editor to add the following lines at the end of the file. Don't forget to add an extra empty line at the end.
Code:
persist.sys.display.clearMotion=1
persist.clearMotion.fblevel.nrm=255
persist.clearMotion.fblevel.bdr=255
ro.mtk_clearmotion_support=1
ro.mtk_slow_motion_support=1
ro.mtk_16x_slowmotion_support=1
(Alternatively, you may add these lines to your build.prop file using any build.prop tweaker from Play Store)
Using Root Explorer, copy the libraries located in the zip file's system/lib folder into your phone's "root>system>lib" directory.
Reboot your system and play a video to see the difference (if the mod worked for you)
For more details on ClearMotion Technology and how to check if it is working for you: HERE
Download link: HERE
WHY NOT SIMPLY USE AOSP ROMs FOR CLEARMOTION ON REDMI NOTE 2?
AOSP ROMs for Redmi Note 2 offer ClearMotion and MiraVision by default; however, there are advantages of using ClearMotion on MIUI instead of switching to AOSP:
Camera with MediaTek's InstantFocus™ and TrueBright™ technology: On MIUI, we retain a good quality camera that we have to sacrifice when switching to AOSP. (Yes, the fast focus speeds and superior image quality on MIUI ROMs are not due to the "so-called" PDAF sensor; it's because of Helio X10's InstantFocus and TrueBright technologies; both of which are operational in MIUI Camera.
Most AOSP ROMs for Redmi Note 2 are (currently) plagued by an assortment of deep sleep bugs that pop up at times and drain battery during standby. This is very annoying; and is attributable to AOSP Lollipop Build 5.0.x more than the ports itself.
Slow Motion feature on MIUI is superior to that in AOSP's (the latter needs the stock camera app and saves videos that can be played in slow motion only through the stock video player; whereas MIUI actually exports a slow motion video in mp4 format that can be played using any player, and can also be shared)
I really feel suited to AOSP, but the MIUI ROM also has much eye candy to offer.
If you like this mod, don't forget to hit the thanks button!!
Notes:
This is an answer to those who claim that this mod makes the ROM stagefright vulnerable (Ironically, the same people include this mod within their ROMS)
30/12 V2 released: Added build.prop tweak in the zip file so installation is much more simpler. Stagefright issue investigated: Modifications in an older AOSP-based libstagefright.so included in this mod are necessary for the mod to work. Those of you who are still upset about stagefright alarm in some stagefright testing apps, please consider the following:
1. You may simply disable MMS auto-retrieval for their safety
2. Flash this patch that disables stagefright functions using build.prop (Credits: Edzamber, source) : http://www.mediafire.com/download/gi4113dll3g98l6/Disable_Stagefright_by+build.prop_v2.zip
3. There is very, very little possiblity that the stagefright bug will ever be exploited against you; whereas the mod is yours for everyday use.
Click to expand...
Click to collapse
Last but not the least, I respect the developer community; however, the courtesy of giving credit for the mod when included in the ROMs should humbly be observed. I posted this mod in December 2015; prior to which nobody was able to enable ClearMotion on MIUI and many people claimed that it would be impossible to do so due to software differences.
Happy modding everyone
Link dead
SKARZz said:
Link dead
Click to expand...
Click to collapse
EDIT: he used adfly which is probably why the link shows that is dead.
http://www4.zippyshare.com/v/YKjObePN/file.html
Note: Adfly links are not allowed on xda or any other money redirecting links. XDA is not a place to make money.
You have some post and rep I thought u knew adfly links are not allowed ^^
Awesome. Would work in CM?
Sent from my Redmi Note 2 using Tapatalk
The link was copied from my blogpost, hence the adfly link.
I have replaced it now.
PoDgAnA said:
EDIT: he used adfly which is probably why the link shows that is dead.
http://www4.zippyshare.com/v/YKjObePN/file.html
Note: Adfly links are not allowed on xda or any other money redirecting links. XDA is not a place to make money.
You have some post and rep I thought u knew adfly links are not allowed ^^
Click to expand...
Click to collapse
Does it work in YouTube?
You should add build.prop writer inside updater script
Sent from my Redmi Note 2 using Tapatalk
---------- Post added at 05:50 AM ---------- Previous post was at 05:19 AM ----------
Wow fluid!!
Sent from my Redmi Note 2 using Tapatalk
works like charm!!rly thx for that m8 the difference is HUGE!!what about miravision too?
I've installed this mod but after I set 1 in EngMode my screen don't divide ( wich means that ClearMotion don't work ). But I think I see some differences in video and YouTube... Is this an option ? Mod working but screen don't divide în ClearMotion Demo ? I have Reno2 Prime and MIUI 7 5.11.5 Beta.
P.S. I have 2 screenshots with and without this mod on YouTube video.. If that help you..
P.S. 2 Maybe I'm crazy and there is no differences and Mod don't work on my ROM
Can't play some video on youtube such as this https://youtu.be/5e2G5CcuMfs thats ironic, the video tells about clearmotion
Edit : no error again?? Maybe youtube unstable
jerryshaw12 said:
You should add build.prop writer inside updater script
Sent from my Redmi Note 2 using Tapatalk
---------- Post added at 05:50 AM ---------- Previous post was at 05:19 AM ----------
Wow fluid!!
Sent from my Redmi Note 2 using Tapatalk
Click to expand...
Click to collapse
I'll do that soon enough.
johnnyman25 said:
works like charm!!rly thx for that m8 the difference is HUGE!!what about miravision too?
Click to expand...
Click to collapse
Glad you like it
MiraVision works but MIUI's builtin display settings conflict with it.
I personally think that MiraVision is unnecessary because when you play videos on YouTube or view pictures against a black background, MiraVision thinks that the image being displayed is underexposed and therefore boosts up brightness and lowers the contrast which looks ugly. Apart from that, it's a handy little feature.
Gyovany96 said:
I've installed this mod but after I set 1 in EngMode my screen don't divide ( wich means that ClearMotion don't work ). But I think I see some differences in video and YouTube... Is this an option ? Mod working but screen don't divide în ClearMotion Demo ? I have Reno2 Prime and MIUI 7 5.11.5 Beta.
P.S. I have 2 screenshots with and without this mod on YouTube video.. If that help you..
P.S. 2 Maybe I'm crazy and there is no differences and Mod don't work on my ROM
Click to expand...
Click to collapse
Screenshots don't help. This mod can be seen to work while videos are being played. However, if the screen doesn't divide in demo mode, it's unlikely that the ClearMotion is functi onal. Have you tried playing the video using HW decoder on MX Player? Are you sure that build.prop lines are added properly?
Reinstall the mod and/or try it on any other MIUI version. It does work.
jerryshaw12 said:
Can't play some video on youtube such as this https://youtu.be/5e2G5CcuMfs thats ironic, the video tells about clearmotion
Edit : no error again?? Maybe youtube unstable
Click to expand...
Click to collapse
That obviously has nothing to do with ClearMotion. Just a random YouTube bug.
Javi22 said:
Awesome. Would work in CM?
Sent from my Redmi Note 2 using Tapatalk
Click to expand...
Click to collapse
Currently no; but I'm working on it
Wow! It works like a charm! Thank you.
Do you think it will have any effect on battery life?
PS: It seems like videos are playing a bit delayed but sound comes right on time.
dedebekri said:
Wow! It works like a charm! Thank you.
Do you think it will have any effect on battery life?
PS: It seems like videos are playing a bit delayed but sound comes right on time.
Click to expand...
Click to collapse
Glad you like it. The videos play perfectly in sync with the audio. The only noticeable delay is immediately after seeking (as the SoC loads the successive frames and generates images to interpolate).
As the whole process is hardware optimized, battery life does NOT suffer.
Can anyone confirm that this Mod work on MIUI Beta ROM ?
Works on MIUI 5.12.10 Developer Global ROM
Sent from my Redmi Note 2 using Tapatalk
wow, really works.. thanks man, tried to watch Home and the graphics was really great, its like im playing a pc game with texture quality set to ultra high.. hehe
SKARZz said:
Does it work in YouTube?
Click to expand...
Click to collapse
Brother I accidentally missed this question earlier. It came to my notice now so I am replying it late.
It does work on YouTube, Facebook and other similar apps. Basically it works wherever hardware decoding is used i.e. on all video formats supported by the native player.
Victorio_T said:
Works on MIUI 5.12.10 Developer Global ROM
Click to expand...
Click to collapse
Thanks for confirming
zhobotero69 said:
wow, really works.. thanks man, tried to watch Home and the graphics was really great, its like im playing a pc game with texture quality set to ultra high.. hehe
Click to expand...
Click to collapse
This mod boosts the framerate; not the texture itself. However, the output is visually pleasing and I guess I understand what you mean when you compare it to playing a Pc Game (Hardcore gamers always play at a minimum of 1080p @ 60fps )
hasaan6545 said:
Brother I accidentally missed this question earlier. It came to my notice now so I am replying it late.
It does work on YouTube, Facebook and other similar apps. Basically it works wherever hardware decoding is used i.e. on all video formats supported by the native player.
Thanks for confirming
This mod boosts the framerate; not the texture itself. However, the output is visually pleasing and I guess I understand what you mean when you compare it to playing a Pc Game (Hardcore gamers always play at a minimum of 1080p @ 60fps )
Click to expand...
Click to collapse
Oh thanks. Great job congratulations.
Only works with videos? I thought that ClearMotion is for 120 Hz in all, so UI (launcher, apps), etc...

Moto g4 plus camera mod [email protected]

Improved 1080p recording and picture quality
root required
Open media.zip and find media profile xml file extract it and then you can replace.
steps
1) open es file explorer go to device>system>etc
2) find media_profile.xml in etc folder
3) replace it with this media_profile.xml
4) save and reboot.
1) Increased photo compression quality to 100%.
2) Increased video bitrate from 17mbps to 24 mbps can go upto 30mbps but fps drops so 24 is best.
3) Increased audio bitrate to 14000.
4) Increased front camera video bitrate to 20mbps.
5) Increased memcap to twice .
pros
1) Better 1080p video recording from both front and back camera.
2) Image quality of front is improved marginally.
3) In daylight video from rear camera are best .
4) More clear audio .
5) In low light pictures are better than stock.
6 ) sharp and clear video.
cons
1) In low light because of high bitrate video look more contrasted.
2 ) Very small change in picture quality in daylight.
This is screenshot of front camera video bitrate
Does it work in roms too?
Yes any rom
And could it be a way to improve slow motion camera, or default options are the only one??
I got bootloop
edit: nevermind, my mistake xD
I got a boot loop after replacing the file. I'm on aosp extended.
Same here..got boot loop on RR
ivan290 said:
And could it be a way to improve slow motion camera, or default options are the only one??
Click to expand...
Click to collapse
When I added slow motion media profile then also the video is 960*540 it means it may be libs problem
Soham Biswas said:
Same here..got boot loop on RR
Click to expand...
Click to collapse
I have updated the media profile download media2.zip and try again
The new file works ?
Aby lad said:
I have updated the media profile download media2.zip and try again
Click to expand...
Click to collapse
It worked..??
Works on Moto G4 no plus?
sofsamu said:
Works on Moto G4 no plus?
Click to expand...
Click to collapse
It works on moto g4 plus
I can't able to see any difference
@op
U ported stock camera for moto g4 plus
Can u plz send me the link to that thread
Is this thread active
akilan30 said:
Is this thread active
Click to expand...
Click to collapse
Why do you think it's not active? Cause nobody post something?
Fps has drop dramatically while recording video. Pls improve it so much of lag, OMG!!!??
strongst said:
Why do you think it's not active? Cause nobody post something?
Click to expand...
Click to collapse
Yes brother actually i thought that,but brother slo mo video has low clarity any help with that? Can yu?
akilan30 said:
Is this thread active
Click to expand...
Click to collapse
lol

[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.

[Magisk][Module] Hevc Recording Enabler v0.1 for ZUK Z2 Plus

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.

Categories

Resources