[TIP] youtube performance: studdering/shuddering/dropped-frames? NEED AUDIO OUT! - Shield Android TV General

Just leaving a quick note that would have saved me a few hours of headache...
I recently had an nvidia shield tv on my desk connected through an hdmi-to-dvi cable (instead of to a regular hdmi port), and for the longest time couldn't figure out why youtube (and so it would seem, *only* youtube) was having horrible playback (in the "about two frames per second" range).
After too much time spent diagnosing the issue, it turned out that there were the relevant ones:
Code:
07-01 08:33:49.848 261 414 E nvaudio_route: unable to find path 'speaker'
07-01 08:33:49.848 261 414 E nvaudio_route: Failed to reset path speaker.
Adding bluetooth headphones fixed youtube playback!
FYI.

Related

auto BT headphone pairing?

Anyone know of a way to get a bluetooth headphone paired up and ready to listen with a single click? Currently I have to activate BT via Comm manager, then enter BT settings, select the headphones and "Set as wireless stereo" all before I actually start any music playing. Ideally it would be good to be able to chain those commands into a macro which also launched the music player - kind a music mode button.
Maybe this is a feature of later roms? I'm currently still using Black 2.5, waiting for compelling reasons to move on.
Cheers
PP
You can write a script but you must have MortScript installed (available here http://www.sto-helit.de/index.php?module=page&entry=ms_overview&action=view)
Basically you can get it to check the registry and if the Headphone profile has been detected (i.e. when you switch on your headphones), a series of keystokes can then set the 'wireless setreo' mode by opening the Bluetoock devieces screen ect, then your favorites music player can be launched.
You can also get it to close your music player when you switch off your headphones by checking the registry fir when headset profile is disabled.
Downsides are that Bluetooth must already be actived on the handset (so 2click solution ) before headphones are switched on. Also, the keystrokes will fail to start wireless stereo if you add/remove bluetooth devices because the relative positions of the listed devices will change...
Here is an example that works on my device - may need changes for yours;
RunCheck = 0
While (1)
HandsFreeState = RegRead("HKLM", "System\State\Hardware", "Handsfree")
If (HandsFreeState = 1 && RunCheck = 0)
ToggleDisplay(1)
Run "Windows\Bluetooth Shortcut.lnk"
Sleep 2000
MouseDown 25, 286
Sleep 1000
MouseUp 25,286
Sleep 500
SendDown
SendDown
SendCR
SendDown
SendCR
MouseDown 196, 309
Sleep 1000
MouseUp 196,309
Sleep 1000
SendCR
SendDown
SendCR
MouseDown 196, 309
Sleep 1000
MouseUp 196,309
Sleep 2000
Close "Settings"
Sleep 2000
RunCheck = 1
EndIf
If (HandsFreeState = 0 && RunCheck = 1)
# - Enter any code you wish to execute on disconnect here.
ToggleDisplay(0)
RunCheck = 0
EndIf
Sleep (1000)
EndWhile
Thanks for that. Do you find it's stable - I used to do similar things with the old Windows 3 macro recorder, but it often used to screw up when a window didn't open in time. It would be nice if there was a program to do it, I imagine one day the music app will do a quick poll to see if a device is available.
Yes its stable -I have it run on startup so it constantly running in the background. There maybe some battery usage whilst it is doing this.
I heard some BT stereo headphones automatically connect properly once you update to the latest drivers for the headphones.
Bil
I dont understand. Why do you need to constantly re-pair your headset?
With mine (iclip r35) it was only a 5 click job anyway.
1 click on Comm Mgr
2 Click on BT
1 Click switch on Headset
2 Click pair headset
3 click play music button on headset.
Takes less time to do than it does to write it!
That was with Black 2.5 too. only one problem I noticed was that B2.5 absolutely having the h/s powered off before activating bt via com mgr.
Black Majik is the same but seems slight better range and quality than B2.5
secret_squirrel said:
I dont understand. Why do you need to constantly re-pair your headset?
With mine (iclip r35) it was only a 5 click job anyway.
1 click on Comm Mgr
2 Click on BT
1 Click switch on Headset
2 Click pair headset
3 click play music button on headset.
Takes less time to do than it does to write it!
Click to expand...
Click to collapse
I don't have to re-pair. I have to:
1. click on CommMgr
2. click on BT
3. turn on phones
4. Settings, Bluetooth to bring up the BT settings window
5. click-hold on Bluephone entry under paired devices
6. select "Set as wireless audio" - phones are now active and linked
7. close BT dialog
8. close CommMgr
9. start music software
Your setup seems less fiddly, somehow your headphones are doing some of the work.
Auto BT Pairing
Have your enabled the (Make this device visible to other devices?) Under Start/Settings/Connections/Bluetooth then select Mode. If that doesn't work there might be another fix if you check out:
http://www.jetwaremobile.com

[Q] DTS/DD passthrough

Has anyone got this working? This is really my main complaint with this device. Stereo is like so 1980s!
XBMC have DD/DTS passthrough.
I'm using xbmc. Is there a certain test version you use to get it to work?
Sent from my Nexus 4 using Tapatalk 2
I use the one from july 14th. The passthrough is enabled in settings when you select HDMI as output.
Settings - > System - > Audio - > HDMI as output and 5.1 (or more) as number of speakers.
And it actually works? It shows up on mine too, but nothing comes out. I don't recall which version I'm using. I'll check it out later and report back. Thanks.
Sent from my Nexus 4 using Tapatalk 2
I'm using this one http://mirrors.xbmc.org/test-builds...ec63cd-adddroidlibstagefright-armeabi-v7a.apk
But I had it working also with other stagefright versions.
dalamario said:
I'm using this one http://mirrors.xbmc.org/test-builds...ec63cd-adddroidlibstagefright-armeabi-v7a.apk
But I had it working also with other stagefright versions.
Click to expand...
Click to collapse
I tried the linked version as well as the latest nightly and test versions. None have worked with DTS for me. I even tried on receivers from 2 different brands. They both do the exact same thing and release this loud noise instead of any sound. Does your receiver actually say DTS on it when playing the files?
Someone got it working on their Onkyo. I've been watching stuff with DTS and DD 5.1 this way on my TX-SR606 for several weeks on XBMC (libstagefright nightly builds). I checked my speakers, it does work.
"Go into Settings > Hardware Setup > HDMI >
Turn Off HDMI Control RIHD
This will now show an option called Audio TV Out (This passes audio to the TV when you don't want to use your speakers)
Turn this on and Voila you now have DD/DTS on every video you play"
This is from the "DTS audio via XBMC possible?" thread on Ouyaforum_dot_com (I can't post links yet).
If that doesn't work on your receiver, there's another (annoying) way: Start playing movie file, turn off receiver, wait a couple of seconds, turn it back on. The DTS or DD audio should light up. Sometimes it takes a couple of tries for it to work. If you pause or stop and replay, you have to do that same power cycling again.
reposter432 said:
Someone got it working on their Onkyo. I've been watching stuff with DTS and DD 5.1 this way on my TX-SR606 for several weeks on XBMC (libstagefright nightly builds). I checked my speakers, it does work.
"Go into Settings > Hardware Setup > HDMI >
Turn Off HDMI Control RIHD
This will now show an option called Audio TV Out (This passes audio to the TV when you don't want to use your speakers)
Turn this on and Voila you now have DD/DTS on every video you play"
This is from the "DTS audio via XBMC possible?" thread on Ouyaforum_dot_com (I can't post links yet).
If that doesn't work on your receiver, there's another (annoying) way: Start playing movie file, turn off receiver, wait a couple of seconds, turn it back on. The DTS or DD audio should light up. Sometimes it takes a couple of tries for it to work. If you pause or stop and replay, you have to do that same power cycling again.
Click to expand...
Click to collapse
Ok just got mine to work. I have a Denon and changing my Audio out to TV only stopped any audio for me. What I did was have to go into input setting and change the decode from Auto to to DTS (which stopped the audio) then back to auto and it works for DD and DTS. Turning my receiver off and on and changing channels didn't work either for me.
I tried fast forwarding and once in a while it would kick back to the loud sound and I would have to change it back. Tomorrow I'll watch a whole movie without fast forwarding it and see if it does it randomly or just with occasional FF.
Thanks for the help.
Actually, leaving it on DTS mode works too if you're watching a DTS movie. I have no DD only option, so going back to auto seems to work best for me.
I'm just happy there's hope for this to work automatically in the future. Then I will finally be done with my HTPC! Yay!
Hello guys,
I have a big issue with HDMI passthrough on XBMC on my Ouya. May be (I hope) you can help me :fingers-crossed:
My install is a little bit strange : I have an old audio receiver with no HDMI connector So, I connect my HDMI devices on my TV (Sony KDL-V5500) and use optical output from my TV to my Audio receiver (passthrough) that will decode audio stream.
With all my devices (XBOX, Raspberry Pi and XBMC, Internet provider TV box), it works very well... My TV has sound, and if I want best quality, it is possible to start receiver (and decrease sound on TV).
With my Ouya, sound is not sound but noise... With DD or DTS sound it is the same thing. I tried to stop TV and restart it to reset audio hardware but no way.
An idea ? Is my TV not compliant with HDMI passthrough from my Ouya ?
Thank you for your help...
Guys, playing movies on my ouya was the main reason for me to get it.
I've managed to solve dts issue, but only partly.
Follow these steps:
1. Hookup ouya to amplituner
2. Hookup amplituner to tv
3. Turn everything on, and set hdmi source on amplituner to ouya
4. Make sure hdmi output is set in xbmc settings for sound on ouya and you selected 5.1 speaker config or better
5. Start playing dts movie in xbmc ( it must not be dts-ma hd)
6. You get static in your speakers
7. Turn of amplituner so it switches to pass through mode
8. Wait couple seconds
9. Power on amplituner, so it recreates hdmi handshake with ouya
10. Profit, you have valid hdmi session and dts plays nice
There are some drawbacks.
1. If you pause a movie you have to redo steps 7,8 and 9
2. It doesn't work for dts-ma hd sound
Can someone tell me if dts-ma hd doesn't work because android kernel doesn't support it or for some other reason ?
I googled it A LOT, and found only bits and pieces of information, some say it's android kernel limitation and some say it depends on app I'm using. Anyway I'd like to enjoy all types of sound in my movies.

[Q] Possible to get SPDIF audio without a TV attached?

I have an Amazon Fire TV which I was hoping I could turn into a headless music streamer. I've sideloaded XBMC and got it streaming music over my network (controlled via remote) outputting audio via optical SPDIF to my receiver.
However, if there is no TV connected to the HDMI port (at least briefly) since booting, I get no sound on SPDIF.
I checked out the system log while XBMC is failing to play a track and I see this:
W/AudioTrack( 2210): obtainBuffer timed out (is the CPU pegged?) 0x5b990420 name=0user=0001d400, server=0001c800
W/AudioTrack( 2210): obtainBuffer timed out (is the CPU pegged?) 0x5b990420 name=0user=0001d400, server=0001c800
W/AudioTrack( 2210): obtainBuffer timed out (is the CPU pegged?) 0x5b990420 name=0user=0001d400, server=0001c800
E/AudioHardwareALSA( 277): error pcm_write returned -5
E/AudioStreamOutALSA( 277): pcm_write returned n < 0
W/AudioFlinger( 277): write blocked for 40004 msecs, 120 delayed writes, thread 0x419ba5f0
W/AudioTrack( 2210): obtainBuffer timed out (is the CPU pegged?) 0x5b990420 name=0user=0001d400, server=0001cc00
W/AudioTrack( 2210): obtainBuffer timed out (is the CPU pegged?) 0x5b990420 name=0user=0001d800, server=0001cc00
Click to expand...
Click to collapse
If I hotplug a TV into the HDMI port while this is happening, those lines stop appearing in the log and music starts to play (on SPDIF).
I can then unplug the TV from HDMI and the music continues to play fine--until the next reboot. It seems that the FTV needs to see *something* on the HDMI port before initializing the audio system.
I bought a "fit headless 4k" HDMI display emulator, hoping that it would make the FTV happy. It didn't.
Any ideas? I'm open to any workaround, software or hardware that is easy and cheap (and doesn't require having a bulky thing attached to the FTV's HDMI port)...
lunkhound said:
I have an Amazon Fire TV which I was hoping I could turn into a headless music streamer. I've sideloaded XBMC and got it streaming music over my network (controlled via remote) outputting audio via optical SPDIF to my receiver.
However, if there is no TV connected to the HDMI port (at least briefly) since booting, I get no sound on SPDIF.
I checked out the system log while XBMC is failing to play a track and I see this:
If I hotplug a TV into the HDMI port while this is happening, those lines stop appearing in the log and music starts to play (on SPDIF).
I can then unplug the TV from HDMI and the music continues to play fine--until the next reboot. It seems that the FTV needs to see *something* on the HDMI port before initializing the audio system.
I bought a "fit headless 4k" HDMI display emulator, hoping that it would make the FTV happy. It didn't.
Any ideas? I'm open to any workaround, software or hardware that is easy and cheap (and doesn't require having a bulky thing attached to the FTV's HDMI port)...
Click to expand...
Click to collapse
There is information on this in the Fire TV thread on the XBMC.org forums.
Basically, optical audio out will not work without a connected HDMI device
which supports HDCP. People have tried using devices such as HDMI
splitters with varied success. I ran into the same issue using a DVI monitor
(with an HDMI to DVI adapter). The monitor is supposed to support HDCP,
but did not work -- so has to be an HDCP compatible HDMI monitor.
wunderdrug said:
There is information on this in the Fire TV thread on the XBMC.org forums.
Basically, optical audio out will not work without a connected HDMI device
which supports HDCP. People have tried using devices such as HDMI
splitters with varied success. I ran into the same issue using a DVI monitor
(with an HDMI to DVI adapter). The monitor is supposed to support HDCP,
but did not work -- so has to be an HDCP compatible HDMI monitor.
Click to expand...
Click to collapse
Thanks for the reply. I've scanned (and posted in) the XBMC forum thread on this, but since it seems to be more of an OS level issue rather than an XBMC issue I think this forum is better suited. Also, last I checked, there were only some suggestions of devices that MIGHT work, but nothing yet on anything that actually DID work.
One device that did work is my Denon 3311ci AV receiver. When the FTV is attached to one of the HDMI inputs on the AVR (and with the AVR not connected to any TV), FTV would output SPDIF audio.
Perhaps the reason for the failure of the fit-Headless-4k HDMI display emulator, is lack of HDCP support. But that's just a guess.

Getting 5.1 surround sound via optical cable.

I have tried every configuration imaginable on this i68 octacore android box I have running spmc latest version and cannot get it to produce sound out my .1 (woofer). I get sound out of all five channels but nothing to the sub. And when I have it configured where the sub does get a signal (the light turns green) I get no sound period out of any speakers including the sub. I have tried everything audio passthrough iec, raw, set to 5.1 channels, set to 2 channels, ac3 capable receiver, dts capable receiever .......... mash head on keyboard on and on. The only option I have not tried is enabling audio dsp processing (which is what I think will fix this) but it will not allow me to enable this, it says that I need a dsp addon to use audio digital signal processing. I've looked everywhere and have seen no audio dsp addons. I've also read that they do not any audio dsp addons for android based devices. Can anyone help? All my other devices work fine with my receiver and fiber optic cabls such as my dish network cable box.

Bluetooth volume too quiet on Firestick Lite

I have a 4K firestick plugged into a projector, and over Bluetooth to a surround system.
This works great, but since it's only a HD projector I thought I could just get a Lite firestick and use the 4K one elsewhere.
The problem is that the volume over bluetooth is so low it's unusable.
Other people have this issue and a temporary fix is posted here:
Firestick Lite low volume Fixed - YouTube
Specifically, having to run Adb shell Code : service call audio 7 i32 6 i32 15 i32 10
but it's not practical to do this every time the family want to watch something.
I spoke with 5 amazon representatives today, most of whom didn't seem to even understand the issue and they aren't allowed to see the external link anyway.
The fix for me is to use my 4K firestick and put my 1 day old LITE in the drawer since it's unusable.
Any other ideas most welcome!
Steve

Categories

Resources