[MOD] HEVC/H.265 Video Recording V2.1

pankajsammal

Senior Member
May 8, 2012
101
93
0
Bangalore
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
 

Attachments

Last edited:

pankajsammal

Senior Member
May 8, 2012
101
93
0
Bangalore

pankajsammal

Senior Member
May 8, 2012
101
93
0
Bangalore
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
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.
 

64ashg

Senior Member
May 18, 2014
544
351
93
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.
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
 

Attachments

Last edited:

mystique47

Senior Member
Jul 7, 2013
161
51
0
Monza
mytrustedphysicians.com
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!
 

0xTJ

Senior Member
Dec 3, 2014
72
30
0
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
I'm not familiar with these things; What's the advantage of doing this?
 

pankajsammal

Senior Member
May 8, 2012
101
93
0
Bangalore
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
Test to see if the attached file works for you. (don't forget to take a backup of the original)
 

Attachments