2019-11-11, 06:57
Hello Guys,
I'm trying to setup linux audio passthrough using alsa from my hdmi output to receiver in 5.1 configuration, but found some issues with Kodi When DTS/AC3 media is played:
* Video is started, but audio delayed by ~2sec. Every change position - the same thing. After that video & audio are ok in sync.
* Video played smooth, but audio sometimes dropped and restored in ~2sec. There is ~2sec of silence.
I prepared the debug log based on "DTS:X Out of the Box (Long) 1080p H.264 (MKV)DTS:X / DTS 5.1" - used 5.1 DTS audio stream and a clean kodi config (just configured passthrough audio) with some components debug enabled - when I hear that audio drops or restoring - I hit "g" on keyboard.
* With most important info and slightly cut around "HandleKey: g" +1 sec before (lines marked with "--->8---CUT---8<---"): kodi-cut.log
* Full gzipped debug log in base64: kodi.log.gz.b64
Useful observations:
* For 1min of test video I get ~4-5 audio drops, they are not related to video position and looks like happening randomly
* Drops are not happening on non-passthrough audio (checked with aac stream of Blender Cosmos Laundromat)
* IMPORTANT: Drops are not happening if home menu / audio settings is opened during mediafile is played. I just need to press esc while file is playing - and no drops here anymore! But yeah, it's hard to watch movie as a semi-transparent background)
* If I will switch the workspace to some other application, the previous workaround will not work - it's working only when the kodi window is displayed. I can move it to the second screen (always displayed) and work in firefox on the first screen, no audio issues in this case.
* Tried with kodi-x11 on xwayland - the same behavior.
Env Info:
* OS: Ubuntu 18.04.3
* Kernel: Linux workstation-1 5.0.21-050021-generic #201906040731 SMP Tue Jun 4 07:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
* Wayland (Sway 1.2), 1920x1080
* Source: amdgpu XFX R9-FURY-4QFA RADEON R9 FURY X
* Destination: Onkyo TX-NR676 (5.1)
* Kodi: 18.4 (ubuntu packages: kodi 2:18.4+git20190831.2224-final-0bionic, kodi-wayland 2:18.4+git20190831.2224-final-0bionic)
Hopefully you can help with this issue or at least guide how to make the UI active when media is played.
I'm trying to setup linux audio passthrough using alsa from my hdmi output to receiver in 5.1 configuration, but found some issues with Kodi When DTS/AC3 media is played:
* Video is started, but audio delayed by ~2sec. Every change position - the same thing. After that video & audio are ok in sync.
* Video played smooth, but audio sometimes dropped and restored in ~2sec. There is ~2sec of silence.
I prepared the debug log based on "DTS:X Out of the Box (Long) 1080p H.264 (MKV)DTS:X / DTS 5.1" - used 5.1 DTS audio stream and a clean kodi config (just configured passthrough audio) with some components debug enabled - when I hear that audio drops or restoring - I hit "g" on keyboard.
* With most important info and slightly cut around "HandleKey: g" +1 sec before (lines marked with "--->8---CUT---8<---"): kodi-cut.log
* Full gzipped debug log in base64: kodi.log.gz.b64
Useful observations:
* For 1min of test video I get ~4-5 audio drops, they are not related to video position and looks like happening randomly
* Drops are not happening on non-passthrough audio (checked with aac stream of Blender Cosmos Laundromat)
* IMPORTANT: Drops are not happening if home menu / audio settings is opened during mediafile is played. I just need to press esc while file is playing - and no drops here anymore! But yeah, it's hard to watch movie as a semi-transparent background)
* If I will switch the workspace to some other application, the previous workaround will not work - it's working only when the kodi window is displayed. I can move it to the second screen (always displayed) and work in firefox on the first screen, no audio issues in this case.
* Tried with kodi-x11 on xwayland - the same behavior.
Env Info:
* OS: Ubuntu 18.04.3
* Kernel: Linux workstation-1 5.0.21-050021-generic #201906040731 SMP Tue Jun 4 07:33:07 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
* Wayland (Sway 1.2), 1920x1080
* Source: amdgpu XFX R9-FURY-4QFA RADEON R9 FURY X
* Destination: Onkyo TX-NR676 (5.1)
* Kodi: 18.4 (ubuntu packages: kodi 2:18.4+git20190831.2224-final-0bionic, kodi-wayland 2:18.4+git20190831.2224-final-0bionic)
Hopefully you can help with this issue or at least guide how to make the UI active when media is played.