Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,814,166 Members 46,069 Now Online
XDA Developers Android and Mobile Development Forum

[FIX] Fix poor AAC streaming performance (Pandora, Slacker, etc) on Froyo

Tip us?
 
mrcrassic
Old
(Last edited by mrcrassic; 27th July 2010 at 08:18 PM.)
#1  
mrcrassic's Avatar
Senior Member - OP
Thanks Meter 40
Posts: 352
Join Date: Sep 2007
Location: New York
Default [FIX] Fix poor AAC streaming performance (Pandora, Slacker, etc) on Froyo

When I installed Froyo on my N1, I found that streaming quality over Pandora suffered tremendously; low-quality was unbearable, and high-quality sounded worse than low-quality normally does. The change to StageFright from OpenCore is to blame here, while it improves HTTP streaming, it's AAC decoder doesn't decode LC-AAC streams properly.

To disable it temporarily, use
Code:
adb setprop media.stagefright.enable-player false
and restart any applications actively playing anything. To disable it permanently, pull build.prop from /system and change the value there. When you restart, it should be disabled; use adb getprop to verify.

Of course, the phone needs to be rooted for this to happen, as r/w access to /system is required.
The Following User Says Thank You to mrcrassic For This Useful Post: [ Click to Expand ]
 
propain4444
Old
(Last edited by propain4444; 27th July 2010 at 10:05 PM.)
#2  
Senior Member
Thanks Meter 10
Posts: 112
Join Date: Jun 2010
THANK YOU!!!

I was so completely frustrated by this, as my phone is my primary source of music in my car via Rhapsody, that i had just rolled back to 2.1 yesterday.

I just verified your 'fix' and my sound is now perfect again!

Side note to everyone out there, setprop is a shell command, so you actual command to set the property is:
adb shell setprop media.stagefright.enable-player false

But there's no reason you shouldn't change the property in your build.prop file if you listen to streaming music regularly.

Again, THANK YOU for this fix!!

One other side note: this change also appears to fix the bluetooth "skipping" issue that appeared in 2.2 as well.
 
Mikey
Old
#3  
Mikey's Avatar
Retired Senior Moderator
Thanks Meter 1,027
Posts: 5,473
Join Date: Oct 2007
Location: Chicago

 
DONATE TO ME
HUGE difference for the better

Thank you
Code:

Phone: Samsung Galaxy Nexus               Tablet: Google Nexus 7
ROM: PURITY JDQ39                         ROM: PURITY JDQ39
Kernel: AK Kernel Diamond ed.             Kernel: M-Kernel
Baseband: I925OUGLH1                      Bootloader: v4.18
Recovery: TWRP v2.4.3.0                   Recovery: TWRP v2.4.3.0
 
Chopes
Old
#4  
Senior Member
Thanks Meter 7
Posts: 426
Join Date: Apr 2010
Quote:
Originally Posted by cnunez1987 View Post
When I installed Froyo on my N1, I found that streaming quality over Pandora suffered tremendously; low-quality was unbearable, and high-quality sounded worse than low-quality normally does. The change to StageFright from OpenCore is to blame here, while it improves HTTP streaming, it's AAC decoder doesn't decode LC-AAC streams properly.

To disable it temporarily, use
Code:
adb setprop media.stagefright.enable-player false
and restart any applications actively playing anything. To disable it permanently, pull build.prop from /system and change the value there. When you restart, it should be disabled; use adb getprop to verify.

Of course, the phone needs to be rooted for this to happen, as r/w access to /system is required.
Thanks for the info man


Just curious though, does anyone know the cause of why this is? Maybe a different decoder would have more success?
 
homealonedude
Old
#5  
Junior Member
Thanks Meter 0
Posts: 11
Join Date: Nov 2006
Location: Euless, Texas
Thanks, sounds much better.

Now I have to remember to change my build.prop nearly everyday when I flash a new rom.
 
PeRRiiN
Old
#6  
Senior Member
Thanks Meter 1
Posts: 455
Join Date: Apr 2010
Location: Justice
I'm rooted and pulled the build.prop file, but what program do I need to open the build.prop file and edit it?
Device: Nexus One (T-mobile - Rooted)
ROM: CM6.1 RC1
Radio: 5.08.00.04
Recovery Image: ClockworkMod
Launcher: GO Launcher
Keyboard: Swype
 
Manacit
Old
#7  
Senior Member
Thanks Meter 8
Posts: 184
Join Date: Jan 2009
Location: Seattle
Quote:
Originally Posted by PeRRiiN View Post
I'm rooted and pulled the build.prop file, but what program do I need to open the build.prop file and edit it?

any text editor, notepad included, will work
Galaxy Nexus
Nexus S - Returned
Nexus One - Sold
T-Mobile G1 - Sold
 
PeRRiiN
Old
#8  
Senior Member
Thanks Meter 1
Posts: 455
Join Date: Apr 2010
Location: Justice
Quote:
Originally Posted by Manacit View Post
any text editor, notepad included, will work
Thank you, I'll try it out.
Device: Nexus One (T-mobile - Rooted)
ROM: CM6.1 RC1
Radio: 5.08.00.04
Recovery Image: ClockworkMod
Launcher: GO Launcher
Keyboard: Swype
 
gofizzle
Old
#9  
Member
Thanks Meter 1
Posts: 63
Join Date: Nov 2009
Location: Jacksonville
Thanks so much for the fix. Now I can listen to my tunes without some of the lyrics sounding like a Chimpmunks sing-a-long!
Nexus One
ROM: OxygeN1mod-2011.12.10
Recovery: RA-passion-v2.2.1
 
venelar
Old
#10  
venelar's Avatar
Senior Member
Thanks Meter 363
Posts: 1,625
Join Date: Jan 2007
Location: Baton Rouge
Thanks for this! Having some trouble pulling it off though I'm new to android.

I have root/unlocked, and have successfully used the adb pull command to pull the build.prop file. I've got the file edited, but cannot seem to get it to push back to the device.

Here is my problem if anyone would be willing to point me to the correct method.
Be thankful...donate to your cooks AND XDA!
XDA is not a service or a store, these are real people spending their own valuable time... Thank them.

Nexus 5: Omni - FrancoKernel

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Add Some Power to First Generation Snapdragon CPUs

Some older devices still remain very popular. Phones like theHTC Desire, Sony Ericsson … more

Android M Mentions Spotted in Android Code Review

While we are still waiting for Android L to be officially released, the first mentions of … more

Create a Simple Custom Launcher from Scratch

When you are starting your journey intoany sort of development, it’s never easy at the … more