[MOD][FIX] Audio Bitrate Increase For Mi 8 - Xiaomi Mi 8 Themes, Apps, and Mods

Disclaimer :
Code:
I am not responsible for any damage to your device!
Use this mod at your own risk!
What's this?
This mod increases the audio bitrate from a disgraceful 96kbps to a respectable 320kbps for recording. Thus, giving a richer, more pleasing audio quality.
Still confused? Click here for a better explanation
Requirements :
- A rooted phone with magisk installed
- An opened mind (important!)
Contributors :
@Jt380p
@Gustavo RD78
 @Kapirotesco
* NOTES * (READ) :
- Not all ROMs are compatible with this mod, you might end up in a bootloop. YOU HAVE BEEN WARNED!
Download :
https://drive.google.com/file/d/1Ai6ZR3z2Y5TW5mqmpOiiECkTQDFYIOLe/view?usp=sharing (Flash with magisk manager)
Source :
https://forum.xda-developers.com/Mi-9/themes/magisk-audio-bitrate-increase-t3927810
Audio files provided by @Kapirotesco
Thanks to :
 @Kapirotesco for providing the required file(s)
@topjohnwu for Magisk
Created : 11/11/2019
Last updated : 24/11/2019

CHANGELOG :
- Version 2 (24/11/19) :
---> Mod is now based on MIUI 11. File is provided by @Kapirotesco

Bootloop on Revenge OS android 10.

This question wasn't answered on the POCO thread but uh... Will this work on AOSP ROMs? Which app will the bitrate affect or is it system wide? How about third party audio recorders or in call mic? How about GCAM or ANXcamera?
Thanks
Sent from my MI 8 using Tapatalk

b4mb1_ said:
This question wasn't answered on the POCO thread but uh... Will this work on AOSP ROMs? Which app will the bitrate affect or is it system wide? How about third party audio recorders or in call mic? How about GCAM or ANXcamera?
Thanks
Sent from my MI 8 using Tapatalk
Click to expand...
Click to collapse
I dont know what question youre talking about, but anyway, this should be compatible with any rom because it uses the same device tree. UNLESS, the device tree has been updated by some developers and I havent known about it. About the apps, most camera apps will take advantage of this, especially MIUI, Im not sure about ANX camera as I dont know if it has any setting that bypass the limitations. Calls should be the same because its happening live. I reckon the built in MIUI audio recorder wouldnt take advantage of this as you can only choose the setting up to 192kbps. Third-party recorders, again I am not sure, it depends whether the developer of the app decides to follow the device limitations or bypass it. Gcam apps, again, I dont know, it depends on the developer, however, most of them should take advantage of this. Long story short, it is system-wide. Its kinda hard to explain this in context, so bare with me.

installed your module and seems to give me a good improvement in audio quality. I usually make videos of sound systems with high volume power, and always distorts the audio when playing subwoofers, with the mod had a little improvement but at high volumes is still present, I'm using the recommended version, I haven't tested the other one yet.

Gustavo RD78 said:
installed your module and seems to give me a good improvement in audio quality. I usually make videos of sound systems with high volume power, and always distorts the audio when playing subwoofers, with the mod had a little improvement but at high volumes is still present, I'm using the recommended version, I haven't tested the other one yet.
Click to expand...
Click to collapse
If it is still present, its probably a hardware limitation. Its probably why Xiaomi kept it at 96kbps in the first place.

Report on PE Q?

Work on Pixel Rom r8(Android10) ?

bootloops on syberia os

Jt380p said:
I need someone to give me the stock file from MIUI 11, I'm starting to have my suspicions.
Click to expand...
Click to collapse
Which file do you need?

Bootloop on HavocOs Android Q

Thank you, but the video sound was very low after installation. pixelrom4

Jt380p said:
So I guess no one has the file for MIUI 11 :/
Click to expand...
Click to collapse
From Xiaomi eu stable china miui 11.0.4

* -- UPDATE -- *
Download v2 in OP
Changelog :
- Mod is now based on MIUI 11 provided by @Kapirotesco
NOTES (Pls read) :
- Not all ROMs are compatible with the mod. You might end up in a bootloop. YOU HAVE BEEN WARNED!

Thanks bro

Thanks, works good on latest xiaomi.eu beta.

Thread locked on OP request.
Funk Wizard
Forum Moderator

Related

[Guide] How to Make Viper4Android work on Lollipop

Some people can't make viper4android work on the new Lollipop update so I'm doing a simple guide:
Requirements:
-Root
-Busybox
-Custom recovery
Installation:
1.- Deactivate NuPlayer in developer options.
2.- Deactivate any other equalizer.
3.- Set selinux to permissive with an app like this one https://play.google.com/store/apps/details?id=com.mrbimc.selinux&hl=en
4- Install through recovery the zip located below then reboot.
5.- Open viper4android and install the driver you want and then reboot.
6.- Done, enjoy high quality sound.
these are the only versions of audio_effects and audio_policy i found that work with streaming apps. can you elaborate a bit more about them where did you find them or maybe you have an idea what was modified in them in order for streaming audio to work? thanks!
Good job! But how can I increase the power of the speaker, like in KitKat using Mixer app, but in Lollipop?
mannequin said:
these are the only versions of audio_effects and audio_policy i found that work with streaming apps. can you elaborate a bit more about them where did you find them or maybe you have an idea what was modified in them in order for streaming audio to work? thanks!
Click to expand...
Click to collapse
+1
I use those 2 files from the zip file to make v4a works for poweramp
My previous v4a installation only works on stock music & video player, now works for poweramp and mx player too.
Another note, disabling NUplayer not necessary for me...
Thanks again for this awesome guide :good:
Edit: I found using stock audio_policy.conf is possible to by remove this part:
Deep buffer
deep_buffer {
sampling_rates 44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_FM|AUDIO_DEVICE_OUT_FM_TX
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
}
Note: removing compress offload not necessary, as stated in dorimanx lp kernel thread. So removing deep buffer part only is enough.
didhiy said:
Edit: I found using stock audio_policy.conf is possible to by removing this 2 sections:
Click to expand...
Click to collapse
do you mean just by removing these 2 sections stock audio_policy and audio_effects can be used instead?
btw, these two .conf files from OP zip break screen casting functionality of chromecast so i'm wondering if your solution will work.
edit: i think it does!
Thanks so much, it really helped
didhiy said:
+1
I use those 2 files from the zip file to make v4a works for poweramp
My previous v4a installation only works on stock music & video player, now works for poweramp and mx player too.
Another note, disabling NUplayer not necessary for me...
Thanks again for this awesome guide :good:
Edit: I found using stock audio_policy.conf is possible to by removing this 2 sections:
1. Compress offload
compress_offload {
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000|64000|88200|96000|176400|192000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AAC|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
}
2. Deep buffer
deep_buffer {
sampling_rates 44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_FM|AUDIO_DEVICE_OUT_FM_TX
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
}
Click to expand...
Click to collapse
So, i've been having this huge problem on Nexus 7 2013 w\power amp and 5.1.1 cm12.1 and getting convolver and irs files to work properly.
two questions,
are your irs files working?
also, is the audio policy config on this thread flashable or pushable?
masri1987 said:
So, i've been having this huge problem on Nexus 7 2013 w\power amp and 5.1.1 cm12.1 and getting convolver and irs files to work properly.
two questions,
are your irs files working?
also, is the audio policy config on this thread flashable or pushable?
Click to expand...
Click to collapse
No problem with irs & convolver on my D802, both working normally. I don't know for other devices.
The file from op is flashable from recovery. You can try that.
Just for comparison, I use other methods, I installing v4a manually then install the drivers from the app. Imho audio effect config will change when v4a installing driver. Most useful part from this thread for me only the audio policy config that solve my problem make other apps like poweramp work with v4a. Then I found that audio policy config from D802 stock rom can be use too by removing 2 parts. I believe this solution is better because I only lost 2 features from stock rom, not as much as the policy config from op.
didhiy said:
No problem with irs & convolver on my D802, both working normally. I don't know for other devices.
The file from op is flashable from recovery. You can try that.
Just for comparison, I use other methods, I installing v4a manually then install the drivers from the app. Imho audio effect config will change when v4a installing driver. Most useful part from this thread for me only the audio policy config that solve my problem make other apps like poweramp work with v4a. Then I found that audio policy config from D802 stock rom can be use too by removing 2 parts. I believe this solution is better because I only lost 2 features from stock rom, not as much as the policy config from op.
Click to expand...
Click to collapse
Yeah, i flashed the file above and did everything properly, but IRS convolver files aren't exactly being 'used', not all irs files are working properly.
Should i be doing anything to the audio policy config file ? I use power amp too (although it did tell me it was processing under power amp),
IRS is crucial to me because i use my N7 2013 in my car as my in-dash.
masri1987 said:
Yeah, i flashed the file above and did everything properly, but IRS convolver files aren't exactly being 'used', not all irs files are working properly.
Should i be doing anything to the audio policy config file ? I use power amp too (although it did tell me it was processing under power amp),
IRS is crucial to me because i use my N7 2013 in my car as my in-dash.
Click to expand...
Click to collapse
I think that's unrelated to the audio policy config thing, this thread already prove the way v4a working for D802. Solved the major problem why v4a only works for stock music & video player.
I suggest you to ask in the v4a main thread or maybe ask the dev that creates your favorite irs that didn't work. I only use 2 irs files & both working normally.
this is kind of off topic but perhaps somebody is experiencing the same. i'm having a weird audio issue on LP which wasn't present on KK in any way and not V4A related.
no matter what the audio source is (playing mp3s or lossless, tons of EQ on or off, YouTube video, game, video, etc) there's a totally random, short sound corruption that sounds like garbled, sped up noise. it's impossible to trace any pattern when and why does it appear and perhaps it's related to radio since it tends to appear more when the signal is switching from Wi-Fi to cellular or cellular signal comes online, etc but not necessarily. i tried to look at the logs and don't see anything suspicious regarding sound there at all.
there's also a theory on other devices forums that Qualcomm's mpdecision is the cause since it always leaves only one core for the sound online and on LP apparently you need more. that doesn't seem right, however, since it does happen when the phone is doing a lot too and not just with the screen off.
any ideas are welcomed.
mannequin said:
this is kind of off topic but perhaps somebody is experiencing the same. i'm having a weird audio issue on LP which wasn't present on KK in any way and not V4A related.
no matter what the audio source is (playing mp3s or lossless, tons of EQ on or off, YouTube video, game, video, etc) there's a totally random, short sound corruption that sounds like garbled, sped up noise. it's impossible to trace any pattern when and why does it appear and perhaps it's related to radio since it tends to appear more when the signal is switching from Wi-Fi to cellular or cellular signal comes online, etc but not necessarily. i tried to look at the logs and don't see anything suspicious regarding sound there at all.
there's also a theory on other devices forums that Qualcomm's mpdecision is the cause since it always leaves only one core for the sound online and on LP apparently you need more. that doesn't seem right, however, since it does happen when the phone is doing a lot too and not just with the screen off.
any ideas are welcomed.
Click to expand...
Click to collapse
You can try if the theory was right or wrong by temporary disabling mpdecision. I think the setting is in /mpt/enable file. Change the value from 1 to 0, than compared the results. Don't forget to enable it again by changing the value on that file back to 1. If still no different, I guess the theory was invalid.
doesnt work for me I flashed the zip and then got "viper 4 Android stopped working" on Start, now I cannot install it in the normal way. Every Reboot that "viper 4 Android stopped working" thing comes and idk what to do
didhiy said:
+1
I use those 2 files from the zip file to make v4a works for poweramp
My previous v4a installation only works on stock music & video player, now works for poweramp and mx player too.
Another note, disabling NUplayer not necessary for me...
Thanks again for this awesome guide :good:
Edit: I found using stock audio_policy.conf is possible to by removing this 2 sections:
1. Compress offload
compress_offload {
sampling_rates 8000|11025|12000|16000|22050|24000|32000|44100|48000|64000|88200|96000|176400|192000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_MP3|AUDIO_FORMAT_AAC|AUDIO_FORMAT_PCM_24_BIT_OFFLOAD
devices AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE
flags AUDIO_OUTPUT_FLAG_DIRECT|AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD|AUDIO_OUTPUT_FLAG_NON_BLOCKING
}
2. Deep buffer
deep_buffer {
sampling_rates 44100|48000
channel_masks AUDIO_CHANNEL_OUT_STEREO
formats AUDIO_FORMAT_PCM_16_BIT
devices AUDIO_DEVICE_OUT_SPEAKER|AUDIO_DEVICE_OUT_EARPIECE|AUDIO_DEVICE_OUT_WIRED_HEADSET|AUDIO_DEVICE_OUT_WIRED_HEADPHONE|AUDIO_DEVICE_OUT_ALL_SCO|AUDIO_DEVICE_OUT_AUX_DIGITAL|AUDIO_DEVICE_OUT_PROXY|AUDIO_DEVICE_OUT_ANLG_DOCK_HEADSET|AUDIO_DEVICE_OUT_FM|AUDIO_DEVICE_OUT_FM_TX
flags AUDIO_OUTPUT_FLAG_DEEP_BUFFER
}
Click to expand...
Click to collapse
OMG! thanks.
mannequin said:
this is kind of off topic but perhaps somebody is experiencing the same. i'm having a weird audio issue on LP which wasn't present on KK in any way and not V4A related.
no matter what the audio source is (playing mp3s or lossless, tons of EQ on or off, YouTube video, game, video, etc) there's a totally random, short sound corruption that sounds like garbled, sped up noise. it's impossible to trace any pattern when and why does it appear and perhaps it's related to radio since it tends to appear more when the signal is switching from Wi-Fi to cellular or cellular signal comes online, etc but not necessarily. i tried to look at the logs and don't see anything suspicious regarding sound there at all.
there's also a theory on other devices forums that Qualcomm's mpdecision is the cause since it always leaves only one core for the sound online and on LP apparently you need more. that doesn't seem right, however, since it does happen when the phone is doing a lot too and not just with the screen off.
any ideas are welcomed.
Click to expand...
Click to collapse
Iam having the exact same issue also convolver are not working.
gozzaa said:
Iam having the exact same issue also convolver are not working.
Click to expand...
Click to collapse
after much experimenting i can confirm that the only way to fix that issue is to always keep 2 or more CPU cores online, nothing else solves it at all.
with stock kernel the only option is to disable mpdecision and enable "multicore power saving" and "soc temperature throttle" for further heat control because without mpdecision you'll be keeping all 4 cores online.
mannequin said:
after much experimenting i can confirm that the only way to fix that issue is to always keep 2 or more CPU cores online, nothing else solves it at all.
with stock kernel the only option is to disable mpdecision and enable "multicore power saving" and "soc temperature throttle" for further heat control because without mpdecision you'll be keeping all 4 cores online.
Click to expand...
Click to collapse
Ah i will try that, Iam using dorimanx.
Did you get convolvers to work? They dont have any effect for me. Also the effect of viper4android is very small on lollipop. I can hear a difference but its nothing compared to kitkat
gozzaa said:
Ah i will try that, Iam using dorimanx.
Did you get convolvers to work? They dont have any effect for me. Also the effect of viper4android is very small on lollipop. I can hear a difference but its nothing compared to kitkat
Click to expand...
Click to collapse
I had someone trouble getting convolvers to work as well. Converting viper to a user app with titanium uninstalling the driver then reconverting it to a system app worked for me.
Manbot27 said:
I had someone trouble getting convolvers to work as well. Converting viper to a user app with titanium uninstalling the driver then reconverting it to a system app worked for me.
Click to expand...
Click to collapse
after converting back to system app you install the drivers again or when its user app?
Edit: it worked! Iam using it as user app and its working flawless! Kudos to you
gozzaa said:
Ah i will try that, Iam using dorimanx.
Did you get convolvers to work? They dont have any effect for me. Also the effect of viper4android is very small on lollipop. I can hear a difference but its nothing compared to kitkat
Click to expand...
Click to collapse
obviously using a custom kernel gives way more options to keep those 2 cores online in less destructive manner.
no problems with V4A here, everything works exactly like on KK. like mentioned above the key is to use it as a system app, modify selinux mode and edit audio policies files.

[Root] Camera mod for Moto X4.

This is a mod i have been using by quite some time, thought i should share it with other users of Moto x4. it's mostly made by @defcomg and i have only done xml and module part. you can see this has 4032x 2268 video support, it's very useful as you can record 2268p video and use google photos app's video stabilization on it to get stabilized 4k video.this produces much better 4k stabilized videos because you have 5% more resolution to work on compared to using it on normal 2160p video.
Features:
1: 2268p video mode for back camera.
2. 4k video mode for front camera.
3. 16mp mode front cam support for other camera apps.
4. Increased audio and video bitrate.
5. 1080p30/60fps hevc video support.
Requirements:
1: Magisk v16 or later.(so obviously it needs bootloader unlocked)
2: FreeDCam camera app play-store link
How to : -
1: Just install Enhance_MOTO_X4_camera.zip as a module in MagiskManager and reboot.
2: Open FreeDCam take a picture (so that it can create a freedcam folder otherwise you will get crashes in video mode) and follow attached screenshots to setup 2268p profile.
Credits: - @defcomg Donation Link .
Download : -
1. Enhance_MOTO_X4_camera.zip
2. Camera_ MX (incase someone wants fully working gcam)
13-14 downloads but not a single comment on how bad/good/working/not working it is ? this community is really dead lol.
Can I use this module on z2 force?
darthxa said:
Can I use this module on z2 force?
Click to expand...
Click to collapse
nope. it's only for X4.
Hi,
It is possible to use it when the photo is rooted using supersu ?
Thank you.
bibiboss said:
Hi,
It is possible to use it when the photo is rooted using supersu ?
Thank you.
Click to expand...
Click to collapse
magisk module doesn't work with supersu, so no.
This is great! Trying to find a way to get less compression in photos, just installed and poking around!
How does this compare to the various Gcam mods out there? Does this lose any features from the stock camera? Does it improve shutter speed?
Zarxrax said:
How does this compare to the various Gcam mods out there? Does this lose any features from the stock camera? Does it improve shutter speed?
Click to expand...
Click to collapse
this mod doesn't remove anything, only adds the features stated in op.
So does this improve the moto camera or just provide a better alternative? Also is this mod just for video improvement or photos as well. The Moto X4 camera is very disappointing to say the least. I have been using a modded version of the GCam and it is much faster and better quality than the moto camera but features like the wide angle are sacrificed.
Works Excellent...thanks...
SchmilK said:
This is great! Trying to find a way to get less compression in photos, just installed and poking around!
Click to expand...
Click to collapse
can you share some 4k footage from the front camera with open camera app from the play store? see i'm trying to start a youtube channel and i want to record from open camera because of its amazing mono mode for the audio.. also share some images from arnova's gcam with front 16mp if u can.. i will highly appreciate it! ??
---------- Post added at 11:41 AM ---------- Previous post was at 11:28 AM ----------
kraatus90 said:
this mod doesn't remove anything, only adds the features stated in op.
Click to expand...
Click to collapse
can open camera app from the play store utilize the whole front 16mp after this mod? if yes then can you please share a sample footage with me? i really need to know this for my youtube channel but i'm skeptical on rooting just for testing out this one thing.. i'd really appreciate your help if you've got some time.. thanks! ??
It does not work in Los16 ...
kraatus90 said:
This is a mod i have been using by quite some time, thought i should share it with other users of Moto x4.
Click to expand...
Click to collapse
Is it possible to use 16MP on GCam after flashing this module?
kraatus90 said:
13-14 downloads but not a single comment on how bad/good/working/not working it is ? this community is really dead lol.
Click to expand...
Click to collapse
Pls share on telegram group as well people are active on telegram than xda nowadays
No Pie support
Doesn't work on stock Pie (bootloader unlocked, magisk installed). After installing, all cameras just crash.
noone4nothing said:
Doesn't work on stock Pie (bootloader unlocked, magisk installed). After installing, all cameras just crash.
Click to expand...
Click to collapse
Unfortunately this does not work on Android 9.
Sent from my Moto X4 using XDA Labs
MotoX4Custom said:
Unfortunately this does not work on Android 9.
Sent from my Moto X4 using XDA Labs
Click to expand...
Click to collapse
Would it be possible to port it to Pie?
By the way, if anyone is wondering, this mod works fine on Oreo 8.1 as well as 8.0.
noone4nothing said:
Would it be possible to port it to Pie?
By the way, if anyone is wondering, this mod works fine on Oreo 8.1 as well as 8.0.
Click to expand...
Click to collapse
I think it would be good if it would be ported for pie. But I'm not a developer and unfortunately I can not. I hope somebody does it.

MysticBlaze347's Cam Mod for V20 - Piggyback Magisk Style - [Updated- 5/28/19] Final

...SCROLL DOWN FOR UPDATE...
Here is a Camera Mod for the V20. I am pretty sure it may work with all varients.
Works on Nougat 7.0, not sure about others.
This Magisk Module Enables your Cam to record at TOP QUALITY!
- 4K @ 100Mbps / Audio @ 420Kbps
...all systemlessly.
----OR:----
There is Now another as well (the "v.2" )for 75Mbps instead of 100Mbps for those that feel 100Mbps is not in "Cam-Reality" needed for top quailty. Also takes less storage space.. All in all, you decide.
Enjoy
----------Update 2/22/19----------
Here are two more Magisk Modules I created that allow a difference between 100Mbps & 75 Mbps per version. Both include some new mods such as enhanced codecs and more that are better decribed in per module description. These versions that have these changes are "v.3" (100 Mbps + other mods) & "v.4" (75 Mbps + other mods)
----------Update (5/28/19) {By request }
This new v.5 has "75-76Mbps for "Manual Cam mode" now. Shows 64Mbps in cam, but is 75-76Mbps in details. This however applies 75-76Mbps to all/everything in cam. Only way I could get it to work. Also might break "Steady Recording" if toggled on.
Enjoy and thank you for using my Magisk based Mods
Thanks for the mod! I have to ask, does your slow-mo still work in the stock cam with this mod?
There was a media_profiles file that was floating around somewhere in the V20 threads, but it made slow-mo more of a stop motion. Thinking it had something to do with FPS or something.
jl10101 said:
Thanks for the mod! I have to ask, does your slow-mo still work in the stock cam with this mod?
There was a media_profiles file that was floating around somewhere in the V20 threads, but it made slow-mo more of a stop motion. Thinking it had something to do with FPS or something.
Click to expand...
Click to collapse
No prob . When I tested, all extra features worked.
Slowmo still has no audio when slowed in viewing though because of lg dumb decision on that.
New module choice added
i95swervin said:
I'll check this out later today thanks for sharing @Mysticblaze347
Click to expand...
Click to collapse
I do what I can.
Mysticblaze347 said:
I do what I can.
Click to expand...
Click to collapse
The camera app still shows 52mbps is it at 75 and just not showing correctly.
aygross1929 said:
The camera app still shows 52mbps is it at 75 and just not showing correctly.
Click to expand...
Click to collapse
I'm on stock cam..V20/V30 cams. Not sure what cam u are on. I tested the mods and they both work.
This is the 75Mbps one. Bitrate shows via vidtrim app. Also the 100Mbps. Also want to point out that this is tested in Auto mode in stock V20/V30 cam apps, not Manual or Special Modes.
New Final Update in main download area of this thread.
Will this work on Resurrection Remix or is this mod only for stock based ROMS?
•Vanilla• said:
Will this work on Resurrection Remix or is this mod only for stock based ROMS?
Click to expand...
Click to collapse
I can only varify for stock based. It might work for RR. Just do a backup and a then test it. Might work. I just can't test because I'm on stock based.
Hello, thanks for the work. The mod lets me shoot in 420Kbs aac audio but nothing changes in video. Still in 64Mbps 4k 30fps.
I'm using the camera improvements mods by @helf. I don't know if these are incompatible with your mod, @Mysticblaze347
Thank you
Sorry, I realized 100Mbps is in Auto video mode. Any chance to have 100Mbps in Manual Mode? THANK YOU
quearte said:
Sorry, I realized 100Mbps is in Auto video mode. Any chance to have 100Mbps in Manual Mode? THANK YOU
Click to expand...
Click to collapse
Haven't been able to figure out for that yet. If I do I will update.
100 Mbps is kinda overkill anyway. I personally use the 75. But its user decided ?
quearte said:
Hello, thanks for the work. The mod lets me shoot in 420Kbs aac audio but nothing changes in video. Still in 64Mbps 4k 30fps.
I'm using the camera improvements mods by @helf. I don't know if these are incompatible with your mod, @Mysticblaze347
Thank you
Click to expand...
Click to collapse
The helf mods only allow 75mbps that I am aware of from testing before
Mysticblaze347 said:
The helf mods only allow 75mbps that I am aware of from testing before
Click to expand...
Click to collapse
Nope, the helf mods save 64Mbps manual videos. As stock.
quearte said:
Nope, the helf mods save 64Mbps manual videos. As stock.
Click to expand...
Click to collapse
Sorry, ment 75 max allowed with his mod for auto mode. Manual mode uses some other form for bitrate as to why these mods so far don't change for manual mode. I have yet to find what and why. Maybe one day I or someone will figure out as to why.
I have not adjusted anything related to bitrates etc with mine since that is generally just in the media profile configs.
I am, however, working on increasing the slo-mo frame rate, enabling 4MP 1080P etc. So these higher bitrates will help a LOT
Do you care if I integrate these with my mod @mystic?
I have had a rough 6 months so have been MIA on here but things are getting back to normal so I hope to finally have another release out with official oreo support.
helf said:
I have not adjusted anything related to bitrates etc with mine since that is generally just in the media profile configs.
I am, however, working on increasing the slo-mo frame rate, enabling 4MP 1080P etc. So these higher bitrates will help a LOT
Do you care if I integrate these with my mod @mystic?
I have had a rough 6 months so have been MIA on here but things are getting back to normal so I hope to finally have another release out with official oreo support.
Click to expand...
Click to collapse
Permission granted ?. I was wondering something. Do you have a change log for your last two Nougat downloadable mods?. I would like to use, but seen last one talking HDR video removed ect. That kinda stopped me because I do HDR converting via Auto or Cine-log on V30 port (if I remember to flip). I can't go to Oreo because I'm on ls997. Root is a no go after Nougat for this. The Cine-log mod had a odd greenish hue on my end.
Sorry for the long reply.
Mysticblaze347 said:
Permission granted ?. I was wondering something. Do you have a change log for your last two Nougat downloadable mods?. I would like to use, but seen last one talking HDR video removed ect. That kinda stopped me because I do HDR converting via Auto or Cine-log on V30 port (if I remember to flip). I can't go to Oreo because I'm on ls997. Root is a no go after Nougat for this. The Cine-log mod had a odd greenish hue on my end.
Sorry for the long reply.
Click to expand...
Click to collapse
Sure I'll do that tomorrow. I'm also on an ls997 so well be on nougat forever. Which, tbh, I'm fine with.
Also, thanks
Cinelog *will* have an odd hue as it is logarithmic gamma instead of linear. It's only for use with editing. Otherwise it wont look right.
helf said:
Sure I'll do that tomorrow. I'm also on an ls997 so well be on nougat forever. Which, tbh, I'm fine with.
Also, thanks
Cinelog *will* have an odd hue as it is logarithmic gamma instead of linear. It's only for use with editing. Otherwise it wont look right.
Click to expand...
Click to collapse
Looking forward to checking out new update as well, if able for Nougat. Unless you ment it will also support Oreo. Either way ?.

[MOD][FIX] Audio Bitrate Increase For Poco F1 (320, 960kbps)

Disclaimer :
Code:
I am not responsible for any damage to your device!
Use this mod at your own risk!
What's this?
This mod increases the audio bitrate on video recording from a disgraceful 96kbps to a respectable 320kbps and 960kbps 6-way channel. Thus, giving a richer, more pleasing audio quality.
Still confused? Click here for a better explanation
Requirements :
- A rooted phone with magisk installed
- An opened mind (important!)
Contributors :
@Jt380p
@viv29
@sldig
@Dearminder
* NOTES * (READ) :
- Not all ROMs are compatible with this mod, you might end up in a bootloop. YOU HAVE BEEN WARNED!
Download :
__________________________________________
** RECOMMENDED **
320kbps v2 :
https://drive.google.com/file/d/179n4DMHWpoDo3B-7flloXV8RDDiXhKMs/view?usp=sharing
__________________________________________
** EXPERIMENTAL **
960kbps 6-way channel v2 :
https://drive.google.com/file/d/1n4w0w3UDJ8595QpakSmUUGuA-5YAyfRa/view?usp=sharing
__________________________________________
Instructions :
- Flash with Magisk Manager
Source :
https://forum.xda-developers.com/Mi-9/themes/magisk-audio-bitrate-increase-t3927810
Audio files provided by @sldig
Thanks to :
@Dearminder for helping me troubleshoot bootloops in specific ROMs
@topjohnwu for Magisk
Created : 10/11/2019
Last updated : 15/11/2019
CHANGELOG :
- Version 2 (15/11/19) :
---> Mod is now based on MIUI 11. File is provided by @sldig
Does this work on mui 11?
How I check if its work?
install with twrp pr magisk?
How to install??
Miui11 ??
Custom rom??
Android 9??
Android 10??
TGDgr8est said:
Does this work on mui 11?
Click to expand...
Click to collapse
It should lol
Alvian_P said:
How I check if its work?
Click to expand...
Click to collapse
- Use your ears
- Import to your PC and check audio bitrate under properties
AsusZenFone3Deluxe said:
install with twrp pr magisk?
Click to expand...
Click to collapse
Magisk. Thanks for reminding me, i forgot to mention it in the thread ?
But what does it do? Where is this quality? In Video recording (miui cam or gcam too?) or just microphone? Can you provide more info?
Dearminder said:
But what does it do? Where is this quality? In Video recording (miui cam or gcam too?) or just microphone? Can you provide more info?
Click to expand...
Click to collapse
Its pretty much self-explanatory. The out-of-the-box limit is 192Kbps. In video recording, Xiaomi limits the audio bitrate to 96Kbps (sometimes 156Kbps), which makes the phone compress the amount of detail in audio to 96Kbps, which is why in loud environments, the audio gets muted or sound distorted because its compressed to 96Kbps. 320Kbps allows the phone to NOT compress the audio as much, making the audio quality richer, and life-like. The "kbps" stands for 'kilobits per second', which means in every 1 second of an audio clip, the file would be 96Kb. So, if you record 1 minute of an audio clip, the size would be 5760Kb, or 0.72MB. In the same situation, if you use 320Kbps of audio, and recording 1 minute of an audio clip, the file would be 19200Kb, or 2.4MB. The rule of thumb is, the higher the number, the better the detail. Same "principle" applies to video, if you watch a video at 240p, the quality would be s**t, but if you watch it at 2160p (4K), the quality would be magnificant, the size of the video would also be magnificant XD. Hope this makes everything clear. If your still confused, just ask. I wont steal your Fortnite skins lol
Jt380p said:
Its pretty much self-explanatory. The out-of-the-box limit is 192Kbps. In video recording, Xiaomi limits the audio bitrate to 96Kbps (sometimes 156Kbps), which makes the phone compress the amount of detail in audio to 96Kbps, which is why in loud environments, the audio gets muted or sound distorted because its compressed to 96Kbps. 320Kbps allows the phone to NOT compress the audio as much, making the audio quality richer, and life-like. The "kbps" stands for 'kilobits per second', which means in every 1 second of an audio clip, the file would be 96Kb. So, if you record 1 minute of an audio clip, the size would be 5760Kb, or 0.72MB. In the same situation, if you use 320Kbps of audio, and recording 1 minute of an audio clip, the file would be 19200Kb, or 2.4MB. The rule of thumb is, the higher the number, the better the detail. Same "principle" applies to video, if you watch the video at 240p, the quality would be sh*t, but if you watch it at 2160p (4K), the quality would magnificant, the size of the video would also be magnificant XD. Hope this makes everything clear. If your still confused, just ask. I wont steal your Fortnite skins lol
Click to expand...
Click to collapse
I didn't ask what bitrate is, I was just asking What exactly this mod do. Where this bitrate is changed not how this affects a quality. Also let me ignore the fortnite part.
Dearminder said:
I didn't ask what bitrate is, I was just asking What exactly this mod do. Where this bitrate is changed not how this affects a quality. Also let me ignore the fortnite part.
Click to expand...
Click to collapse
Ok..Ive answered your first question very clearly. What Im presuming is you want to know what kind of apps would take advantage of this mod? Is that correct? Your question also has to be clearer..
Jt380p said:
Ok..Ive answered your first question very clearly. What Im presuming is you want to know what kind of apps would take advantage of this mod? Is that correct? Your question also has to be clearer..
Click to expand...
Click to collapse
Yes I Wanted to know what apps specifily are affected by this mod. But for now I only noticed bootloop on PE+
Dearminder said:
Yes I Wanted to know what apps specifily are affected by this mod. But for now I only noticed bootloop on PE+
Click to expand...
Click to collapse
Ok, I dont know about the bootloop though. Anyway, about the apps, its pretty much system-wide. If you dont have the mod, some third-party voice recorder apps bypass the audio limitations of the device. However, camera apps do follow the specified limitations. You will notice the changes in quality, especially in video recording in windy or loud environments.
Jt380p said:
Ok, I dont know about the bootloop though. Anyway, about the apps, its pretty much system-wide. If you dont have the mod, some third-party voice recorder apps bypass the audio limitations of the device. However, camera apps do follow the specified limitations. You will notice the changes in quality, especially in video recording in windy or loud environments.
Click to expand...
Click to collapse
I managed to check diffrences betwen my system file and this modded and I Noticed 2 Things. On first screenshot You can see that my system one file have additional space " " Maby that caused bootlop. But For the second screenshot resolution got lowered. Why? Or maby its just higher on PE+ , I don't blame anyone but when managed to keep these 2 things as my stock I didnt get bootlop.
Dearminder said:
I managed to check diffrences betwen my system file and this modded and I Noticed 2 Things. On first screenshot You can see that my system one file have additional space " " Maby that caused bootlop. But For the second screenshot resolution got lowered. Why? Or maby its just higher on PE+ , I don't blame anyone but when managed to keep these 2 things as my stock I didnt get bootlop.
Click to expand...
Click to collapse
The spacings are normal, I came across them on the POCO, RN7, Mi 8, and the Mi 9. The res however, some of them are different between each device, even though its under the same title. I dont mess with those things, I just changed the bitrate. Its probably the ROM that changed it. Would you mind sending me your stock audio file? (your current ROM)
is it compatible with pixel expirence android version 9.0.
Jt380p said:
The spacings are normal, I came across them on the POCO, RN7, Mi 8, and the Mi 9. The res however, some of them are different between each device, even though its under the same title. I dont mess with those things, I just changed the bitrate. Its probably the ROM that changed it. Would you mind sending me your stock audio file? (your current ROM)
Click to expand...
Click to collapse
Sorry, Kinda busy
Tested on eu rom miui 11. Didn't boot up. I got V4A, AML, ACP installed and that's probably why.

[Magisk][Module][Pie] Hevc Recording Enabler v0.3 for Oneplus 3/3T/5/5T

Hey everyone this would probably be my comeback for posting a thread after like 5 years. and previously i did some development for Samsung's Galaxy Core 2 G355H and after that i got myself a oneplus 3.
Now coming on to the Topic. I have been feeling that the stock Oneplus Camera encoder is taking way too much space as it should because it uses H264 encoder. and i suddenly felt that i have to do something about it.
So i searched through the internet. and found that it is not availabe for Pie though it was available for Oreo here.
but then that thread got me an idea and i edited the xml file myself and made it work.
This module enable HEVC/H265 video recording on OnePlus 3 and OnePlus 3T.
The bitrate values are the same as original.
The audio codec it's still AAC and the audio bitrate is doubled to 192kbps.
For Half bitrate i ll use heaac which uses less space without losing quality
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). [Credit- @eathtespagheti]
More info about HEVC on Wikipedia
Stock Video Stock Audio changelog
Code:
v0.1
- Initial release
v0.2
- changed to stock audio bitrate
Stock Bitrate changelog:
Code:
v0.1
- Initial release
v0.2
- Some Fixes and Improvements
v0.3
- Added support for Oneplus 5/5T
- Added stock video and stock audio alternative
Half Bitrate changelog:
Code:
v0.1
- Initial Release
bug- 1080p 60fps not working
v0.2
- Added support for Oneplus 5/5T
- 1080p 60fps is now working but with stock bitrate
Will it work for op5 pie version ?
Sent from my OnePlus5 using XDA Labs
anujyadava said:
Will it work for op5 pie version ?
Sent from my OnePlus5 using XDA Labs
Click to expand...
Click to collapse
i dont know but it should as the nougat and oreo version is unified for op3 and op5 so give it a try and tell me if it works
Dhruvit Pokharna said:
Hey everyone this would probably be my comeback for posting a thread after like 5 years. and previously i did some development for Samsung's Galaxy Core 2 G355H and after that i got myself a oneplus 3.
Now coming on to the Topic. I have been feeling that the stock Oneplus Camera encoder is taking way too much space as it should because it uses H264 encoder. and i suddenly felt that i have to do something about it.
So i searched through the internet. and found that it is not availabe for Pie though it was available for Oreo here.
but then that thread got me an idea and i edited the xml file myself and made it work.
This module enable HEVC/H265 video recording on OnePlus 3 and OnePlus 3T.
The bitrate values are the same as original.
The audio codec it's still AAC and the audio bitrate is doubled to 192kbps.
For Half bitrate i ll use heaac which uses less space without losing quality
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). [Credit- @eathtespagheti]
More info about HEVC on Wikipedia
Stock Bitrate changelog:
Half Bitrate changelog:
Click to expand...
Click to collapse
Thanks for the credits, appreciated! Hahah
anujyadava said:
Will it work for op5 pie version ?
Click to expand...
Click to collapse
There's already a specific version for OP5 iirc, search on the forum
Would you be able to create a version which uses
Stock bit rate for both video and audio? I see there's a version with stock video bitrate, but higher audio bitrate.
I am on oneplus 5t.
azrash said:
Would you be able to create a version which uses
Stock bit rate for both video and audio? I see there's a version with stock video bitrate, but higher audio bitrate.
I am on oneplus 5t.
Click to expand...
Click to collapse
sure ,in an hour i ll upload
azrash said:
Would you be able to create a version which uses
Stock bit rate for both video and audio? I see there's a version with stock video bitrate, but higher audio bitrate.
I am on oneplus 5t.
Click to expand...
Click to collapse
Done!
Does it work on Android 10 and does it fix slow-mo cam like the other HEVC enabler?
Couchy said:
Does it work on Android 10 and does it fix slow-mo cam like the other HEVC enabler?
Click to expand...
Click to collapse
nope, this is mainly for oxygen os based on pie. slow-mo in gcam isnt necessary as it is working on oxygen camera.
and i dont know if there is any mod to make slow mo work on gcam, if there is give me a link and i will include it.
Nice work bro!
I remember you from the SM-G355, nice phone xD
For slowmotion...
SlowMo on gcam works if you use the libs of Nougat and manually place it in the system (for android 10) or if you use MagiskModule (for Android 9 and 8).
I upload the module and the zip i use in Ten ROMs
View attachment slowmotionFix_ten.zip
View attachment OnePlus_3_3T_Slow_Motion_Fix-v2.0.1(8).zip
Hello. Just stumbled over your thread. I'm using a ZUK Z2 Plus and wanted to know if it would be possible to make this enabler working for my phone. Thanks for your work.
Cheers!
GonicTEAM said:
SlowMo on gcam works if you use the libs of Nougat and manually place it in the system (for android 10) or if you use MagiskModule (for Android 9 and 8).
I upload the module and the zip i use in Ten ROMs
Click to expand...
Click to collapse
I flashed your Ten zip on a ten rom with latest gcam (version 7.3.020 v1.1c TlnNeun) but it doesn't work.
Latest Paranoid Android Q. 3T
deathbreath2010 said:
Hello. Just stumbled over your thread. I'm using a ZUK Z2 Plus and wanted to know if it would be possible to make this enabler working for my phone. Thanks for your work.
Cheers!
Click to expand...
Click to collapse
give me your /system/vendor/etc/media_profiles_vendor.xml and i will make magisk module for you.
GonicTEAM said:
Nice work bro!
I remember you from the SM-G355, nice phone xD
Click to expand...
Click to collapse
Thanks So much bro, didn't think anyone would remember me. means a lot!
Dhruvit Pokharna said:
give me your /system/vendor/etc/media_profiles_vendor.xml and i will make magisk module for you.
Click to expand...
Click to collapse
Thanks a lot! I uploaded the file located in system/vendor/etc to my gdrive
https://drive.google.com/file/d/10ah-LZwAd4d_H9N2MvlJUiAcJhYgpXDM/view?usp=sharing
Cheers!
deathbreath2010 said:
Thanks a lot! I uploaded the file located in system/vendor/etc to my gdrive
https://drive.google.com/file/d/10ah-LZwAd4d_H9N2MvlJUiAcJhYgpXDM/view?usp=sharing
Cheers!
Click to expand...
Click to collapse
this is isnt media_profiles_vendor.xml and the file you gave i dont think is gonna work.
Dhruvit Pokharna said:
this is isnt media_profiles_vendor.xml and the file you gave i dont think is gonna work.
Click to expand...
Click to collapse
Hmm. But that is the only file with media profiles in its name located in vendor. Thanks anyway.
Cheers
deathbreath2010 said:
Hmm. But that is the only file with media profiles in its name located in vendor. Thanks anyway.
Cheers
Click to expand...
Click to collapse
i ll try with this, so you can try and tell me if it works
deathbreath2010 said:
Hmm. But that is the only file with media profiles in its name located in vendor. Thanks anyway.
Cheers
Click to expand...
Click to collapse
here

Categories

Resources