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

FPSUsername

Senior Member
Jun 18, 2012
3,504
963
253
FPSUsername.cf
Try this one. I've increased the bitrate of the audio and changed the channel to stereo to utilize both mic for recording sound.
Something is wrong. The frame is 1920x1088 and the sample rate is still 24k (which is very low, 44k or 48k would make sense and utilize the full frequency range of the mic)

The 4k resolution is 3840x2176. The audio bitrate seems variable, just like the image bitrate (I got 26585kbps at 4k and 12844kbps at 1080p indoor, both having a framerate of ~27)
 
Last edited:

tusar8

Senior Member
Mar 30, 2017
263
81
0
Guwahati
Something is wrong. The frame is 1920x1088 and the sample rate is still 24k (which is very low, 44k or 48k would make sense and utilize the full frequency range of the mic)

The 4k resolution is 3840x2176. The audio bitrate seems variable, just like the image bitrate (I got 26585kbps at 4k and 12844kbps at 1080p indoor, both having a framerate of ~27)
I wonder if its the problem in the rom. That file you provided seems to be working fine on Pixel Experience. I've modified it and its working fine with me. I'm using camera nx from nexus 5x forum to record video.
 
Last edited:

FPSUsername

Senior Member
Jun 18, 2012
3,504
963
253
FPSUsername.cf
I wonder if its the problem in the rom. That file you provided seems to be working fine on Pixel Experience. I've modified it and it working fine with me. I'm using camera nx from nexus 5x forum to record video.
That camera (v7.3.1) seems to be crashing. Maybe it's something with hal1/hal3?

For the audio bitrate, you have to double it when you double the channel. I've set it to 96kHz and that results into 48kHz when I check the file specs
 
Last edited:

acwcanada

Senior Member
Mar 19, 2016
81
15
8
New Update : I have tested it on Pixel Experience Oreo 8.1 and its working. If it works on any other Oreo rom, mention below.
Hi, when you said that it is working with Pixel Experience Oreo 8.1, did you use special camera app? I tested it myself and found that the camera fc when it is opened, also the rom's face detection function is no more working with this mod. Further, at least a few more apps which I am using start to give error messages and shutting down on me (one of them is ES File Explorer).
 

tusar8

Senior Member
Mar 30, 2017
263
81
0
Guwahati
That camera (v7.3.1) seems to be crashing. Maybe it's something with hal1/hal3?

For the audio bitrate, you have to double it when you double the channel. I've set it to 96kHz and that results into 48kHz when I check the file specs
Pixel Experience is working on Hal3. I don't know much about hal, so you will need to ask the rom developer about it.
 

tusar8

Senior Member
Mar 30, 2017
263
81
0
Guwahati
Hi, when you said that it is working with Pixel Experience Oreo 8.1, did you use special camera app? I tested it myself and found that the camera fc when it is opened, also the rom's face detection function is no more working with this mod. Further, at least a few more apps which I am using start to give error messages and shutting down on me (one of them is ES File Explorer).
After replacing the file, make sure you set the permission to rw-r-r. The stock camera won't support hevc and will FC. Use oneplus camera, google camera, open camera instead. Face unlock still works for me, try improve face matching in settings. ES file explorer works fine with me. Either you haven't updated the app or you might be using some other mods.
 

acwcanada

Senior Member
Mar 19, 2016
81
15
8
After replacing the file, make sure you set the permission to rw-r-r. The stock camera won't support hevc and will FC. Use oneplus camera, google camera, open camera instead. Face unlock still works for me, try improve face matching in settings. ES file explorer works fine with me. Either you haven't updated the app or you might be using some other mods.
Permission set properly. I had tried a few camera apps including oneplus camera, google camera and a better camera, all of them fc when opened. My ES File Explorer Pro fc even just copy your media_profiles.xml to replace the system one. Don't know what's wrong, may be the updated rom in February has changed something to cause the conflicts.
 

tusar8

Senior Member
Mar 30, 2017
263
81
0
Guwahati
Permission set properly. I had tried a few camera apps including oneplus camera, google camera and a better camera, all of them fc when opened. My ES File Explorer Pro fc even just copy your media_profiles.xml to replace the system one. Don't know what's wrong, may be the updated rom in February has changed something to cause the conflicts.
I can confirm that my mod is working without any problem on Pixel Experience, no FC on any apps beside the stock cam. You will need to clean flash the latest version of PE and then apply the mod.
 

CrispyK

Member
Mar 20, 2017
10
0
0
Oxygen 3.6.1

Hey all, reviving an old and seemingly dead thread :)

Just got my hands on a OP 2 and i really like it. Although i would like to do something about the camera, and having this codec is clearly one of them.

I just tried it with the original file in first post, and with the one you posted to "dom_tucc" that had oxygen 3.5.8. And with both of them, i just get stuck in boot animation.
I tried comparing the stock file i have and the custom one you made and i don't really see anything that seems to be out of place. Although i know nothing about android development or anything like that ;)
Maybe its not even possible to get it working anymore with the new update.

So my question is, is this thread still revivable? Do you (OP) still have time and want to try and help me out (and others i hope) to get this running?

I guess i might as well post my stock file in case someone else knows what is going on and what to do to get it to work.

I'm running Oxygen 3.6.1, android 6.0.1. Rooted, have a few custom things but nothing that should mess with the camera.

Cheers :)
 

Attachments