Audio passthrough not available after reinstall - Phobios - 2021-08-27
I have just now reinstalled kodi 19.1 on a fresh copy of Ubuntu 20.04, and I cannot enable audio passthrough to my receiver anymore. My previous installs on the same hardware and the same receiver never restricted me in this way, so I am curious if anyone knows why this is all suddenly the case. Thank you.
RE: Audio passthrough not available after reinstall - black_eagle - 2021-08-27
What are you trying to pass through? If it's TrueHD or DTS-HD then note that pulseaudio is unable to pass them through. In any case, a debug log (wiki) will show what Kodi thinks it can and can't use audio-wise.
RE: Audio passthrough not available after reinstall - Phobios - 2021-08-27
Will be getting a new receiver soon where I would want TrueHD and DTS-HD passthrough available. Right now it is mainly DTS I want to be able to pass through, but is not working for me.
This is my log file: https://paste.kodi.tv/unucitupig.kodi
I tried disabling pulseaudio by setting autospawn=no in /etc/pulse/client.conf, but to no avail. Is there any other way to disable pulseaudio and enable alsa?
RE: Audio passthrough not available after reinstall - asavah - 2021-08-27
(2021-08-27, 19:36)Phobios Wrote: I tried disabling pulseaudio by setting autospawn=no in /etc/pulse/client.conf, but to no avail. Is there any other way to disable pulseaudio and enable alsa?
start Kodi with KODI_AE_SINK=ALSA kodi
RE: Audio passthrough not available after reinstall - black_eagle - 2021-08-27
pasuspender -- env KODI_AE_SINK=ALSA kodi in a terminal should do it. Personally, I have disabled pulse entirely by renaming it in /bin to disable-pulseaudio . I can't really recommend this but after a reboot, pulse obviously won't start. As my PC runs Kodi 24/7 in a separate X window (on the tv) this works for me and Kodi uses ALSA. If I need my desktop to output sound (same PC, different X window for my desktop), I just start pulse with /bin/disable-pulseaudio and then kill it when I'm done.
Probably a more 'proper way' is
xml: systemctl --user mask pulseaudio.socket #unmask to revert
systemctl --user stop pulseaudio.service
Then start Kodi.
RE: Audio passthrough not available after reinstall - jawilljr - 2021-08-27
(2021-08-27, 19:36)Phobios Wrote: Will be getting a new receiver soon where I would want TrueHD and DTS-HD passthrough available. Right now it is mainly DTS I want to be able to pass through, but is not working for me.
This is my log file: https://paste.kodi.tv/unucitupig.kodi
I tried disabling pulseaudio by setting autospawn=no in /etc/pulse/client.conf, but to no avail. Is there any other way to disable pulseaudio and enable alsa? Here is a small script to disable pulseaudio and start kodi
Code: #!/bin/bash
#stop pulseaudio
systemctl --user stop pulseaudio.socket
systemctl --user stop pulseaudio.service
KODI_AE_SINK=ALSA kodi --standalone
#restart pulseaudio
systemctl --user start pulseaudio.socket
systemctl --user start pulseaudio.service
Name it whatever you want, and of course make it executable.
RE: Audio passthrough not available after reinstall - Phobios - 2021-08-27
Thank you. That seems to have disabled pulseaudio and enabled Alsa. Unfortunately there is no sound anymore on kodi. There are a bunch of options as outputs audio devices, and none of them are working :/ Audio on other apps in Ubuntu seem to be working though.
RE: Audio passthrough not available after reinstall - Phobios - 2021-08-29
For some reason audio started working without me doing anything, but audio only works in the GUI, and whenever I start playing a video it goes silent.
The following devices are listed for ALSA
Code: user@kodi:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC233 Analog [ALC233 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 7: HDMI 1 [HDMI 1]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 8: HDMI 2 [HDMI 2]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 9: HDMI 3 [HDMI 3]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 10: HDMI 4 [HDMI 4]
Subdevices: 1/1
Subdevice #0: subdevice #0
But it is odd, because I do not have 4 HDMI outs, so why are so many listed? Have tried selecting all of them in kodi, but none of them work.
The following is log output for when trying to play a video file
Code: 2021-08-29 08:10:02.500 T:1338 INFO <general>: VideoPlayer::OpenFile: smb://192.168.1.1/movies/movie.mkv
2021-08-29 08:10:02.501 T:2192 INFO <general>: Creating InputStream
2021-08-29 08:10:03.301 T:2192 INFO <general>: Creating Demuxer
2021-08-29 08:10:04.825 T:2192 INFO <general>: Opening stream: 0 source: 256
2021-08-29 08:10:04.825 T:2192 INFO <general>: Creating video codec with codec id: 70
2021-08-29 08:10:04.825 T:2192 INFO <general>: CDVDVideoCodecFFmpeg::Open() Using codec: SMPTE VC-1
2021-08-29 08:10:04.829 T:2192 INFO <general>: VAAPI::Close
2021-08-29 08:10:04.829 T:2192 INFO <general>: VAAPI::Close - closing decoder context
2021-08-29 08:10:04.837 T:2192 INFO <general>: Creating video thread
2021-08-29 08:10:04.837 T:2194 INFO <general>: running thread: video_thread
2021-08-29 08:10:04.838 T:2192 INFO <general>: Opening stream: 1 source: 256
2021-08-29 08:10:04.838 T:2192 INFO <general>: Finding audio codec for: 86020
2021-08-29 08:10:04.838 T:2192 INFO <general>: Creating audio thread
2021-08-29 08:10:04.839 T:2195 INFO <general>: running thread: CVideoPlayerAudio:rocess()
2021-08-29 08:10:04.839 T:2192 INFO <general>: Opening stream: 3 source: 256
2021-08-29 08:10:05.051 T:2194 INFO <general>: CDVDVideoCodecFFmpeg::Open() Using codec: SMPTE VC-1
2021-08-29 08:10:05.204 T:1338 INFO <general>: GL: Selecting YUV 2 RGB shader
2021-08-29 08:10:05.204 T:1338 INFO <general>: GL: Using GL_ARB_pixel_buffer_object
2021-08-29 08:10:05.204 T:1338 INFO <general>: Using GL_TEXTURE_2D
2021-08-29 08:10:05.467 T:2195 INFO <general>: CAEStreamParser::SyncDTS - dtsHD MA stream detected (8 channels, 48000Hz, 16bit BE, period: 8192, syncword: 0x41a29547, target rate: 0x18, framesize 2788))
2021-08-29 08:10:05.467 T:2195 INFO <general>: Creating audio stream (codec id: 86020, channels: 8, sample rate: 48000, pass-through)
2021-08-29 08:10:05.485 T:1480 INFO <general>: CActiveAESink::OpenSink - initialize sink
2021-08-29 08:10:05.557 T:1338 INFO <general>: GL: Selecting YUV 2 RGB shader
2021-08-29 08:10:05.557 T:1338 INFO <general>: GL: Using GL_ARB_pixel_buffer_object
2021-08-29 08:10:05.730 T:1480 INFO <general>: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=PCH,DEV=1"
2021-08-29 08:10:05.738 T:1480 INFO <general>: CAESinkALSA::Initialize - Opened device "hdmi:CARD=PCH,DEV=1,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x09"
2021-08-29 08:10:05.785 T:1338 INFO <general>: Loading skin file: VideoFullScreen.xml, load type: KEEP_IN_MEMORY
2021-08-29 08:10:05.808 T:2194 INFO <general>: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 41727
2021-08-29 08:10:08.500 T:1338 INFO <general>: Loading skin file: VideoOSD.xml, load type: KEEP_IN_MEMORY
2021-08-29 08:10:19.150 T:1338 INFO <general>: CVideoPlayer::CloseFile()
2021-08-29 08:10:19.150 T:1338 INFO <general>: VideoPlayer: waiting for threads to exit
2021-08-29 08:10:19.161 T:2192 INFO <general>: CVideoPlayer::OnExit()
2021-08-29 08:10:19.161 T:2192 INFO <general>: Closing stream player 1
2021-08-29 08:10:19.161 T:2192 INFO <general>: Waiting for audio thread to exit
2021-08-29 08:10:19.207 T:2195 INFO <general>: thread end: CVideoPlayerAudio::OnExit()
2021-08-29 08:10:19.207 T:2192 INFO <general>: Closing audio device
2021-08-29 08:10:19.257 T:1480 INFO <general>: CActiveAESink::OpenSink - initialize sink
2021-08-29 08:10:19.258 T:2192 INFO <general>: Deleting audio codec
2021-08-29 08:10:19.258 T:2192 INFO <general>: Closing stream player 2
2021-08-29 08:10:19.258 T:2192 INFO <general>: waiting for video thread to exit
2021-08-29 08:10:19.297 T:2194 WARNING <general>: OutputPicture - timeout waiting for buffer
2021-08-29 08:10:19.298 T:2194 INFO <general>: thread end: video_thread
2021-08-29 08:10:19.299 T:2192 INFO <general>: deleting video codec
2021-08-29 08:10:19.304 T:2192 INFO <general>: Closing stream player 3
I see no errors regarding audio here. Is the issue with my receiver maybe?
RE: Audio passthrough not available after reinstall - asavah - 2021-08-29
@Phobios Please don't post large log snippets into the forum.
It's better to post full uncut Debug Log via Kodi Paste Site .
Edit: you may want to try completely powering off all your equipment.
Unplug everything from the mains.
Power on everything back in reverse order - eg. Kodi box should be the last one.
It may help.
|