• 1
  • 34
  • 35
  • 36(current)
  • 37
  • 38
  • 54
Linux AudioEngine testers - Linux only
(2012-09-17, 15:20)DDDamian Wrote:
Code:
<audio>
   <streamsilence>1</streamsilence>
</audio>
In my case it's working (I also update XBMC night build to 12.0-ALPHA6 Git:20120917-a61cb73).
I started XBMC, checked sound (OK), turned off AV receiver (I didn't shutdown XBMC).
At morning I turned on AV receiver and sound is OK.
I checked music and BD movie (DTS-HD MA).
No ERROR messages in log file.
Edit: HD music are OK (flac stereo 24x192, flac 5.1 24x96) also.
Ubuntu 22.04, Linux desktop 5.15.0-57-generic #63-Ubuntu SMP Thu Nov 24 13:43:17 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Kodi (20.1 (20.1.0) Git:20230312-289ec664e3). Platform: Linux x86 64-bit
Sony Android TV, Kodi 20.1
Reply
@ray1112 - thx for the feedback - working on a fix for the default mode. Was well tested on win32 but apparently causes issues for ALSA
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon  AVR-3808CI  - Denon DVD-5900 Universal Player  - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray  - X-Box 360  - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Reply
(2012-09-15, 09:02)furii Wrote:
(2012-09-15, 05:12)jz1276 Wrote: I was getting audio drop outs with dtsma until i selected "sync audio to playback" option now no more dropouts... no idea why this helped.

do you mean "sync playback to display" with "a/v sync method" set to audio clock? if so i sadly already have that set.

Yes sync playback to display is what I meant, but mine is set to Video clock (Resample audio), NOT Audio clock.
Here are my exact video settings... no more dropouts (at least with DTS-MA, I don't have any movies with a TrueHD track).

Render method- auto
Allow hardware acc- checked
Allow vdpau opengl interop checked
Allow vdpau opengl interop yuv checked
Allow hardware acc (xvba) checked
Adjust display refresh rate to match video- Unchecked
Pause during refresh rate to match video- off
Sync playback to display- checked
A/V sync method- video clock (resample audio)
Allowed error in aspect ratio to minimize black bars- None
Display 4:3 video as- Normal
VPAU Studio level color conversion- UNchecked
Activate teletext- checked

I have no idea what any of these settings do (except display 4:3 video as), but when playing DTS-MA tracks my receiver displays DTS-MA so I know the signal is being sent to my receiver unaltered.
Reply
saw a change on git today that i thought might help fix dts-hd/truehd bitstream dropouts. i played a movie and tail'd the xbmc.log just to see if alsa underruns were still present. after about an hour i hadn't seen a single one although there were still a handful of audio discontinuity warnings. luckily though those did not end up causing any underruns and there were no audio dropouts. until i got to the credits where two cropped up in about a two minute span. i did notice something interesting though:

Code:
14:04:54 T:2719546176   DEBUG: CDVDPlayerAudio:: Discontinuity - was:720027535.073000, should be:719985826.739667, error:-41708.333333
14:06:59 T:2719546176   DEBUG: CDVDPlayerAudio:: Discontinuity - was:844652230.249667, should be:844610521.916333, error:-41708.333333
14:34:23 T:2719546176   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2489154360.975333, should be:2489112652.642000, error:-41708.333333
14:39:48 T:2719546176   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2814528487.827000, should be:2814486779.493666, error:-41708.333333
14:50:52 T:2719546176   DEBUG: CDVDPlayerAudio:: Discontinuity - was:3477645345.694666, should be:3477603637.361333, error:-41708.333333
15:04:56 T:2719546176   DEBUG: CDVDPlayerAudio:: Discontinuity - was:4321782017.809333, should be:4321740309.476000, error:-41708.333333
15:21:42 T:2719546176   DEBUG: CDVDPlayerAudio:: Discontinuity - was:5328021067.528000, should be:5327979359.194667, error:-41708.333333
all of this discontinuity warnings that were not associated with an alsa underrun and subsequent audio dropout had the same error difference.

Code:
15:29:47 T:2940226368   ERROR: CAESinkALSA::HandleError(snd_pcm_writei(1)) - underrun
15:29:47 T:2719546176   DEBUG: CDVDPlayerAudio:: Discontinuity - was:5813473525.744667, should be:5813360666.666667, error:-112859.078000
15:31:35 T:2940226368    INFO: CAESinkALSA - ALSA: pcm_hw.c:532:(snd_pcm_hw_hwsync) SNDRV_PCM_IOCTL_HWSYNC failed (-32): Broken pipe
15:31:35 T:2940226368   ERROR: CAESinkALSA::HandleError(snd_pcm_avail) - underrun
15:31:37 T:2719546176   DEBUG: CDVDPlayerAudio:: Discontinuity - was:5922449103.121667, should be:5922365686.455000, error:-83416.666667
these two discontinuity warnings were significantly larger and did result in an underrun and audio dropout.

full log: http://xbmclogs.com/show.php?id=8903

edit: just put on another movie (truehd instead of dts-hd this time) and had the underrun creep up within the first 5 minutes. interestingly the discontinuity warnings came up much more frequently. whereas before i got a handful throughout the whole movie this time they popped up every 1-2 minutes before there was finally an underrun. curiouser and curiouser.
Reply
Is there anyone using the Intel HBR patch who is willing to write a litte howto on how to integrate/install/use those patches?

I´d like to try to remove my NVidia GT 430 completely from my HTPC, because there simply is no need to keep it anymore. Intel seems to be able to do everything I want just fine by now, so I could remove the extra card and save some energy in my 24/7 box. :-) I´ll try HBR and Intel VAAPI on OpenELEC, but if everything works as expected I´d like to have a full Ubuntu running on my HTPC.
Reply
(2012-09-21, 19:03)ingrimsch Wrote: Intel seems to be able to do everything I need just fine by now, so I could remove the extra card and save some energy in my 24/7 box. :-)

Except proper 24p Playback...
Reply
(2012-09-22, 01:20)john.cord Wrote:
(2012-09-21, 19:03)ingrimsch Wrote: Intel seems to be able to do everything I need just fine by now, so I could remove the extra card and save some energy in my 24/7 box. :-)

Except proper 24p Playback...
Not quite, 24fps content plays fine with the Intel IGP, it's 23.976 content that won't play properly because the Sandy Bridge, and I think Ivy Bridge, chipset can't play it properly. Rather, 23.976 material is played back at 24 fps which results in periodic judder as the input and output frames need to play catch up with one another. This is the reason I got a GT430 for my HTPC rather than use the IGP in my i3 2100. The IGP plays everything fine except if I want accurate playback of 23.976fps material.
Reply
I really in need of help right now.

My setup is
Ubuntu 12.04
Xbmc EDEN

I upgraded my GT210 card to a GT430 card just to enable sound through the HDMI and the optical cable only played back speaker sounds on all my speakers and it should not be any hassle around the GT430 card according to forums, it just works kinda.

After I have read tons of information, around the big web, and re-installed the system 4 times it seems to be impossible to get the surround DTS/DD work in perfect harmony with linux.

I have once got it to work, XBMC played DTS/DD without a problem, the receiver showed DTS and Dolby Digital. This worked when I downgraded the Nvidia driver from 295 to 290.10. combiend with costum setting, in XBMC, "hdmi:CARD=NVidia,DEV=3", don't know why suddenly why 3 was working but ok then, according to this tread.
Unfortunately something happened during the downgrade so the nvidia-current did stop all updates due to broken packages. I reinstalled ubuntu and performed a proper downgrade, with the same, I think, settings, but the surround problem still persist.

Aplay -l only display my Nvidia card, which is right when I have turned off my internal audiocard. I have nothing muted in alsamixer

Right now with a clean install and sound coming through
"speaker-test -c 2 -r 48000 -D hw:0,9", nothing on 0,3.
but
Sound inside ubuntu: OK (stereo)
Sound inside xbmc : OK (stereo)
Movie sound XBMC : Not OK (failed to initialize audio device)(stereo works if I set XBMC to 2-channel and analog output)

I have tried custom settings like
hw:0,9
plughw:0,9
hdmi:CARD=NVidia,DEV=9

But is there any hope for this setup or I am doomed to reverse back to win7 after 5 year of keeping it outside my front door?
Reply
@8301, this thread is about the new audio engine which is only present in frodo not in Eden. I suggest you start a new thread.

A good starting point for your issue would be to install a nightly frodo version it may solve your issues as it is much easier to configure then Eden. Ie it does away with custom settings and will list your tv /amp as an output option
Guide to building an all in one Ubuntu Server - TV(vdr),File,Music,Web

Server Fractal Designs Define XL, Asus P5QL/EPU, Dual Core E5200, 4gb, L4M-Twin S2 v6.2, Supermicro AOC-USAS-L8I, 1*SSD & 13*HDD drives (24TB total) - Ubuntu Server
XBMC 1 ASRock Z77E-ITX, G850, 8GB RAM, SSD, BD - Ubuntu / OpenElec frodo
XBMC 2 Revo 3700 - OpenElec frodo
XBMC 3 Raspb Pi
Reply
(2012-09-22, 14:52)charlie0440 Wrote: @8301, this thread is about the new audio engine which is only present in frodo not in Eden. I suggest you start a new thread.

A good starting point for your issue would be to install a nightly frodo version it may solve your issues as it is much easier to configure then Eden. Ie it does away with custom settings and will list your tv /amp as an output option

Ops my bad!

Sorry!
Reply
I am getting the following error in the newest XBMC nightly build on Ubuntu 12.04. The problems seams to appear if XMBC has to change the output stream. (I've already set streamsilence to 1) How can I solve this problem?

Code:
22:10:01 T:140240686376832    INFO: XRANDR: /usr/lib/xbmc/xbmc-xrandr --output default --mode 0x12d
22:10:02 T:140240328025856    INFO: CAESinkALSA - ALSA: pcm_hw.c:424:(snd_pcm_hw_hw_free) SNDRV_PCM_IOCTL_HW_FREE failed (-77): File descriptor in bad state
22:10:02 T:140240328025856    INFO: CAESinkALSA::Initialize - Attempting to open device "hdmi:CARD=NVidia,DEV=0"
22:10:02 T:140240328025856    INFO: CAESinkALSA - ALSA: pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D7p' failed (-16): Device or resource busy
22:10:02 T:140240328025856    INFO: CAESinkALSA - Unable to open device "hdmi:CARD=NVidia,DEV=0,AES0=0x06,AES1=0x82,AES2=0x00,AES3=0x02" for playback
22:10:02 T:140240328025856    INFO: CAESinkALSA - ALSA: pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D7p' failed (-16): Device or resource busy
22:10:02 T:140240328025856    INFO: CAESinkALSA - Unable to open device "hdmi:CARD=NVidia,DEV=0" for playback
22:10:02 T:140240328025856   ERROR: CAESinkALSA::Initialize - failed to initialize device "hdmi:CARD=NVidia,DEV=0"
22:10:02 T:140240328025856    INFO: CSoftAE::InternalOpenSink - NULL Initialized:
22:10:02 T:140240328025856    INFO:   Output Device : hdmi:CARD=NVidia,DEV=0
22:10:02 T:140240328025856    INFO:   Sample Rate   : 48000
22:10:02 T:140240328025856    INFO:   Sample Format : AE_FMT_S16NE
22:10:02 T:140240328025856    INFO:   Channel Count : 2
22:10:02 T:140240328025856    INFO:   Channel Layout: RAW,RAW
22:10:02 T:140240328025856    INFO:   Frames        : 24000
22:10:02 T:140240328025856    INFO:   Frame Samples : 2
22:10:02 T:140240328025856    INFO:   Frame Size    : 4

Edit: The problem only occurs if AV sync is enabled.
Reply
(2012-09-09, 12:13)alanwww1 Wrote:
(2012-09-07, 23:59)forall Wrote: @OkvOkv - have you a .deb package for alsa and can you upload it?

Guys I compiled a new 3.6 RC3 kernel from Takashi's alsa tree, with Lirc support.

http://s1.toldacuccot.hu/letoltes?sid=7c...4196763d22

For me it works perfectly. If you are interested just download them, cd to the directory and

Code:
sudo dpkg -i ./*

Cheers!

Your files are offline

Reply
My system is in my signature. XBMC - HDMI - receiver - TV. I can play DTS and AC3 files just fine. If I play a DTS-HD file I usually get no sound and my receiver states no audio signal. Sometimes it'll make noise and show PCM 7.1. Same with TrueHD except the receiver shows PCM 2.0. If I switch audio output in XBMC to optical/spdif (but still use HDMI) then my receiver states DTS and plays fine.

Also, if I play an AAC file with audio set to HDMI then my receiver sees a AAC 2.0 track. If I switch to optical out then the receiver gets a 5.1 file.

I'm running snipex 20120830.1450 and have upgraded my alsa driver to 1.0.25 with no improvements. The audio output and passthrough are set to HDA Nvidia, HDMI.
Living Room: Ubuntu 16.10 x64 | BayTrail-M SOC | Krypton | Hitachi 55L6 | Yamaha RX-V665 | 7.1 Polk Surround
Den: RetroPie 4.1 | Raspberry Pi 3 | Krypton | VIZIO XVT553SV
Bedroom: OSMC 2017.02-1 | Raspberry Pi 3 | Krypton | VIZIO E370VA
HP Chromebook 14: Ubuntu 16.04 x64 | Celeron 2955U | Jarvis
NAS: Windows 10 | 20TB on DrivePool | Emby DB | Subsonic | Plex
Reply
(2012-09-27, 04:01)VanillaXtract Wrote: My system is in my signature. XBMC - HDMI - receiver - TV. I can play DTS and AC3 files just fine. If I play a DTS-HD file I usually get no sound and my receiver states no audio signal. Sometimes it'll make noise and show PCM 7.1. Same with TrueHD except the receiver shows PCM 2.0. If I switch audio output in XBMC to optical/spdif (but still use HDMI) then my receiver states DTS and plays fine.

Also, if I play an AAC file with audio set to HDMI then my receiver sees a AAC 2.0 track. If I switch to optical out then the receiver gets a 5.1 file.

I'm running snipex 20120830.1450 and have upgraded my alsa driver to 1.0.25 with no improvements. The audio output and passthrough are set to HDA Nvidia, HDMI.

ion1 does not support bitstreaming hd audio, this is a hardware limitation.
Reply
(2012-09-27, 04:01)VanillaXtract Wrote: Also, if I play an AAC file with audio set to HDMI then my receiver sees a AAC 2.0 track. If I switch to optical out then the receiver gets a 5.1 file.

This is by design: if you have AAC-capable receiver deselected it will play as PCM over HDMI but transcode it to AC3 for optical connections. To get AAC 5.1 as PCM over HDMI you would also need to enable "Multichannel PCM capable receiver".
System: XBMC HTPC with HDMI WASAPI & AudioEngine - Denon  AVR-3808CI  - Denon DVD-5900 Universal Player  - Denon DCM-27 CD-Changer
- Sony BDP-S580 Blu-Ray  - X-Box 360  - Android tablet wireless remote - 7.1 Streem/Axiom/Velodyne Surround System
If I have been able to help feel free to add to my reputation +/- below - thanks!
Reply
  • 1
  • 34
  • 35
  • 36(current)
  • 37
  • 38
  • 54

Logout Mark Read Team Forum Stats Members Help
AudioEngine testers - Linux only4