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

Hello everyone,
As we all know that oneplus 2 supports hevc codec but by default it is not used as the primary video codec. So i've modified a system file to allow the camera to record with H.265 video codec by default.
*/
* * Your warranty is NOT void. * * I'm not responsible for bricked devices, dead SD cards, * thermonuclear war, or you getting fired because the alarm app failed. Please * do some research if you have any concerns about the modification * YOU are choosing to make these modifications, and if * you point the finger at me for messing up your device, I will laugh at you. * */
Steps:-
1)Take a nandroid backup.
2) Your device is rooted.
3)Download any file explorer that has access to system files. I prefer to use 'Root Browser'.
https://play.google.com/store/apps/details?id=com.jrummy.root.browserfree
4)Download the 'media_profiles.xml' , it will be linked below. (see post 2)
5)Open File Explorer and go to /system/etc and backup the original 'media_profiles.xml' in case you wanna revert back.
6)Now copy the modified media_profiles.xml file to /system/etc and replace it with the old one.
7)set permissions to rw-r-r (0644)
8)turn off the device> boot into recovery> clear cache only
9)restart and Enjoy
Special Thanks to @64ashg for spending his precious time creating the Magisk Module. [check post 2 for download]
This mod is working on some Nougat and Oreo ROMs.
Tested on Vertex ROM, RR, Pixel Experience,LineageOS 15.1
If it doesn't work on your ROM, report below. I'll see what i can do.
For OxygenOS - It isn't working. [Testing]
If you like the mod, you are welcome. And Don't be shy to hit the like button. Feel free to share the thread but do not mirror any download files. Just redirect everyone here.

I've made 3 files depending on user requirements.
1st[H.265 codec with Stock Bitrate](File Size won't be reduce, only the codec will change.)
4k - 42 Mbits
1080p - 20 Mbits
720p - 14 Mbits
2nd[H.265 codec with 50% reduced Bitrate] Consumes less storage space and use it only for day time shots. 1080p and 720p videos might pixilate while panning through scenes.
4k - 20 Mbits
1080p - 10 Mbits
720p - 7 Mbits
3rd[(Balanced) H.265 codec with 28% reduced Bitrate] Suitable for both day and night shots.
4k at 30 Mbits [Size-205 MB/min]
1080p & 720p at 15Mbits
Link for Magisk Module.
Balanced - https://mega.nz/#!egREXayA!MyXj7ZFs_xBgIZLH5uFz6HERdLWt38ZI3bG1VOMyQMw

is quality worse, almost same or same?

chxei said:
is quality worse, almost same or same?
Click to expand...
Click to collapse
Not a huge difference. Just a 5-10 % boost in the quality. Mostly noticeable in 4k and 1080p. But the compression is great. ?

The quality and also the compression is better?

Pierre2324 said:
The quality and also the compression is better?
Click to expand...
Click to collapse
Try it and let me know. ?

tusar8 said:
Try it and let me know.
Click to expand...
Click to collapse
I tested and its the same thing..looks like it didilnt changed the file.. (Stock bitrate) i get the same filesize,

Pierre2324 said:
I tested and its the same thing..looks like it didilnt changed the file.. (Stock bitrate) i get the same filesize,
Click to expand...
Click to collapse
Obviously it will create the same file size if you use the stock bitrate. Try the 50% reduced bitrate. Compare both 4k videos of h.264 and h.265.

tusar8 said:
Obviously it will create the same file size if you use the stock bitrate. Try the 50% reduced bitrate. Compare both 4k videos of h.264 and h.265.
Click to expand...
Click to collapse
With stock bitrates why would I use h.265 over h.264?

Pierre2324 said:
With stock bitrates why would I use h.265 over h.264?
Click to expand...
Click to collapse
If you are asking such a question, it clearly means that you don't know the difference between h.264 & h.265/hevc. H.265 exports video with the same quality as h.264 but reduces the file size by 40%(it doesn't automatically do its magic). You will need to adjust the bitrate for it to work. Now if anyone wants to record 4k video with H.265 and stock bitrate which is 42 Mbits, he/she can achieve the quality of the video normally where you will need to increase the bitrate upto 60/70 using h.264 codec.

tusar8 said:
If you are asking such a question, it clearly means that you don't know the difference between h.264 & h.265/hevc. H.265 exports video with the same quality as h.264 but reduces the file size by 40%(it doesn't automatically do its magic). You will need to adjust the bitrate for it to work. Now if anyone wants to record 4k video with H.265 and stock bitrate which is 42 Mbits, he/she can achieve the quality of the video normally where you will need to increase the bitrate upto 60/70 using h.264 codec.
Click to expand...
Click to collapse
Thanks for your answer so the quality should be better if we use same bitatres?

Pierre2324 said:
Thanks for your answer so the quality should be better if we use same bitatres?
Click to expand...
Click to collapse
Definitely. I've noticed 5% boost in quality. But it isn't that great as we all know that the quality of the video depends on many things like the sensor, framerate etc. So the big question, why should we use this mod?
Basically if we need to save our precious storage. ?

tusar8 said:
Definitely. I've noticed 5% boost in quality. But it isn't that great as we all know that the quality of the video depends on many things like the sensor, framerate etc. So the big question, why should we use this mod?
Basically if we need to save our precious storage.
Click to expand...
Click to collapse
ok one last thing, the framerate is not that good on h.265? and if I flash an update do I loose the codec file I changed?

Pierre2324 said:
ok one last thing, the framerate is not that good on h.265? and if I flash an update do I loose the codec file I changed?
Click to expand...
Click to collapse
Use oxygen camera at good lighting condition, it will constantly record at 30fps but at dark it drops to 20fps to brighten the video. So i use google camera at dark to have constant 30fps . And yes, you will loose the codec if you flash an update to your rom. And if you find 50% reduced bitrate video quality degraded, you can try the Balanced Bitrate file. It is good for both day and night time shots.

I can make a magisk module from the files, if users are using magisk..
I've made the same magisk mod for my 3t for ota survival.

64ashg said:
I can make a magisk module from the files, if users are using magisk..
I've made the same magisk mod for my 3t for ota survival.
Click to expand...
Click to collapse
That would be great. :good:

tusar8 said:
That would be great. :good:
Click to expand...
Click to collapse
Gimme some time, I'll upload it here

No sound!
I followed the instructions and use media_profiles(Balanced). And I recorded videos, unfortunately there's no sound when i play the videos. Need help please.

Tony Ralte said:
I followed the instructions and use media_profiles(Balanced). And I recorded videos, unfortunately there's no sound when i play the videos. Need help please.
Click to expand...
Click to collapse
Thanks for testing the mod.
Which ROM are you using?
And send me the original 'media_profiles.xml' and 'media_codec.xml' file from /system/etc folder.

tusar8 said:
Thanks for testing the mod.
Which ROM are you using?
And send me the original 'media_profiles.xml' and 'media_codec.xml' file from /system/etc folder.
Click to expand...
Click to collapse
I am using lineage OS 14.1.
I cannot put the link of the original files
Is there any other way to send you?

Related

[MOD] 720p recording ported from Hancocks ROM

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

[MOD] Improve image/video/sound quality

Hello friends!
This is my very first work so please do not hate me.
So, simple as the title says this mod/hack don't know how to call - it increases your cameras bitRates from its limitations. For example for video recording original bitRate was 10000000 and acc audio codec rate was 128000. With this mod it improved to 20000000 and audio codec to 288000. This is maximum as its possible (as far as I know). This is because video encoder h264 supports maximum of 20000000bitRates. Also let's not forget image quality it doesn't seem to be changed a lot but still its an improvement. Increased all image encoding quality values to 99.
DONT FORGET TO MAKE NANDROID BACKUP THIS IS IMPORTANT
+ you can make a backup of your original media_profiles.xml
Flashable install
1. Download mod.zip and place to your SD card/root.
2. Reboot into recovery.
3. Clear Cache/Dalvik Cache.
4. Install Camera Mod.
5. Clear Cache/Dalvik Cache.
6. Reboot and enjoy.
I don't think wiping cache is necessary but to avoid problems its suggestible.
Manual install
1. Download media_profiles.rar extract it anywhere on your PC.
2. Push it to your system/etc (I am using root explorer so it's easy to mount R/W).
3. Obviously click yes if prompted.
4. Reboot.
-------------------------------------------------------------------------
If problems occur please be sure permission are set right which are -rw-r-r- or 644
Hope everything will work for you and you will enjoy this!
If you find any mistakes/bugs etc please fix me! :angel:
There is no benefit in increasing the audio bitrate of the video encoder above 128k, the microphone isn't good enough for it to make a difference and you are just using up unnecessary extra space on your device.
bcpk said:
There is no benefit in increasing the audio bitrate of the video encoder above 128k, the microphone isn't good enough for it to make a difference and you are just using up unnecessary extra space on your device.
Click to expand...
Click to collapse
+1 for the feedback. Interesting what others can say and if they achieved anything. Is it your knowledge talking or you actually run some tests?
http://imgur.com/py6f00L
bcpk said:
There is no benefit in increasing the audio bitrate of the video encoder above 128k, the microphone isn't good enough for it to make a difference and you are just using up unnecessary extra space on your device.
Click to expand...
Click to collapse
This is probably true. The mic is good but not that good so over 128k AAC is kind of overkill. We just need video bitrate improvements.
Overkill
eddvys said:
+1 for the feedback. Interesting what others can say and if they achieved anything. Is it your knowledge talking or you actually run some tests?
http://imgur.com/py6f00L
Click to expand...
Click to collapse
He´s just using common sense. Even the original 128 kbps was overkill for the quality you get from the mic and 288 kbps? Well, that´s just insane. Imagine that people listen to studio recordings @ 128 kbps AAC.
Edit:
Just noticed that you also increased the video bitrate to 20 Mbps. Really? We are talking about 720p videos from a mobile phone
knizmi said:
He´s just using common sense. Even the original 128 kbps was overkill for the quality you get from the mic and 288 kbps? Well, that´s just insane. Imagine that people listen to studio recordings @ 128 kbps AAC.
Edit:
Just noticed that you also increased the video bitrate to 20 Mbps. Really? We are talking about 720p videos from a mobile phone
Click to expand...
Click to collapse
Let him play around with the settings until he finds a sweet spot. This is just him experimenting right now. No need to be so negative.
CADude said:
Let him play around with the settings until he finds a sweet spot. This is just him experimenting right now. No need to be so negative.
Click to expand...
Click to collapse
I am being negative here because of " Interesting what others can say and if they achieved anything." Sorry to say that, but this is a very arrogant attitude, especially when he was replying to someone who was right. Edviss basically told him "You never achieved anything, so shut up.", while he probably doesn´t know what he is doing himself.
knizmi said:
I am being negative here because of " Interesting what others can say and if they achieved anything." Sorry to say that, but this is a very arrogant attitude, especially when he was replying to someone who was right. Edviss basically told him "You never achieved anything, so shut up.", while he probably doesn´t know what he is doing himself.
Click to expand...
Click to collapse
What are you talking about dude? Could you please show me where I was talking like that? You need to take this forum life a little more simpler. With this attitude of yours go hide better somewhere
thanks for investigating this, will check your progress now and then
Sent from my XT1032 using XDA Premium 4 mobile app
Will it work on stock ROM XT1033
Sent from my XT1033 using Tapatalk
eddvys said:
Hello friends!
This is my very first work so please do not hate me.
So, simple as the title says this mod/hack don't know how to call - it increases your cameras bitRates from its limitations. For example for video recording original bitRate was 10000000 and acc audio codec rate was 128000. With this mod it improved to 20000000 and audio codec to 288000. This is maximum as its possible (as far as I know). This is because video encoder h264 supports maximum of 20000000bitRates. Also let's not forget image quality it doesn't seem to be changed a lot but still its an improvement. Increased all image encoding quality values to 99.
DONT FORGET TO MAKE NANDROID BACKUP THIS IS IMPORTANT
+ you can make a backup of your original media_profiles.xml
Flashable install
1. Download mod.zip and place to your SD card/root.
2. Reboot into recovery.
3. Clear Cache/Dalvik Cache.
4. Install Camera Mod.
5. Clear Cache/Dalvik Cache.
6. Reboot and enjoy.
I don't think wiping cache is necessary but to avoid problems its suggestible.
Manual install
1. Download media_profiles.rar extract it anywhere on your PC.
2. Push it to your system/etc (I am using root explorer so it's easy to mount R/W).
3. Obviously click yes if prompted.
4. Reboot.
-------------------------------------------------------------------------
If problems occur please be sure permission are set right which are -rw-r-r- or 644
Hope everything will work for you and you will enjoy this!
If you find any mistakes/bugs etc please fix me! :angel:
Click to expand...
Click to collapse
Is there an upgrade possible ?
h2o64 said:
Is there an upgrade possible ?
Click to expand...
Click to collapse
I haven't got the device anymore, its really hard this way.
eddvys said:
I haven't got the device anymore, its really hard this way.
Click to expand...
Click to collapse
Oh.
That's little files. If you want a tester. Many people can do it

[Q] Anyway to reduce the video size of Android

:angel:
Is there anyway to reduce the video size of Android
You can use MX Player to see videos and change the zoom to more or less by pinching the screen, just like when viewing a picture. There is other gesture support too like changing the volume and brightness. All in all its probably the best video player for Android...
If you are by chance referring to the screen resolution to make your screen smaller for all of your Android display and not just while vieweing videos, then you need to root your phone and use an app like NOMone Resolution Changer
Thnks for replying... but besicaly I want to know that how to reduce the size of camera's video file without reduce the quality. Why Android makes a captured video file size so bigger then its quality and lenth.. Is there any patch for it ??
ansaryx said:
Thnks for replying... but besicaly I want to know that how to reduce the size of camera's video file without reduce the quality. Why Android makes a captured video file size so bigger then its quality and lenth.. Is there any patch for it ??
Click to expand...
Click to collapse
Oh well i don't know for android
But on PC you can convert the video file to smaller file size
ansaryx said:
Thnks for replying... but besicaly I want to know that how to reduce the size of camera's video file without reduce the quality. Why Android makes a captured video file size so bigger then its quality and lenth.. Is there any patch for it ??
Click to expand...
Click to collapse
Oh I see! Sorry about that haha!
There are many apps you can use for video file conversion similar to how you would do it on a PC. One such app is Video Compressor, but you can search for many on Play Store if you type in keywords like 'video file size reduce' or 'video converter' etc.
However, if you are sharing on Whatsapp then it automatically reduces the size greatly and before sending and it happens quite fast somehow as opposed to using a video converter. There is no apparent loss of quality as long as you are seeing that video on a phone screen I suppose. If I want to share the video on something other than Whatsapp, what I usually do is Whatsapp it to myself to another phone or to my brother's/friend's phone and then share that file.
I really think Whatsapp has a very good and fast video converter built into their app which they should offer separately!
steps to reduce the video size
1. After installing Video Converter Android on your device, launch it and import the video you would like to shrink. After you select the video, tap the Convert option at the bottom of the screen.
2.Select Manual profile to convert the video and reduce the resolution, bitrate and FPS of the video. The recommended settings while reducing the size of the video is 176×144, 800 and 23.98 respectively. Leave every other settings as it is and convert the video.
The tool will process the video and reduce its size considerably. If the receiver will view the video on the device itself, he will hardly notice the reduced quality. After the conversion is complete you will see the video in the Android Gallery from where you can share it on WhatsApp or at any other social network.
Thank you all for your helpful suggestions :angel::angel::angel::angel:
ishaang
Click to expand...
Click to collapse
skyhot004
Click to expand...
Click to collapse
alisnikol
Click to expand...
Click to collapse

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

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

[MAGISK] OP5T OOS oreo HEVC RECORDING 13.03.2018 updated

it enables hevc video recording, and he-aac audio recording.
updated versions: increased audio bitrate, it records around 125kbps
there are 3 version, pick whatever you want (in first version i uploaded, there was only 24 megabit)
personally i use 24 megabit version on my phone
for a normal user i recommend 24megabit, very little quality loss, unless you zoom in and compare pixel-to-pixel, you wouldn't notice, also i couldn't believe but in some cases it records better than 42 megabit (original oos bitrate), and faster upload to youtube etc.
you can also select 42 megabit, it records better than stock h264, and if you render your videos, it should be a better option, since you will compress it more. or if you just want h265 choose this because i haven't touched bitrates except audio
32 megabit version is for option, it should you give balance between quality and size, it seems okay.
24 megabit version
720p 8mbps
1080p 11mbps
[email protected] 22mbps
"2k" 12mbps
4k 24mbps
32 megabit version
720p 10mbps
1080p 15mbps
[email protected] 30mbps
"2k" 16mbps
4k 32mbps
42 megabit version (this is phone's original bitrate)
720p 14mbps
1080p 20mbps
[email protected] 40mbps
"2k" 20mbps
4k 42mbps
based and working on oos 5.0.2 to 5.1.0 incl. OB6 (same base file in all of them) op5t, it may work on 5 but im not sure, try it
not supporting any rom else than oos oreo but you're welcome to try and post results
720p,slomo,"fastmo?",1080p,60fps,4k,front720,front1080, everthing records with hevc and heaac
to install this mod USE MAGISK 15+
if you used my old version and want to go stock, download stockmediaprofiles.zip and copy the file inside to system/vendor/etc
and i recommend open camera, you can record 4k videos on front camera and it's quality is REALLY better than oneplus' camera app's 1080p, enable camera2 api and select 4k in video recording settings while on front camera.
also you can adjust bitrate of video (up to 100mbps) and jpeg quality of photo, it is a really good app.
https://play.google.com/store/apps/details?id=net.sourceforge.opencamera
Didn't work for me, got bootloop on 5.0.3.
geminium said:
Didn't work for me, got bootloop on 5.0.3.
Click to expand...
Click to collapse
Very strange, it should not have that kind of error because its not that critical file, at most it can mess with your video recording and crash camera using apps, i dont know why this happened to you, restore original file with twrp, if you dont see system files mount system.
It works just fine. I made an Magisk module only for my use, but can't share it since I used somebody else's template.
Thank you OP for the work.
Adnan008 said:
Very strange, it should not have that kind of error because its not that critical file, at most it can mess with your video recording and crash camera using apps, i dont know why this happened to you, restore original file with twrp, if you dont see system files mount system.
Click to expand...
Click to collapse
I actually was surprised as well. It's supposed to be okay...
Restored it in TWRP right away.
Will the 5 camera app work on 5t?
can it losses the original clarity or same as original after applying this mod...
Sohail.143 said:
can it losses the original clarity or same as original after applying this mod...
Click to expand...
Click to collapse
i haven't tried so i have no idea, you should try it, compare it then post results, if you say there is quality loss then i'll make original bitrate version :good:
Boot loop for me as well on oos 5.0.3
g96818 said:
Boot loop for me as well on oos 5.0.3
Click to expand...
Click to collapse
Do you use magisk? If so is "preserve avb2 dm verity" checked? If you using supersu please use magisk and uncheck that option.
waiting for your feedback
Adnan008 said:
Do you use magisk? If so is "preserve avb2 dm verity" checked? If you using supersu please use magisk and uncheck that option.
waiting for your feedback
Click to expand...
Click to collapse
I am using magisk and that option is unchecked
g96818 said:
I am using magisk and that option is unchecked
Click to expand...
Click to collapse
Im really sorry i have no idea why this is happening :crying:
Adnan008 said:
Im really sorry i have no idea why this is happening :crying:
Click to expand...
Click to collapse
no worries. BTW how long did you wait for the restart after replacing the file?
g96818 said:
no worries. BTW how long did you wait for the restart after replacing the file?
Click to expand...
Click to collapse
nothing specific 5-10 seconds maybe?
also im using fx file explorer and its root addon, i dont know but maybe it does matter
https://play.google.com/store/apps/details?id=nextapp.fx
https://play.google.com/store/apps/details?id=nextapp.fx.rr
Adnan008 said:
nothing specific 5-10 seconds maybe?
also im using fx file explorer and its root addon, i dont know but maybe it does matter
https://play.google.com/store/apps/details?id=nextapp.fx
https://play.google.com/store/apps/details?id=nextapp.fx.rr
Click to expand...
Click to collapse
I don't think that matters. Did you install the other magisk version before tweaking and releasing yours? I see the magisk version replaces more files on top of yours
https://forum.xda-developers.com/apps/magisk/module-hevc-60fps-slomo-gcam-op3t-5-t3666287
g96818 said:
I don't think that matters. Did you install the other magisk version before tweaking and releasing yours? I see the magisk version replaces more files on top of yours
https://forum.xda-developers.com/apps/magisk/module-hevc-60fps-slomo-gcam-op3t-5-t3666287
Click to expand...
Click to collapse
no, i installed for the 5 and when it didnt work i uninstalled it and made myself
In video recording sound is not being recorded.
Romin Yadav said:
In video recording sound is not being recorded.
Click to expand...
Click to collapse
i tried original oos camera, camera m mod and open camera and audio recording is functioning fine, using oos 5.0.3 no custom rom
also tried it with stock kernel and blu.spark r100 is fine, dont know other kernels
what are you using?
added magisk module, so try it! if you dont like it you can uninstall under a minute
Working perfectly ob4 thanks

Categories

Resources