Pass-through audio works non-deterministically since Oct update

Hi there,
since the October update, any movie or show I try to start that uses some sort of audio passthrough (usually DD+) starts with no audio. My AVR does not switch from the GUI stereo PCM to passthrough. When I wait long enough or when I mute/unmute, it sometimes works and then works for the whole show.
I am unable to reproduce a workaround, but the issue occurs consistently.

Here are my debug logs (removed DB password from advanced settings, but I guess that is a password the log uploader could remove itself ;)): https://paste.osmc.tv/odisoqiret

Another issue I observed is that when I start my AVR it does not switch to the OSMC input channel automatically (as before), but to TV Audio.

Can you reboot, enable debugging and play the file again?

Cheers

Sam

Yes, can do.
https://paste.osmc.tv/fulinaroxe

This time, I started the episode, let it run for perhaps 15s, rewind to start, pause, play, and the the sound switched to DD+.

I see that you have a2dp-app-osmc, bluetooth, bluez, pulseaudio-module-bluetooth installed. Are you actively using any BT device with the Vero?

Otherwise I suggest to uninstall it and try again: sudo apt-get remove --purge a2dp-app-osmc bluetooth bluez pulseaudio-module-bluetooth

...
2020-10-25 20:30:52.122 T:3471831264    INFO: CAEStreamParser::TrySyncAC3 - E-AC3 stream detected (6 channels, 48000Hz)
2020-10-25 20:30:52.122 T:3471831264  NOTICE: Creating audio stream (codec id: 86056, channels: 6, sample rate: 48000, pass-through)
2020-10-25 20:30:52.122 T:4017090784    INFO: CActiveAESink::OpenSink - initialize sink
2020-10-25 20:30:52.122 T:4017090784   DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:hdmi:CARD=AMLM8AUDIO,DEV=0
2020-10-25 20:30:52.123 T:4017090784    INFO: CAESinkALSA::Initialize - Requested layout: RAW, RAW
2020-10-25 20:30:52.123 T:4017090784    INFO: CAESinkALSA::Initialize - set digital_codec 4
2020-10-25 20:30:52.123 T:4017090784   DEBUG: CAESinkALSA::Initialize -- unmuting HDMI
2020-10-25 20:30:52.123 T:4017090784    INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=AMLM8AUDIO,DEV=0"
2020-10-25 20:30:52.124 T:3471831264   DEBUG: CVideoPlayerAudio:: synctype set to 0: clock feedback
2020-10-25 20:30:52.124 T:3471831264   ERROR: CAEStreamInfo::GetDuration - invalid stream type
2020-10-25 20:30:52.128 T:4017090784   ERROR: Previous line repeats 1 times.
2020-10-25 20:30:52.128 T:4017090784    INFO: CAESinkALSA - Unable to open device "hdmi:CARD=AMLM8AUDIO,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x0e" for playback
2020-10-25 20:30:52.129 T:4017090784    INFO: CAESinkALSA - Unable to open device "hdmi:CARD=AMLM8AUDIO,DEV=0" for playback
2020-10-25 20:30:52.129 T:4017090784   ERROR: CAESinkALSA::Initialize - failed to initialize device "hdmi:CARD=AMLM8AUDIO,DEV=0" with params AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x0e even for stereo
2020-10-25 20:30:52.130 T:4017090784   DEBUG: CActiveAESink::OpenSink - trying to open device ALSA:default
2020-10-25 20:30:52.130 T:4017090784    INFO: CAESinkALSA::Initialize - Requested layout: RAW, RAW
2020-10-25 20:30:52.130 T:4017090784    INFO: CAESinkALSA::Initialize - set digital_codec 4
2020-10-25 20:30:52.130 T:4017090784   DEBUG: CAESinkALSA::Initialize -- unmuting HDMI
2020-10-25 20:30:52.131 T:4017090784    INFO: CAESinkALSA::Initialize - Attempting to open device "default"
2020-10-25 20:30:52.132 T:4017090784    INFO: CAESinkALSA - Unable to open device "default:AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x0e" for playback
2020-10-25 20:30:52.136 T:3492270304   DEBUG: CAMLCodec::SetSpeed, speed(0)
2020-10-25 20:30:52.139 T:4017090784    INFO: CAESinkALSA - Unable to open device "default:AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x0e" for playback
2020-10-25 20:30:52.142 T:4017090784    INFO: CAESinkALSA::Initialize - Opened device "default"
2020-10-25 20:30:52.142 T:4017090784   DEBUG: CAESinkALSA::InitializeHW - Request: periodSize 8192, bufferSize 32768
2020-10-25 20:30:52.149 T:4017090784   DEBUG: CAESinkALSA::InitializeHW - Got: periodSize 8192, bufferSize 32768
2020-10-25 20:30:52.149 T:4017090784   DEBUG: CAESinkALSA::InitializeHW - Setting timeout to 171 ms
2020-10-25 20:30:52.149 T:4017090784    INFO: CAESinkALSA::Initialize - speaker layout 0
2020-10-25 20:30:52.155 T:4017090784   DEBUG: CAESinkALSA::GetChannelLayout - Input Channel Count: 2 Output Channel Count: 2
2020-10-25 20:30:52.155 T:4017090784   DEBUG: CAESinkALSA::GetChannelLayout - Requested Layout: RAW, RAW
2020-10-25 20:30:52.155 T:4017090784   DEBUG: CAESinkALSA::GetChannelLayout - Got Layout: RAW, RAW (ALSA: none) (CEA: 0)
2020-10-25 20:30:52.155 T:4017090784   DEBUG: CActiveAESink::OpenSink - ALSA Initialized:
2020-10-25 20:30:52.155 T:4017090784   DEBUG:   Output Device : Playback/recording through the PulseAudio sound server
2020-10-25 20:30:52.155 T:4017090784   DEBUG:   Sample Rate   : 192000
2020-10-25 20:30:52.155 T:4017090784   DEBUG:   Sample Format : AE_FMT_S16NE
2020-10-25 20:30:52.155 T:4017090784   DEBUG:   Channel Count : 2
2020-10-25 20:30:52.155 T:4017090784   DEBUG:   Channel Layout: RAW, RAW
2020-10-25 20:30:52.155 T:4017090784   DEBUG:   Frames        : 8192
2020-10-25 20:30:52.155 T:4017090784   DEBUG:   Frame Size    : 4
...

Yeah, sometimes I stream music from a mobile phone to Kodi. Do you think there is a way around that?

This is my AVR – so at least in the log snippet there is nothing with bluetooth, right?

Look at the last lines: It only works when it falls back to PulseAudio, so pulseaudio has hijacked something here. I’m not too familiar with this, might be that @grahamh and/or @fzinken can help/explain more to this.

1 Like

Ok, so I did apt-get remove --purge a2dp-app-osmc bluetooth bluez pulseaudio-module-bluetooth (it said there is no bluetooth package, but nevermind) and also apt autoremove to get rid of armv7-libass-osmc armv7-libnfs-osmc dh-python gnupg-agent libavcodec57 libavresample3 libavutil55 libbind9-140 libcdio13 libcryptsetup4 libdevmapper-event1.02.1 libdns162 libenca0 libevent-2.0-5 libfile-copy-recursive-perl libgdbm3 libicu57 libisc160 libisccc140 libisccfg140 libiso9660-8 liblvm2app2.2 liblwres141 libncurses5 libntfs-3g871 libperl5.24 libprocps6 libpython3.5-minimal libpython3.5-stdlib libsbc1 libssl1.0.2 libswresample2 libunistring0 libva-drm1 libva-x11-1 libva1 libvpx4 libwebpmux2 libx264-148 libx265-95 pulseaudio-module-zeroconf python-imaging python3-distutils python3-lib2to3 python3.5 python3.5-minimal update-inetd.

After a reboot the sound works as intended, so this is really nice!

I do not really use the bluetooth streaming these days, but of course it would be nice to have it back.

Thank you again for you help, this is an awesome project and one of the (perhaps the) best support experience I ever had!

We do have an experimental BT audio solution which doesn’t need pulse. It needs some work to make it easy to install but I hope we can open a testing thread for it shortly.

2 Likes