Kodi Community Forum
Linux AudioEngine testers - Linux only - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Linux AudioEngine testers - Linux only (/showthread.php?tid=128298)



RE: AudioEngine testers - Linux only - Forsaken - 2012-07-19

I'm also having issues with DTS-HD and TrueHD pass-through with Intel built-in graphics on a i3 540 to a TX-NR709 receiver:

DTS-HD: no sound
TrueHD: noise

xbmc seems to detect it correctly, I'm using latest xbmc from git.


RE: AudioEngine testers - Linux only - forall - 2012-07-19

(2012-07-19, 18:32)Forsaken Wrote: I'm also having issues with DTS-HD and TrueHD pass-through with Intel built-in graphics on a i3 540 to a TX-NR709 receiver:

DTS-HD: no sound
TrueHD: noise

xbmc seems to detect it correctly, I'm using latest xbmc from git.
@ Forsaken - is possible can you connect xbmc player directly to your TV without amp and check DTS sound?



RE: AudioEngine testers - Linux only - Forsaken - 2012-07-19

(2012-07-19, 20:03)forall Wrote: @ Forsaken - is possible can you connect xbmc player directly to your TV without amp and check DTS sound?

Regular DTS/DD works fine through the amp, I don't have a TV though so I can't connect directly (only projector).


RE: AudioEngine testers - Linux only - furii - 2012-07-19

(2012-07-19, 18:32)Forsaken Wrote: I'm also having issues with DTS-HD and TrueHD pass-through with Intel built-in graphics on a i3 540 to a TX-NR709 receiver:

DTS-HD: no sound
TrueHD: noise

xbmc seems to detect it correctly, I'm using latest xbmc from git.

dts-hd and truehd are only working with nvidia fermi cards under linux. if you want HD audio on intel or amd you'll need to switch to windows.


RE: AudioEngine testers - Linux only - Forsaken - 2012-07-19

(2012-07-19, 20:50)furii Wrote: dts-hd and truehd are only working with nvidia fermi cards under linux. if you want HD audio on intel or amd you'll need to switch to windows.

Why ? The driver supports it and it worked when I was testing with this patch: http://forum.xbmc.org/showthread.php?tid=96316


RE: AudioEngine testers - Linux only - furii - 2012-07-19

(2012-07-19, 21:00)Forsaken Wrote:
(2012-07-19, 20:50)furii Wrote: dts-hd and truehd are only working with nvidia fermi cards under linux. if you want HD audio on intel or amd you'll need to switch to windows.

Why ? The driver supports it and it worked when I was testing with this patch: http://forum.xbmc.org/showthread.php?tid=96316

search the thread and you'll see plenty of posts saying it doesn't work. don't ask me why, i'm not a developer. just relaying the current state of things.


RE: AudioEngine testers - Linux only - bobb0 - 2012-07-22

Not sure if this is known (or if its only me) -- I searched trac and the forums and didn't find what I am looking for though I found an old (fixed) bug that was similar but not quite the same.

Whenever (and only when) I experience a buffer underrun event (video pauses and dialog appears in upper right to indicate buffering progress), playback does not recover, becomes choppy (slo-mo) 3.x-4FPS with no audio. The log fills with the following message:
Code:
10:37:00 T:2783955776   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2765237553.364334, should be:2764052333.333333, error:-1185220.031000
10:37:01 T:2783955776   ERROR: CDVDAudio::AddPacketsRenderer - timeout adding data to renderer
10:37:01 T:2783955776   ERROR: AddPackets - failed to add leftover bytes to render

Here is a pastebin of my full debug log: http://pastebin.com/x1Pb7X6g

It doesn't matter if playback is using passthrough or pcm, streaming via SMB or from the internet (http/rtmp). Once the underrun occurs, playback does not recover.

Output of aplay -l:
Code:
card 0: NVidia [HDA NVidia], device 0: ALC883 Analog [ALC883 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 1: ALC883 Digital [ALC883 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

Output of aplay -L:
Code:
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
default:CARD=NVidia
    HDA NVidia, ALC883 Analog
    Default Audio Device
sysdefault:CARD=NVidia
    HDA NVidia, ALC883 Analog
    Default Audio Device
front:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    Front speakers
surround40:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
dmix:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    Direct sample mixing device
dmix:CARD=NVidia,DEV=1
    HDA NVidia, ALC883 Digital
    Direct sample mixing device
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=1
    HDA NVidia, ALC883 Digital
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=1
    HDA NVidia, ALC883 Digital
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=0
    HDA NVidia, ALC883 Analog
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=1
    HDA NVidia, ALC883 Digital
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions

uname -r: 3.2.0-26-generic-pae

ALSA ver: Advanced Linux Sound Architecture Driver Version 1.0.24.

configure options: --prefix=/usr --disable-pulse --disable-xrandr --disable-crystalhd --disable-airplay --disable-airtunes

compiled from master branch with most recent pull (7/22/2012 10AM EST approx)

Settings > System > Audio output:
Code:
Audio output: HDMI
Speaker config: 2.0
Boost: dis
All spk-stereo: dis
AC3: ena
DTS: ena
AAC: dis
Multi-LPCM: ena
TrueHD: ena
DTS-HD: ena
Audio output dev: HDA NVidia, HDMI
Passthrough output dev: HDA NVidia, HDMI
GUI sounds: playback stopped

Anything I forgot? Let me know :)


RE: AudioEngine testers - Linux only - abudabi - 2012-07-22

Finally got around to hooking my machine up. Running Precise with Jul 13 build with latest nvidia driver from x-swat (302.17) into a yamaha RX-V767. I've chucked a whole bunch of files from demo-world.eu at it and everything bar one has worked flawlessly.

DTS-HD MA : Check
DTS-HD HR : Check
TrueHD : Check
Dolby Digital + : Not Check

Don't think I've ever come across a media file that contains DD+ so I'm not too bothered. Let me know if I must include a debug log file.

Keep up the great work guys!


RE: AudioEngine testers - Linux only - abudabi - 2012-07-24

I see none of the audio devs (Daniela/DDDamien/Gniff) have logged in to the forums lately (1.5 to 2 months). Did someone else take over? Or are they still on the party yacht sipping margaritas after completing Eden Big Grin


RE: AudioEngine testers - Linux only - davilla - 2012-07-24

See android branch, the vampire AE gets a stake driven through it's heart and takes a dirt nap Smile


RE: AudioEngine testers - Linux only - abudabi - 2012-07-25

lol davilla

I have a clip that AE cannot seem to lock onto the audio stream. The display of my AVR keeps on flashing. Video plays fine but no audio. If I look at the codec info using VLC in windows, it defines it as "A52 Audio (aka AC3) (a52)"

If I let xbmc decode it, I can hear the audio just fine but passthru is not working.

Let me know if you guys want more info / a debug log etc.


RE: AudioEngine testers - Linux only - krip - 2012-07-27

Hi guys, Im having trouble playing some 2 channel, 44.1khz, 16bit flac files, while others work fine. On the troublesome files my receiver acts as if the audio signal is lost or changed every 2 - 10 seconds.

My setup is debian squeeze with xbmc 12.0-ALPHA4 Git:20120724-8d978da. Hardware is intel core2duo, nvidia 210 gfx card. Audio out is onboard intel HDA connected through coax spdif to rotel rsp 1066 pre-amp.

The files seems pretty similar:

Code:
xbmc@inez:~/tmp$ file fail/fail.flac okay/okay.flac
fail/fail.flac: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 10930332 samples
okay/okay.flac: FLAC audio bitstream data, 16 bit, stereo, 44.1 kHz, 14052024 samples

aplay -l
Code:
xbmc@inez:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC888 Analog [ALC888 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L
Code:
xbmc@inez:~$ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=Intel
    HDA Intel, ALC888 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC888 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Intel,DEV=0
    HDA Intel, ALC888 Digital
    IEC958 (S/PDIF) Digital Audio Output

I have audiophile and allow 44 transcode activated in advancedsettings.xml, but i tried disabling both options, it didnt fix the issue

Code:
<audio>
    <audiophile>1</audiophile>
    <allowtranscode44100>1</allowtranscode44100>
  </audio>

Just for the record, the files i play are located on NFS, since my htpc has no local storage. It is pxe-booted and mounts root via nfs. I see the same issue when files are played through smb/cifs.

Here is the debug log while playing the failing file:
http://xbmclogs.com/show.php?id=5657

And here is the debug log while playing the okay file:
http://xbmclogs.com/show.php?id=5658

I can play the failing file without problems using mplayer:
Code:
xbmc@inez:~/tmp/fail$ mplayer -ao alsa:device=default fail.flac
MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team
mplayer: could not open config files /home/xbmc/.lircrc and /etc/lirc//lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing fail.flac.
Audio only file format detected.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 792.3 kbit/56.14% (ratio: 99039->176400)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  29.8 (29.7) of 247.0 (04:07.0)  0.8%

MPlayer interrupted by signal 2 in module: play_audio
A:  29.8 (29.8) of 247.0 (04:07.0)  0.8%
Exiting... (Quit)

It also plays fine directly out through the spdif:
Code:
xbmc@inez:~/tmp/fail$ mplayer -ao alsa:device=iec958 fail.flac
MPlayer 1.0rc3-4.4.4 (C) 2000-2009 MPlayer Team
mplayer: could not open config files /home/xbmc/.lircrc and /etc/lirc//lircrc
mplayer: No such file or directory
Failed to read LIRC config file ~/.lircrc.

Playing fail.flac.
Audio only file format detected.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 2 ch, s16le, 792.3 kbit/56.14% (ratio: 99039->176400)
Selected audio codec: [ffflac] afm: ffmpeg (FFmpeg FLAC audio)
==========================================================================
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:  30.3 (30.3) of 247.0 (04:07.0)  0.3%

MPlayer interrupted by signal 2 in module: play_audio
A:  30.4 (30.3) of 247.0 (04:07.0)  0.3%
Exiting... (Quit)

If necessary I can provide a sample of the failing file .. and ofcause any other useful debug information that can help Smile

Thanks in advance.


RE: AudioEngine testers - Linux only - direx - 2012-07-30

I have some additional Intel-related information for you guys:

In theory, both Intel graphics cards (Sandy Bridge and newer) and the Intel Linux drivers are capable of supporting passthrough of HD audio (HBR). The Intel driver even reports the capabilities of a connected amp correctly, including Dolby TrueHD and DTS-HD. There is one issue though: it does not work. This is not XBMC's fault, it is due to a bug in the Intel driver.

Status for Intel Sandy Bridge (and newer):
  • PCM 2.0 works
  • Dolby Digital/DTS passthrough works
  • 8 channel PCM works
  • TrueHD passthrough does not work (can be worked around by disabling "TrueHD" receiver feature in XBMC and having XBMC decode TrueHD to 8-channel PCM)
  • DTS-HD passthrough does not work (no workaround, you'll have to disable "DTS-HD" in XBMC and only get the DTS core)

If you want to have this changed please complain to the Intel driver developers about broken HBR support through their mailing list. There also already is a bug report about this, so if you have any helpful information you may add it there.

@wingrunr21: It would be nice if you could add some Intel-related information to the first post.


- direx


RE: AudioEngine testers - Linux only - solidsatras - 2012-07-30

@direx
That was very interesting to read, thank you for the links.
I´m eager to know when this will be solved.


RE: AudioEngine testers - Linux only - Mettbrot - 2012-07-31

(2012-07-24, 21:58)abudabi Wrote: I see none of the audio devs (Daniela/DDDamien/Gniff) have logged in to the forums lately (1.5 to 2 months). Did someone else take over? Or are they still on the party yacht sipping margaritas after completing Eden Big Grin
(2012-07-24, 23:11)davilla Wrote: See android branch, the vampire AE gets a stake driven through it's heart and takes a dirt nap Smile

What does that mean? What about the second big pull request for AE there has been no activity either.. :-(