[Q] apt-X and other vendor-specific A2DP codecs - LG Optimus 4X HD

Considering P880's mediocre analog audio output, I'm wondering would it be possible to stream high-quality apt-X or AAC encoded music over A2DP to a stereo bluetooth headphones/headset? Samsung Galaxy S III and HTC One X have apt-X support but it seems that P880 doesn't.
I'm not particularly familiar with Android, but I'm a Linux power user (admin). I've seen this piece of code and it seems to me that Android uses Linux 'BlueZ' bluetooth stack.
Code:
./android/external/bluetooth/bluez/audio/a2dp.h:
#define A2DP_CODEC_SBC 0x00
#define A2DP_CODEC_MPEG12 0x01
#define A2DP_CODEC_MPEG24 0x02
#define A2DP_CODEC_ATRAC 0x03
Considering that audio codecs for A2DP bluetooth profile on Android are implemented in software, we could (easily?) add support for AAC, MP3 or any other codec supported by targeting receiver, besides SBC which is mandatory. The only problem with apt-X is IP and licensing issues so free distribution of such hack would be out of question, but I still wonder... If some end user is willing to pay for the license, is there any way to add support for apt-X by installing some software package on this phone? Licesing issues aside (just for educational purposes), would it be possible to copy "Vendor-Specific A2DP codec" from lets say Samsung Galaxy SIII and paste it into another vendor's Android smartphone (BlueZ stack)?
Harman Kardon has a BT headphones which support AAC streaming through A2DP, so at least there's a chance for OSS improvement over SBC.

Welcome to our forum , I hope you will find what you need .
Personally ... I didn't understand any thing . OSS ,A2DP,SBC,AAC (it's like a DNA code )
But generally the problem with kernel or modules (/system/lib/modules/*.ko) .
You can call modules as an "extra" things complied by developers . For example Bluetooth mouse or keyboard . As I understand it's a headphone ??
Good to see a good linux user ,, maybe you can made kernels (it's mostly based on linux) .
Sent From My LG-P880 (O4X) .
By Pressing "THANKS" You Will Help Me .

OS_Hacking said:
Welcome to our forum , I hope you will find what you need .
Click to expand...
Click to collapse
Thank you for your reply and warm welcome.
OS_Hacking said:
Personally ... I didn't understand any thing . OSS ,A2DP,SBC,AAC (it's like a DNA code )
Click to expand...
Click to collapse
OSS - Open Source Software
A2DP - Advanced Audio Distribution Profile is a Bluetooth standard which defines how high quality audio is streamed wirelessly
SBC - Subband Coding is a default audio codec in A2DP (and it's not very good one but it's free for Bluetooth applications)
AAC - Advanced Audio Coding is an audio codec which could be considered successor to MP3 (good for higher bitrates - not so much for low bitrates)
apt-X is a proprietary audio codec which achieves good compression rates with low computational overhead and short coding latency without sacrificing subjective audio quality (in short awesome )
A2DP uses SBC by default (and sounds terrible) but it can also use AAC (much better) and any other "vendor-specific codec" such as apt-X (preferably) or even Opus (very good open source audio codec for low bitrate voice and audio applications).
OS_Hacking said:
But generally the problem with kernel or modules (/system/lib/modules/*.ko) .
You can call modules as an "extra" things complied by developers . For example Bluetooth mouse or keyboard . As I understand it's a headphone ??
Click to expand...
Click to collapse
Kernel modules are loadable parts of kernel which are in essence drivers for hardware or complex subsystems.
I don't need driver for my Bluetooth controller, I just need software (apt-X) codec so my P880 can stream better quality audio.
OS_Hacking said:
Good to see a good linux user ,, maybe you can made kernels (it's mostly based on linux) .
Click to expand...
Click to collapse
I hope so.

Thanks for those informations ,, relly useful .
About modules I thought you meant a new hardware (special headphone or something like that) .
If it's a software , it can be ported (but I don't know how ) .
There is beats audio and xLoud MODs in xda and it should work on any android .
Sent From My LG-P880 (O4X) .
By Pressing "THANKS" You Will Help Me .

I was thinking to use the 4X as source media (thanks to the SD card slot and all flac files) too, but ATM I'm just waiting for the unlocked boot loader and then cm10.1 to use an external USB DAC to completely bypass the internal one (very mediocre).
Sent from my Nexus 7 using Tapatalk 2

OS_Hacking said:
Thanks for those informations ,, relly useful .
Click to expand...
Click to collapse
You're welcome.
OS_Hacking said:
About modules I thought you meant a new hardware (special headphone or something like that).
Click to expand...
Click to collapse
Bluetooth headphones and headsets don't need any drivers because they comply with the standard and negotiate connection parameters with a host device. But, if one of them doesn't support proposed codec then connection will default to mandatory one (SBC in case of A2DP).
Optimus 4X HD supports A2DP but it seems that it lacks apt-X codec so it will fallback to SBC even with most advanced and most expensive headphones. I'm trying to solve that.
OS_Hacking said:
If it's a software , it can be ported (but I don't know how ) .
There is beats audio and xLoud MODs in xda and it should work on any android .
Click to expand...
Click to collapse
Theoretically it could be solved but there's an IP (intellectual property) issue. I'm afraid that CSR's (company which supplies it to HTC and Samsung) apt-X codec is distributed as a binary library or compiled by phone manufacturers for their respective smartphone models and Android versions, and possibly even encrypted or obfuscated in order to protect licensed IP.
Our best shot would be to "steal" apt-X codec from HTC One X, or any other Tegra 3 device which supports it and runs Ice Cream Sandwich. That way there is a good chance it will load and run even if we had simply copied precompiled library.

pierg75 said:
I was thinking to use the 4X as source media (thanks to the SD card slot and all flac files) too, but ATM I'm just waiting for the unlocked boot loader and then cm10.1 to use an external USB DAC to completely bypass the internal one (very mediocre).
Click to expand...
Click to collapse
If you are willing to go with wires (USB) couldn't you simply use MTP for audio reproduction?
Of course, for home or office music listening we always have DLNA (Wi-Fi) option.
I'm trying enable this phone (P880) to transmit high-quality audio (voice/music) "on the go", with low-power wireless interconnection (Bluetooth A2DP with apt-X codec). In car I could use USB charger and stream music to my stereo over DLNA or simply through mass storage mode (need rooting), but while I'm walking... there is no much options.

For LG-P880 forum you are a developer .
I don't think you will get help ,, most of xda developers don't hear music .
Try contact "team acid" it is a team on xda their work is on music and they have their own music MOD (like beats , xloud ...) maybe they can help . Or maybe they are already did that .
Good Luck .
Sent From My LG-P880 (O4X) .
By Pressing "THANKS" You Will Help Me .

I'm pretty sure the library that handles aptX is called libbt-aptx-4.1.1.so (probably with a different version number).
I got a few hits on a google searching for "libbt-aptx-*.so"

I don't own any LG phones. But figured it is suited to this topic since I cannot find a good enough thread in other forums.
Many new Samsung and HTC phone has apt-x but when installing a custom rom is this function no longer valid? This is the number one bummer for a tinkerer who wants to install a custom rom on their device if this is true .
It would be great if true if someone could give a way to transfer that license to a new custom rom, after all it is the same phone you purchased with the license. However I can see this being abused, use on unlicensed phones.
But maybe where lucky and I don't know what I'm talking about, maybe the software isn't in the rom and is in the kernal or on the bluetooth chip in the phone and you only need a driver for the custom rom software.
Wishful thinking, I guess...

The code "Android ROM for EVO LTE based on Android 4.0.4 ICS, Sense 4.1, Sprint 2.13.651.1 RUU - Google Project Hosting" can be found searching for "libbt-aptx-4.0.4.so andoid inbreded-lte-rom". Hope to be of help for someone who...

AltekLeo said:
The code "Android ROM for EVO LTE based on Android 4.0.4 ICS, Sense 4.1, Sprint 2.13.651.1 RUU - Google Project Hosting" can be found searching for "libbt-aptx-4.0.4.so andoid inbreded-lte-rom". Hope to be of help for someone who...
Click to expand...
Click to collapse
Hi
I'm also interested in keeping the Apt-X support on my GS3 while moving away from the stock rom, but the rom I use, AOKP, will not implement a proprietary codec.
Could it be as simple as extracting the libbt-aptx-4.0.4.so from /system/lib from the default rom and copy it into the /system/lib of the desired rom with the same permissions?
Thanks
Beng

BenG7,
yes that could be possible but no one in this thread reported success.
Magickone quoted CSR could have inserted model specific check code to prevent a driver transfer to a different phone.
In that case the check code has to be taken out of the source code, and the library has to be recompiled with the appropriate development system, if that is available from google.
If someone has done that I would like to see a detailed report.
But if you use the library on the same model GS3 it might work well (and might be legal), if the support for apt-x has not been taken out elsewhere.
I am not familiar enough to making and debugging android or linux driver libraries to determine if there are any further restrictions or obstacles.
Thanks

You probably have a crap phone or crap Bluetooth receiver. SBC supports bit rates up to 320 kb/s. Using my Galaxy S2, HS3000 (supports aptX but my S2 doesn't) and Klipsch Image X10i, I honestly cannot tell the difference between SBC and a wired external DAC. 320 kb/s SBC must be at least as good as 128 kb/s MP3.
aptX should only be used to reencode incompatible sources such as uncompressed real time audio or other codecs. AAC files should be streamed directly over A2DP without using aptX. Of couse, the receiver should support AAC.

Hi folks, I hope you'll take a look at my thread for APT-X development. The idea is to get APT-X working for AOSP ROM's on phones that originally shipped with the APT-X codec.
APT-X for AOSP Developement thread:
http://forum.xda-developers.com/showthread.php?p=48157222#post48157222
magickone said:
Considering P880's mediocre analog audio output, I'm wondering would it be possible to stream high-quality apt-X or AAC encoded music over A2DP to a stereo bluetooth headphones/headset?
Click to expand...
Click to collapse
AAlchemy said:
I'm pretty sure the library that handles aptX is called libbt-aptx-4.1.1.so (probably with a different version number).
I got a few hits on a google searching for "libbt-aptx-*.so"
Click to expand...
Click to collapse
AltekLeo said:
The code "Android ROM for EVO LTE based on Android 4.0.4 ICS, Sense 4.1, Sprint 2.13.651.1 RUU - Google Project Hosting" can be found searching for "libbt-aptx-4.0.4.so andoid inbreded-lte-rom". Hope to be of help for someone who...
Click to expand...
Click to collapse
KurianOfBorg said:
You probably have a crap phone or crap Bluetooth receiver. SBC supports bit rates up to 320 kb/s. Using my Galaxy S2, HS3000 (supports aptX but my S2 doesn't) and Klipsch Image X10i, I honestly cannot tell the difference between SBC and a wired external DAC. 320 kb/s SBC must be at least as good as 128 kb/s MP3.
aptX should only be used to reencode incompatible sources such as uncompressed real time audio or other codecs. AAC files should be streamed directly over A2DP without using aptX. Of couse, the receiver should support AAC.
Click to expand...
Click to collapse
??
APTX is a clearly audible difference when playing the same source file over standard Bluetooth (SBC) vs. APTX.
Even the numbers show the difference:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}

Hi,
I read that blueZ support A2DP 1.3. I would like to know if only SBC is supported or also AAC and apt-x. I took a look at source code of latest version 5.30 and I found that file a2dp-codecs.h contains many define of AAC and apt-x and it should support both even if the latter has IP issue.
However, how can I know if I'm using SBC or AAC or apt-x with my smartphone and on my linux server?
Thank you

Whats the difference beetwen 4.0.3 and 4.1.1 version. Older is kinda f**** up. Music skips/stutter over bluetooth. So i wonder if i can just replace new codec over the old one.
What ya think ?

Related

[FIX][Audio Resampling][Stock Oreo] Fix 384Khz For Music Player That Use Direct PCM F

Hi all
I'm using PowerAMP Beta 709 for listening music, LG Music player is decent for me, PowerAMP can resampling up to 384Khz, but on LG V30 it's not working when i choose resampling to 384Khz, its just back to 44.1Khz.
Only 44.1~352.8Khz is working, i tought it's bug in PowerAMP but NOT, LG forgot some line or intentionally not adding 384khz in 24bit Direct PCM. So i fix that.
Every Music player that use flag Direct PCM can use 24bit 384Khz now without going back to 16bit 44.1Khz ofcourse if there music app that support 32bit 192/384Khz will also work if using flag direct pcm 32bit
Requirements :
1. Unlocked Bootloader
2. TWRP installed
3. Root
How to install?
1. Just flash with TWRP or
2. Extract and put to system/vendor/etc and change permissions to 0644
Hi thanks for the mod
Got one question about how sound works on a v30.
I usually listen to songs like 24/96 or higher or sometimes the mqa from tidal, the question is will the viper4android downsample my songs? As I saw on all devices I had it installed that drive status reports 44kHz sampling rate even when I was playing hi-res music.
xypnise said:
Hi thanks for the mod
Got one question about how sound works on a v30.
I usually listen to songs like 24/96 or higher or sometimes the mqa from tidal, the question is will the viper4android downsample my songs? As I saw on all devices I had it installed that drive status reports 44kHz sampling rate even when I was playing hi-res music.
Click to expand...
Click to collapse
I'm never try V4A but yeah your song is downsampling, maybe V4A doesn't support or use direct pcm or even snapdragon 24bit offload so its still use Open SL ES 16bit 44.1khz for output.
Maybe someone has better answer than me, cause i never try V4A.
Hi, will give this a try but how to undo if something is not right ?
Tried a loudness mod recently and had hissing in quiet parts so had to revert
gazzacbr said:
Hi, will give this a try but how to undo if something is not right ?
Tried a loudness mod recently and had hissing in quiet parts so had to revert
Click to expand...
Click to collapse
Just open the zip file and see for yourself which and how the files are modified. It's just a quick edit of both instances of audio_policy_configuration.xml. It could be edited by hand, same as with the high impedance mod.
Kudos to the OP for the useful tip !
I'd like to test if LG has fixed this issue on stock Oreo with the July update. I have a library full of FLAC music files; so the next step would be to install PowerAMP and select 384kHz? I'll edit this post with results.
EDIT: US99820D (July stock ROM) has the bug. Flashing the fix resolves the issue as revealed by PowerAMP beta. I did notice though that having the "Enhanced" DAC preset enabled introduces intermittent static noises in certain songs. It doesn't bother me, since I keep it at "normal" and set the digital filter to "short." Very nice sounds with Sennheiser HD558.
Thank you @Rizal Lovins for the fix !
Since this thread is one year old, with the last oreo fw 20h us998 is the audio resampling still happening on LG's stock music app or been fixed? I don't know how to see/measure the audio output
YoungAll said:
Since this thread is one year old, with the last oreo fw 20h us998 is the audio resampling still happening on LG's stock music app or been fixed? I don't know how to see/measure the audio output
Click to expand...
Click to collapse
Not fixed.
Mrxyzl said:
Not fixed.
Click to expand...
Click to collapse
Hmm, why am I not surprised. USB audio is still the way to go.
What about pie? Anybody know if LG actually did it right this time?
gazzacbr said:
Hmm, why am I not surprised. USB audio is still the way to go.
What about pie? Anybody know if LG actually did it right this time?
Click to expand...
Click to collapse
No, too
I sadly cannot get this fix to work things still only play 352.8, when I try to get it to sample fully to 384 it jumps down to 192. This fix just seems to do nothing sadly. Trying with USB Audio Player Pro

[GUIDE] Enable Hi-Res audio on Oreo using Neutron Music Player with 64-bit processing

Hi guys,
I'll start with a disclaimer.
I. This guide is as simple as I can make it. If you are unable to follow these ten simple steps—please do not ask me any questions here or via PM, 'cause I'm not going to answer them. I have no time to waste on helping the IQ challenged.
II. This guide is for Neutron Music Player (hereafter NMP) only. I don't know or care how to enable Hi-Res audio support in any other player.
III. This guide is for Oreo only. If anyone can provide audioflinger dumps for Pie—and please don't ask me how to do it, see above—I'll check them and update this guide.
IV. This guide is for those who use WIRED gear. Last time I checked Hi-Res was NOT working for speaker/bluetooth. The root cause(s) may be Qualcomm's WCD9335 codec or engineering 'talent' at Asus or both. Again, I don't care.
V. This guide is for the stock ROM only. If you use a custom ROM—you are on your own, I don't know or care if the Hi-Res audio is supported there.
VI. If you have dirt cheap gear you don't even need Hi-Res audio 'cause you won't be able to hear the difference anyway. I'd say that the baseline is something like olde golde Sennheiser CX300-II or Creative EP630 (plus FLAC or any other lossless format supported by NMP).
VII. If you listen to lossy music files like MP3s—well they will be played louder and somewhat clearer, but don't expect wonders.
VIII. If you use Viper or Sauron or any other audio mod—you're on your own. Viper will not work for sure, as for other mods—I don't know or care. Have I written that before? Good, it won't hurt to repeat that again
Now let's rock!
1. If you don't have NMP, install it, add your music, etc, then CONNECT YOUR WIRED GEAR.
2. There are some prerequisites related to NMP settings, see the official NMP FAQ for Hi-Res Audio available at
http://neutronmp.com/forum/viewtopic.php?f=3&t=4014
3. In SETTINGS, enable 64-Bit Processing.
4. SETTINGS→Audio Hardware→Generic Driver: enable BOTH Hi-Res Codec (Direct PCM) and Custom Format. DO NOT ENABLE Hi-Res Speaker or Hi-Res Bluetooth.
5. Open Custom Format by tapping the gear button.
6. Set Format to "24-bit Int" and confirm by tapping the checkmark button . ALL THE OTHER FORMATS MUST BE DISABLED.
7. Set Frequency to "352800" (preferable) OR "384000" and confirm by tapping the checkmark button . ALL THE OTHER FREQUENCIES MUST BE DISABLED.
8. Set Mode to "DIRECT" and confirm by tapping the checkmark button . ALL THE OTHER MODES MUST BE DISABLED.
9. Tap the checkmark button several times to go back to SETTINGS, then Android's own back button to get to the player UI.
10. You're all set, enjoy your music in Hi-Res!
PS If you don't believe that Hi-Res audio support can be enabled by following this guide—check the two attached files. These files contain audioflinger dumps for 352800 Hz and 38400 Hz resampling frequencies, made on a rooted ZB602KL device with the v340 stock ROM.
Again, don't ask me any questions. Uncle Google is your friend.
If you STILL don't believe that Hi-Res audio support can be enabled by following this guide—check these links.
Yes these tests are in Russian, so you're welcome to use Google Translate if you don't know Russian
https://reference-audio-analyzer.pro/review-report.php?id=1691&page=asus-zenfone-max-pro-m1
https://reference-audio-analyzer.pro/title-report.php?id=1691&page=asus-zenfone-max-pro-m1
Same can be achieved via PowerAmp. player too.
akhil850 said:
Same can be achieved via PowerAmp. player too.
Click to expand...
Click to collapse
The thing is that although current versions of Neutron and Poweramp support Hi-Res audio "out of the box", Hi-Res output does not work "out of the box" in Neutron IF 64-BIT PROCESSING IS ENABLED IN NEUTRON.
I had spent quite a lot of time analyzing audioflinger dumps until I found the right combination of settings to enable both 64-bit processing AND Hi-Res audio at the same time.
m00nlighter said:
The thing is that although current versions of Neutron and Poweramp support Hi-Res audio "out of the box", Hi-Res output does not work "out of the box" in Neutron IF 64-BIT PROCESSING IS ENABLED IN NEUTRON.
I had spent quite a lot of time analyzing audioflinger dumps until I found the right combination of settings to enable both 64-bit processing AND Hi-Res audio at the same time.
Click to expand...
Click to collapse
Good Work bro.

[AUDIO] HiFi/HiRes boost

- First of all i dont want to make some ''promo'' or ''ad'' for specific projects, just want to advice to others for rooted poco x3 with best Audio Quality Output possible.
Why? I am audiophile and spended a lot of time to make it works, thats it..
- This Guide is based on weeks of '' Flash Reboot Check Repeat '' so...
. Tried many of kernels, roms, flashable zip files and now i can say the best result is or i am on..
WHAT WE NEED or my recipe for the Bingo!..
#################################
#TWRP 3.5.0_10-03 Recovery SURYA
#EvolutionX 5.3 A11 ROM SURYA
#OptimusDrunkKernel v11.8 SURYA
#MagiskHidden v21.4
##Find It On XDA
#################################
###
###
###
#Asteps:
Spoiler
1./ We start here with factory reset
2./ Flash Rom
3./ Flash Kernel
4./ Flash Magisk
5./ Boot
6./ 1th part done!
###
#Bsteps:
Spoiler
1./ Open Magisk & finish mngr setup
2./ Get NDK codecs from Magisk (Adb,BusyBox,Nano,Zips)
3./ Get Required Apps and start with Busybox; Grant Root & Smart Install
4./ Apps are configured, now reboot phone
5./ Open FileManager and put 'narsil_useroptions' to Internal storage
6./ Flash Ainur Nardil via Magisk & Reboot
7./ Gstore: Find the XtremeMusic app & install (Pro is opt.)
8./ Configure XMusic app - CHECK DRIVER STATE
!!!IF YOU WILL FLASH MAGISK, AUX NOT WORK
BUT IF YOU DONT USE JACK CONNECTOR DO IT!!!
###
#Csteps:
Spoiler
1./ Restart Phone
2./ Run manually all root request apps
(just open&close for prevent to grant root sucess)
3./ Open the Player and setup configs
(I have PowerAmp,
also U can use Neutron/SonyMP/432player or other HiFi supported)
4./ In FKM find all "audio/stream/media/lib..." & ENABLE On Boot
5./ FLASH AML PATCH
6./ Last one Restart and Enjoy HiRes Audio for every Output
#LAST WORDS
Spoiler
0./ Go: Settings - Audio - Dirac HD - Enable ✓
1./ AUX/3.5Jack ONLY,
We have SoundBooster inside of Rom so if not
enought Output Power,you can Enable it to even more boosted sounds
2./ Recommending PowerAmp For Offline listening
3./ Everyone sound is HiRes now!
4./ Pure HW Audio Output for maXimum Audio performance
5./ I was aimed to make my qcmm chip able to full potencial
6./ This guide is based on weeks of Try cfgs with testing
To find best one with Surya Device #_#
7./ If you have some ideas to make it better just feel free to speak please
###
###
###
ALL CREDIT GOES TO THE AUTHORS!
I just found correct way to make it work..
###
###
###
In future i will Keep try to find all of possible ComboS for
Other Audio Mods, honestly... I think that Pure Natural Clear Crisp Sound already reached here..
#
#RESULTS
32bit192kHz Forced to all
Up to 64/384 with some SW process Imp. IF wanna play it hard !
ALSA Driver
And a lot of var. effects working together WO consuptions..
Spoiler
Beats/DsEE-HX/LDAC/Dts/Dolby/Dirac/Harman/Sony/Asus etc etc.
Why dont Have all of them if you Can Use
AIO CherryPickEd Mod
Working on every Output, no matter what app say..
Why ? Becouse of Hardware Direct Digital Audio Source
Qualcomm Snapdragon Hexagon Dsp Tech. (Check Qcmm site how it works)
All config setups are "must-to-do" only once & dgaf ..
✌ Please, Enjoy New Sound ✌
Edit:
URL with Files & Screens in Zips:
Private link only for this post! [GDrive]
XtremeMusic app is the placebo app, guy who created it closed his thread on XDA. UltraM8 explained why his mod is bad. Basically he said that he put random props & libs that sounds good but they aren't working at all. Only RSSP Magisk module (removes Dirac) + Narsil mod with custom narsil_options + Neutron Music Player is a good option.
Also: If you're an audiophile, you don't want resampling and you want less audio processing as possible.
Here's the link for my custom user_options which I tested thoroughly: https://drive.google.com/file/d/1YK8uB-1zXzS5ekxev5F4O1j1uEjB3eWi/view?usp=sharing
SkaboXD said:
XtremeMusic app is the placebo app, guy who created it closed his thread on XDA. UltraM8 explained why his mod is bad. Only Narsil mod with custom narsil_options + Neutron Music Player is a good option.
Also: If you're an audiophile, you don't want resampling and you want less audio processing as possible.
Click to expand...
Click to collapse
Thanks for diff. angle of view to this..
My "finale dream" is only HW pure max power output with all new qcom libs but its look like i need to read.. a lot ..
Edit1:
Resample is really better off, thx.
Now i Removed Xmusic
Flash RSSP (not sure if want to disabke dirac)
I found NLSound Mod for Qcom devices and can say MustHave this ..
So now on: Narsil + NLSounds
Result sounds very difficult like much more of natural way pure deep sounds
Pure Snake Oil at its finest. The creator of Ainur Narsil has already explained in detail, why you cannot simply copy libs as they require reference to the appropriate hardware.
Besides, if you are a "true hi-fi" listener, you won't be using your phone as a source and would have a dedicated Receiver/Amplifier for that.
Edit2: Using Narsil and NL Soud with PowerAmp with as much as possible to natural pref. EQ settings... so 24bit/192khz is the max what we can get out by our 732g ? :/
SparklePipe said:
Edit2: Using Narsil and NL Soud with PowerAmp with as much as possible to natural pref. EQ settings... so 24bit/192khz is the max what we can get out by our 732g ? :/
Click to expand...
Click to collapse
Yup. Get an external USB C DAC if you want higher sampling rates.
Revontheus said:
Yup. Get an external USB C DAC if you want higher sampling rates.
Click to expand...
Click to collapse
yes, but for what if our processor dsp is possible to do it directly from hw process ?
RSSP and DBPlus works best for me...
yan2xme said:
RSSP and DBPlus works best for me...
Click to expand...
Click to collapse
YES, me too, but i am looking for best choice for sound implementations bcs..
bcs we have Snapdragon! and snapdragon owning most of awesome hardware 'skills' so ... why we must install unneccessary apps, buying ext. hw if we can obtain massive performance from our device just based on few ''Zero-One'' binaries without battery consume ... thats the magic betw. SW / HW x)
***already i am testing as stock as possible with USB Audio driver patched for all outputs.. 32bit/192kHz everywhere, where i want to push my music to output, later will share all of my combinations to test btw also tried Xperia XZ2 port with SonyMPlayer w/ DSEEHX + Dirac stock + other little stuff and sounds very very suprisely so.. IDK ... if i will get finall result, will share the guide, now i am far away from 1th post here
LM:: feel free to tell me your setup / impl. guide U R used to .. SMILEn'PEACE.
Revontheus said:
Yup. Get an external USB C DAC if you want higher sampling rates.
Click to expand...
Click to collapse
Fiio BTR5 works perfecly
Revontheus said:
Yup. Get an external USB C DAC if you want higher sampling rates.
Click to expand...
Click to collapse
AFAIK there is nothing above 192kHz. To be noted though that 192kHz is useless unless using audio processing (some reverbs and maximizers will work better at higher frequency but tat is about it), if you are only going for HiFi, 48kHz is enough (and so is 44.1, just go according to your source to prevent resamplig). 24 bits is useful in some cases though as higher bit depth allows finer passing of low level dynamics, useful in some cases to get a clean signal through.
fox_xda2 said:
AFAIK there is nothing above 192kHz. To be noted though that 192kHz is useless unless using audio processing (some reverbs and maximizers will work better at higher frequency but tat is about it), if you are only going for HiFi, 48kHz is enough (and so is 44.1, just go according to your source to prevent resamplig). 24 bits is useful in some cases though as higher bit depth allows finer passing of low level dynamics, useful in some cases to get a clean signal through.
Click to expand...
Click to collapse
I am aware that, however the person asking wanted recommendations for a USB DAC that could sample higher than that frequency.. A signal sampled at twice it's highest frequency component already has a bandwidth that contains all information.
Can i use this mod with 3.5 audio jack output i have tried all possible fix but i Always lose audio jack output when i install this mod only speaker work when headphone is inserted with all system sound, tiered installing via recovery as advised for 3.5 output but didn't work; I'm searching for a workaround advice to make it work.
Please close this one, thank you.
THREAD LOCKED
Requested by OP.
Regards,
shadowstep
Forum Moderator

[MAGISK] [MODULE] SBC XQ Bluetooth Audio Codec and DRC Deactivator (Android 10)

PREMISE
Standard Bluetooth (BT) audio codec SBC is incorporated into all BT stereo audio devices as mandatory. It can work at arbitrary high bitrates but BT documents, however, recommend 328 kbit/s (44.1kHz/16bit) for high quality mode. This mode provides just acceptable audio quality.
Meanwhile a guy under the nick ValdikSS wrote the patch for Android and another guy, Pali Rohár for Linux; these patches unlock higher bitrates of SBC encoder. That patches then called as "SBC XQ".
It turned out that almost all modern BT headphones, speakers, receivers; support SBC bitrates up to 730 kbit/s just out of the box. And SBC XQ helps to encode BT audio on Android smartphones at the following bitrates:
(1) 452.0 kbit/s for 44.1kHz/16bit (BT EDR 2) Magisk_SBCXQ_452_A10.zip
(2) 551.2 kbit/s for 44.1kHz/16bit (BT EDR 3) Magisk_SBCXQ_551_A10.zip
Audio quality of SBC XQ BT EDR2 is comparable to aptX HD. And for BT EDR3 devices SBC XQ slightly surpasses aptX HD. It will be impossible to tell them apart in a blind listening test.
SBC XQ MODULES
SBC XQ has very simple concept. Higher bitrate, better quality. These modules will increase your SBC bitrate from 364kbit/s to 452kbit/s or 551kbit/s and perform high quality audio for traditional (budget) SBC BT audio receivers. These modules will replace your BT stack (libbluetooth.so arm and arm64). So, if it is not work, your BT will completely go off. In other word, your default SBC bitrate has been updated successfully, if your BT audio receiver function normally.
Obviously, you can only enable 1 Module at a time 452kbit/s or 551kbit/s.
Complete source of SBC XQ
Modification Sources
OPTIONAL MODULE
Dynamic Range Control (DRC) Deactivator Magisk_DRC_Deactivator_v1.00.zip
I found this Module from XDA, made by @zyhk
Basically it will set "drc_enabled = true" to "drc_enabled = false".
The original one, patch audio_policy_configuration.xml in vendor/etc folder.
My mod version will patch in vendor/etc/audio folder also.
ALL MODULES HAS BEEN TESTED
Source:
Xiaomi Redmi Note 8, MIUI v12.0.6 Global, Android 10
Receiver:
MPow X4.0 ANC (Bluetooth Headphone)
Clarion PE-4217N-A (Car HeadUnit)
JUST FEEL THE DIFFERENCE
DONATE
a cup of coffee will be nice
Sounds great what about Android 11 and 12?
Anyway a good work.Cheers!!!
-CALIBAN666- said:
Sounds great what about Android 11 and 12?
Anyway a good work.Cheers!!!
Click to expand...
Click to collapse
waiting for my crappy phone got A11 update
ferry_ip said:
waiting for my crappy phone got A11 update
Click to expand...
Click to collapse
It doesnt matter for me i test it on my Android 11 Redmi 9 and gibe feedback soon.Cheers!!!
This breaks Bluetooth for me, pixel 5 running protonAOSP and protonkernel.
After rebooting Bluetooth won't turn on, tries for about 10 seconds and then turns back off
mindyabiznis said:
This breaks Bluetooth for me, pixel 5 running protonAOSP and protonkernel.
After rebooting Bluetooth won't turn on, tries for about 10 seconds and then turns back off
Click to expand...
Click to collapse
I'm sorry it doesn't work for you.. I never test it, on custom ROM
ferry_ip said:
I'm sorry it doesn't work for you.. I never test it, on custom ROM
Click to expand...
Click to collapse
Doesn't work on stock rom on the pixel 3a, does the same thing as it's doing for Mindy. I didn't expect it to work though as it's Android 11, figured it was worth checking though.
not working on a11 poco F3, sadly
aqvyx said:
not working on a11 poco F3, sadly
Click to expand...
Click to collapse
unfortunately A11 have a very different bluetooth stack
I have tried the both bit-rate versions on my Xiaomi POCO F1 MIUI 12 Android 10.
The Bluetooth connection works and devices are audible. Tested on the following peripheral devices:
SONY SBH24
SONY XB-01
Noise Air Buds Mini
No cracks or nothing. But, not able to scientifically tell the bit-rate or audio-quality is increased.
Pulled the HCI snoop-log. How to read the HCI log in Linux or Android?
[EDIT #1]: Decoded the HCI log using the command `hcidump -r btsnoop_hci.log`. It has the following lines:
Code:
AVDTP(s): Set config cmd: transaction 2 nsp 0x00
ACP SEID 1 - INT SEID 1
Media Transport
Media Codec - SBC
44.1kHz
JointStereo
16 Blocks
8 Subbands
Loudness
Bitpool Range 2-53
Its the standard negotiation for SBC codec I believe. Can anyone confirm the bitrate is increased?
ferry_ip said:
SBCXQ
Click to expand...
Click to collapse
does it have an impact on the battery ? (Phone+headphone) ???
i'm using lineage os 17.1 with x522(leeco le s2)
it works but bluetooth file transfer is broken after installation
1. I tried Magisk_SBCXQ_551_A10.zip on Mi A3 Android ONE (11)
Bluetooth "works", no interruptions, but I cannot state if audio quality is better.
Someone wrote about differences in Android 10 and 11, but do you think this module may generally work on Android 11, or that's "placebo effect" and fortunately it didn't corrupt my Bluetooth?
2. Another question is depth, my phone supports 24bit (probably Sync in my Ford Focus 2019 also..) Can I in any way set it from 16bit to 24bit?
3. Interesting is that with module installed gabeldorsche mode is still active when I reenter the settings.. but does it work in fact?
4. Can installed module in any way influence battery draining?
Sorry for 2 more questions:
5. I noticed that even after uninstalling module from magisk sometimes there is problem with switching from 3G to LTE /H+ when I change area (eg leave the garage hall)
6. Can I in any way check in my Mi A3 (Android ONE 11) which bitrate is set as default for SBC?
I flashed it on OnePlus 8 pro using OxygenOS 11 and Bluetooth works fine, but I can't tell difference with my Sony wf-1000xm3's, nor with my car
Unn113 said:
I flashed it on OnePlus 8 pro using OxygenOS 11 and Bluetooth works fine, but I can't tell difference with my Sony wf-1000xm3's, nor with my car
Click to expand...
Click to collapse
Doesn't work on a OP8 running lineageOS 18.1. I might need to go back to stock.
There is possible to enable "disable a2dp hardware offload" ? Miui V12.0.6.0.QFCMIXM xiaomi mi 9 lite
Works on A11 crdroid miatoll
I wpuld not install if the phone only supports BT4.0-4.2. The extra bandwidth should help. ApTX HD overheats my phone so I use SBC only.
seffparker said:
I have tried the both bit-rate versions on my Xiaomi POCO F1 MIUI 12 Android 10.
The Bluetooth connection works and devices are audible. Tested on the following peripheral devices:
SONY SBH24
SONY XB-01
Noise Air Buds Mini
No cracks or nothing. But, not able to scientifically tell the bit-rate or audio-quality is increased.
Pulled the HCI snoop-log. How to read the HCI log in Linux or Android?
[EDIT #1]: Decoded the HCI log using the command `hcidump -r btsnoop_hci.log`. It has the following lines:
Code:
AVDTP(s): Set config cmd: transaction 2 nsp 0x00
ACP SEID 1 - INT SEID 1
Media Transport
Media Codec - SBC
44.1kHz
JointStereo
16 Blocks
8 Subbands
Loudness
Bitpool Range 2-53
Its the standard negotiation for SBC codec I believe. Can anyone confirm the bitrate is increased?
Click to expand...
Click to collapse
Good idea here, I tried this as well. I used termux at first and didn't find the `hcidump` command, and it didn't find that in any of its available packages (is it in a special repo or something?) but I figured out how to enable the HCI Snoop Log in developer settings, found it under `/data/misc/bluetooth/logs/btsnoop_hci.log`, and transferred it to my PC & opened up in Wireshark to check it out.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
Looks like the same results as what you got, aka the normal low-quality SBC profile.
I'm using the 551 magisk module and Plantronics Backbeat Pro headphones, which support APT-X (not HD) and enable that by default, so I had to change it to SBC in android developer settings after connecting.
I left the "HD Audio" toggle above the bluetooth codec settings there enabled... not sure what difference turning that off or on makes though. I'd guess nothing, as trying to change the sample rate & etc settings to "default" rather than the "44.1khz" (which was *actually* already set by default) didn't seem to do anything, I'd click it again and 44.1khz would still be the selected option.
And btw this is all on a Oneplus 8 (model IN2017) running EvolutionX 5.9.3, android 11.
Really nice
Is there a way to make this simple flash in TWRP? Extract files and such?
I don't have magisk at the moment with GSI 12

Question Redmi Note 11 Does Not Support Hardware 10bit HEVC Decoding?

I just got a Redmi Note 11. When trying to play a 10bit 265 (HEVC) encoded video the playback was choppy and not smooth. MX Player claims "HW decoding is unsupported" for that format. Trying to force it through the settings did not help. Other video players such as VLC did not fare any better. I found this really strange as my old Redmi Note 4 from 2017 played these videos without a problem.
Digging into it a looked up the Snapdragon 680 that powers the device, and according to what I found the CPU has support for 10bit h265 (source: https://www.cpu-monkey.com/en/cpu-qualcomm_snapdragon_680_4g). So what is going on here? Am I doing something wrong or did Xiaomi somehow cheap out on the phone? I am really disappointed by my purchase at the moment as 10bit video is something I use a lot, so any ideas for solving this will be much appreciated.
(Note: I posted a similar question over here: https://forum.xda-developers.com/t/...hevc-discussion.2725241/page-42#post-87053885 but since I got no answer I thought I'd try to get help here, and if not at least warn people of buying the phone as the lack of support is not listed anywhere. If my double post is against the rules I apologize)
magman2 said:
I just got a Redmi Note 11. When trying to play a 10bit 265 (HEVC) encoded video the playback was choppy and not smooth. MX Player claims "HW decoding is unsupported" for that format. Trying to force it through the settings did not help. Other video players such as VLC did not fare any better. I found this really strange as my old Redmi Note 4 from 2017 played these videos without a problem.
Digging into it a looked up the Snapdragon 680 that powers the device, and according to what I found the CPU has support for 10bit h265 (source: https://www.cpu-monkey.com/en/cpu-qualcomm_snapdragon_680_4g). So what is going on here? Am I doing something wrong or did Xiaomi somehow cheap out on the phone? I am really disappointed by my purchase at the moment as 10bit video is something I use a lot, so any ideas for solving this will be much appreciated.
(Note: I posted a similar question over here: https://forum.xda-developers.com/t/...hevc-discussion.2725241/page-42#post-87053885 but since I got no answer I thought I'd try to get help here, and if not at least warn people of buying the phone as the lack of support is not listed anywhere. If my double post is against the rules I apologize)
Click to expand...
Click to collapse
Try using mpv for Android (also built for Windows & Linux) -- it also supports multiple audio and subtitle tracks:
https://apkpure.com/mpv-android/is.xyz.mpv
https://play.google.com/store/apps/details?id=is.xyz.mpv
Oifan said:
Try using mpv for Android (also built for Windows & Linux) -- it also supports multiple audio and subtitle tracks:
https://apkpure.com/mpv-android/is.xyz.mpv
https://play.google.com/store/apps/details?id=is.xyz.mpv
Click to expand...
Click to collapse
Thanks for the reply. I just tried the app you suggested, and it too won't let me set it to hardware decoding. Pressing the SW button does nothing. So it seems no app is able to use hardware acceleration on 10bit 265 videos. Whether that is due to some driver issues (?) or a physical lack of support in the CPU is still unclear.
Am I the only one with this issue?
magman2 said:
Thanks for the reply. I just tried the app you suggested, and it too won't let me set it to hardware decoding. Pressing the SW button does nothing. So it seems no app is able to use hardware acceleration on 10bit 265 videos. Whether that is due to some driver issues (?) or a physical lack of support in the CPU is still unclear.
Am I the only one with this issue?
Click to expand...
Click to collapse
I think this is a problem of your Android OS -- I have just tested the x265 – Tears Of Steel 1080P @ 400kbps sample HEVC video (top left here: https://x265.com/hevc-video-files/) in mpv player (on my Xiaomi spesn) -- and I could toggle the [HW] button without problems.
I am running Android 12L - SuperiorOS, download links here:
Redmi Note 11 Updates
#SuperiorOS #Spes #UnOfficial #SL #OSS #Spesn SuperiorOS Unofficial | Android 12L Build date: 13/6/'22 ▪️Download ▪️Support Group Changelog: •Initial build. Known Bugs: •NFC •U find a bug, u can tell me Notes: •Use Mind GApps Credits & Thanks: @dblenk9 & @jabiyeff21 for trees By...
t.me
Oifan said:
I think this is a problem of your Android OS -- I have just tested the x265 – Tears Of Steel 1080P @ 400kbps sample HEVC video (top left here: https://x265.com/hevc-video-files/) in mpv player (on my Xiaomi spesn) -- and I could toggle the [HW] button without problems.
I am running Android 12L - SuperiorOS, download links here:
Redmi Note 11 Updates
#SuperiorOS #Spes #UnOfficial #SL #OSS #Spesn SuperiorOS Unofficial | Android 12L Build date: 13/6/'22 ▪️Download ▪️Support Group Changelog: •Initial build. Known Bugs: •NFC •U find a bug, u can tell me Notes: •Use Mind GApps Credits & Thanks: @dblenk9 & @jabiyeff21 for trees By...
t.me
Click to expand...
Click to collapse
That file my phone can play as well, but that file is an 8 bit file. It's the 10 bit encodes that the phone won't play with hardware acceleration. Can you try this file and say if you have hardware acceleration? I tested this file on my old Redmi Note 4 and it played back smoothly. My new Note 11 can't handle it:
https://jell.yfish.us/media/jellyfish-10-mbps-hd-hevc-10bit.mkv
Also, for the record, I am using the stock MIUI 13.
magman2 said:
That file my phone can play as well, but that file is an 8 bit file. It's the 10 bit encodes that the phone won't play with hardware acceleration. Can you try this file and say if you have hardware acceleration? I tested this file on my old Redmi Note 4 and it played back smoothly. My new Note 11 can't handle it:
https://jell.yfish.us/media/jellyfish-10-mbps-hd-hevc-10bit.mkv
Also, for the record, I am using the stock MIUI 13.
Click to expand...
Click to collapse
You are right about the bpp -- my sample MP4 has bitdepth=8 in the header, while your sample MKV has bitdepth=10 in the header.
I have just tried your sample on my SuperiorOS (build 20220613-0631), and:
mpv starts in SW-render mode and cannot switch to HW-render mode,
X-plore will just show black screen with message: Internal codec error
I guess that means that:
either the underlying hardware does not have the required decoder,
or the driver for that hardware does not support this video format.
Oifan said:
You are right about the bpp -- my sample MP4 has bitdepth=8 in the header, while your sample MKV has bitdepth=10 in the header.
I have just tried your sample on my SuperiorOS (build 20220613-0631), and:
mpv starts in SW-render mode and cannot switch to HW-render mode,
X-plore will just show black screen with message: Internal codec error
I guess that means that:
either the underlying hardware does not have the required decoder,
or the driver for that hardware does not support this video format.
Click to expand...
Click to collapse
Thank you again for taking time to test and respond.
I find the lack of hardware support (if that is indeed the issue) to be very surprising. The 680 is a 2022 chip. not supporting a popular encoding format these days just seems so unlikely and strange. It's also not something I thought I have to check before I buy a phone, and even if i would look it up I would find that it does support it.
If it is a driver issue, than who is responsible? Qualcomm or Xiaomi? And is there any way of fixing it? (i.e. some sort of custom driver or official update)
magman2 said:
Thank you again for taking time to test and respond.
I find the lack of hardware support (if that is indeed the issue) to be very surprising. The 680 is a 2022 chip. not supporting a popular encoding format these days just seems so unlikely and strange. It's also not something I thought I have to check before I buy a phone, and even if i would look it up I would find that it does support it.
If it is a driver issue, than who is responsible? Qualcomm or Xiaomi? And is there any way of fixing it? (i.e. some sort of custom driver or official update)
Click to expand...
Click to collapse
I strongly believe it's just an issue of the Adreno 610 driver (so it will be fixed in a couple of days / weeks) -- check these 3 relevant info-pages:
https://www.gsmarena.com/xiaomi_redmi_note_11-11336.php
https://www.cpu-monkey.com/en/igpu-qualcomm_adreno_610-231
https://cpu-comparison.com/igpu/qualcomm-adreno-610/
Regarding who will fix it -- I believe it should be Google with the help of Xiaomi / Qualcomm.
Oifan said:
I strongly believe it's just an issue of the Adreno 610 driver (so it will be fixed in a couple of days / weeks) -- check these 3 relevant info-pages:
https://www.gsmarena.com/xiaomi_redmi_note_11-11336.php
https://www.cpu-monkey.com/en/igpu-qualcomm_adreno_610-231
https://cpu-comparison.com/igpu/qualcomm-adreno-610/
Regarding who will fix it -- I believe it should be Google with the help of Xiaomi / Qualcomm.
Click to expand...
Click to collapse
I really hope you are right, although I am assuming this issue was present since the phone launched and it still has not been fixed after a few months. At least I now have hope that it can be fixed.
There are other phones that equipped with Snapdragon 680 4G, I wonder if they can play HEVC 10bit videos with hardware acceleration. Hope it can be fixed too.
lovinamn said:
There are other phones that equipped with Snapdragon 680 4G, I wonder if they can play HEVC 10bit videos with hardware acceleration. Hope it can be fixed too.
Click to expand...
Click to collapse
Going by the list here: https://www.notebookcheck.net/Qualc...-Processor-Benchmarks-and-Specs.611368.0.html there seems to be several phones using that chip, and I could not find a mention of anyone with an issue online. That does not mean that there is no issue, after all I couldn't find any mention of the problem on the Redmi Note 11 until I posted it here, and that phone has been out for several months already. If, as the poster above suggested, the video decoder is part of the GPU and not the CPU, then the list of devices with an Adreno 610 is even larger (https://www.notebookcheck.net/Qualcomm-Adreno-610-GPU-Benchmarks-and-Specs.434054.0.html), and I can't find any mention of an issue with those devices either.
Basically what I am trying to say is that the problem seems to be a Note 11 problem, but for some reason nobody posted anything anywhere until now. So we need people with any of the similar devices to report if by them hardware decoding is present. Meanwhile I contacted Xiaomi and so far they told me to use a third party video player if the built in app does not play my desired format. I'll report back if/when they start being more helpful.
magman2 said:
That file my phone can play as well, but that file is an 8 bit file. It's the 10 bit encodes that the phone won't play with hardware acceleration. Can you try this file and say if you have hardware acceleration? I tested this file on my old Redmi Note 4 and it played back smoothly. My new Note 11 can't handle it:
https://jell.yfish.us/media/jellyfish-10-mbps-hd-hevc-10bit.mkv
Also, for the record, I am using the stock MIUI 13.
Click to expand...
Click to collapse
Hello. I downloaded and played the video on my Note 11 in VLC. I didn't have any problems playing it.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
N0b0dyy said:
Hello. I downloaded and played the video on my Note 11 in VLC. I didn't have any problems playing it.
View attachment 5645007
Click to expand...
Click to collapse
It plays totally smoothly? By me this file stutters like crazy in VLC.
How about MX Player? Does it let you select hardware acceleration? (the HW button in thew corner)
Yes it plays totally smoothly in VLC. I have tried MX player and there it stutters sometimes. And I tried selecting HW decoding and it showed that its not supported.
I am currently not on MIUI but on a custom rom.
N0b0dyy said:
Yes it plays totally smoothly in VLC. I have tried MX player and there it stutters sometimes. And I tried selecting HW decoding and it showed that its not supported.
I am currently not on MIUI but on a custom rom.
Click to expand...
Click to collapse
Interesting. In other files I tried - all of which had a lower bitrate than the jellyfish file - VLC was able to hit mostly smooth playback, while MX Player still stuttered a bit.
So my conclusion: VLC has better software decoding than MX Player. Meanwhile, whatever rom you are using is more performant than MIUI, which allows the video players to squeeze more out of the CPU in software decoding compared to my phone which is running MIUI. Still, even by you, the underlying problem remains: hardware decoding is unavailable, which is unacceptable.
As a side note, update on my attempts to get some sort of acknowledgement from Xiaomi about the issue: I sent several emails to their support address. Somewhat surprisingly they responded to all of them, but in none of their responses did they admit there is a problem. They mostly deflected and gave me uncommitted generic answers (i.e. "try a third party video player" or "the Xiaomi devices supports MPEG4, H.264/AVC, H.263/3GP and RMVB and other video formats. With the development of technology, the usage of some uncommon video formats has declined, and most mobile phones on the market support common formats such as MP4"). I also reported the issue on the built-in feedback option. Not too hopeful about that either, but at least that one should reach an actual developer.
Anyway, if anyone has an idea of something else to try, or some sort of fix for the problem I'd be happy to hear.
magman2 said:
Interesting. In other files I tried - all of which had a lower bitrate than the jellyfish file - VLC was able to hit mostly smooth playback, while MX Player still stuttered a bit.
So my conclusion: VLC has better software decoding than MX Player. Meanwhile, whatever rom you are using is more performant than MIUI, which allows the video players to squeeze more out of the CPU in software decoding compared to my phone which is running MIUI. Still, even by you, the underlying problem remains: hardware decoding is unavailable, which is unacceptable.
As a side note, update on my attempts to get some sort of acknowledgement from Xiaomi about the issue: I sent several emails to their support address. Somewhat surprisingly they responded to all of them, but in none of their responses did they admit there is a problem. They mostly deflected and gave me uncommitted generic answers (i.e. "try a third party video player" or "the Xiaomi devices supports MPEG4, H.264/AVC, H.263/3GP and RMVB and other video formats. With the development of technology, the usage of some uncommon video formats has declined, and most mobile phones on the market support common formats such as MP4"). I also reported the issue on the built-in feedback option. Not too hopeful about that either, but at least that one should reach an actual developer.
Anyway, if anyone has an idea of something else to try, or some sort of fix for the problem I'd be happy to hear.
Click to expand...
Click to collapse
I would recommend you to try to play several 10-bit videos + several 8-bit videos in mpv player (https://apkpure.com/mpv-android/is.xyz.mpv) and make screenshots of the bottom control panel when playing them -- see my screenshots below.
Then you can explain that for the 10-bit videos it's impossible to toggle the HW/SW rendering button and claim that you believe it's because of the present Adreno 610 driver is only supporting h265/HEVC(8-bit) and not 10-bit video streams (although the GPU supports it --> https://www.cpu-monkey.com/en/igpu-qualcomm_adreno_610-231).
Oifan said:
I would recommend you to try to play several 10-bit videos + several 8-bit videos in mpv player (https://apkpure.com/mpv-android/is.xyz.mpv) and make screenshots of the bottom control panel when playing them -- see my screenshots below.
Then you can explain that for the 10-bit videos it's impossible to toggle the HW/SW rendering button and claim that you believe it's because of the present Adreno 610 driver is only supporting h265/HEVC(8-bit) and not 10-bit video streams (although the GPU supports it --> https://www.cpu-monkey.com/en/igpu-qualcomm_adreno_610-231).
Click to expand...
Click to collapse
Thanks for the suggestion. I actually attempted something similar. I sent them a screen recording of the issue, including the stuttering video and the error message it shows every time I try to set it to HW. Unfortunately, they refuse to acknowledge the issue at all, and keep giving me those vague answers. I also sent the video as part of my report in the feedback app, but I have no way of knowing if anyone will look at it.
Meanwhile, I decided to try a slightly different tactic. Using a new email address I sent their support an email saying I want to buy a Note 11, but I was wondering if it has hardware decoding for 10 bit hevc. Their response: "we regret to inform you that as of now we don't have any official information regarding this. Generally speaking, Redmi series phones will support common video decoding methods in the market, but lesser used decoding methods are not included for the time being." It seems they just will not commit to any answer no matter how you ask it. You'd think a company would know what their product can do.
magman2 said:
Thanks for the suggestion. I actually attempted something similar. I sent them a screen recording of the issue, including the stuttering video and the error message it shows every time I try to set it to HW. Unfortunately, they refuse to acknowledge the issue at all, and keep giving me those vague answers. I also sent the video as part of my report in the feedback app, but I have no way of knowing if anyone will look at it.
Meanwhile, I decided to try a slightly different tactic. Using a new email address I sent their support an email saying I want to buy a Note 11, but I was wondering if it has hardware decoding for 10 bit hevc. Their response: "we regret to inform you that as of now we don't have any official information regarding this. Generally speaking, Redmi series phones will support common video decoding methods in the market, but lesser used decoding methods are not included for the time being." It seems they just will not commit to any answer no matter how you ask it. You'd think a company would know what their product can do.
Click to expand...
Click to collapse
Wow, you are quite resourceful I must say -- nice move...
To me it looks like the development team (in Xiaomi / Google) is either behind schedule or can't keep up with the latest video formats -- so they are just bouncing emails like yours with a standard "not included for the time being" response.
Hopefully there will be more displeased (potential) customers complaining about this, creating sufficient pressure on these corporations so that they will be sufficiently motivated to add the missing codec support to the current graphics driver -- I guess this issue isn't only with Adreno 610, but with some other GPUs as well.
However, adding features to a graphics driver on any OS is a tricky thing -- they need to test the new driver thoroughly so that these additions won't cause any crashes... Meaning it will take some weeks or even months from the moment they decide to add this feature.
Official Firmware of RN11 had this problem for me, I installed Custom ROMS and Problem was solved for most part. Movies from PSArips run smoothly on Mi Video especially. Some 10 bit videos higher bitrate struggle sometime when trying to fast forward.
tsdq512 said:
Official Firmware of RN11 had this problem for me, I installed Custom ROMS and Problem was solved for most part. Movies from PSArips run smoothly on Mi Video especially. Some 10 bit videos higher bitrate struggle sometime when trying to fast forward.
Click to expand...
Click to collapse
That does not really sound like you solved the problem. Instead you are mostly brute forcing your way through with software decoding. Struggling when trying to fast forward is not something I find acceptable in a modern phone, especially one that has the hardware to play it properly, and in no place did the manufacturer communicate the issues on the RN11. Meaning there is no reason to assume the phone will not support it. I tested hardware decoding on the Redmi Note 4, 8, 9 and 10 and they all play it with no problem.

Categories

Resources