XBMC PulseAudio passthrough support (including Nvidia) is available

  Thread Rating:
  • 3 Votes - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
cbxbiker61 Offline
Senior Member
Posts: 148
Joined: Nov 2010
Reputation: 1
Post: #231
alexb38 Wrote:Right, ok then. So I have to chose between PVR and DTS-HD, hard choice ^^

I guess we still need to install audiofilter ? and when using pulseaudio git, do we still need to apply the patch ?

Thanks for your work anyway Smile

Audiofilter is necessary.

Yes, the pulseaudio patch will be necessary even with pulseaudio git (until pulseaudio comes up with an appropriately elegant solution to the problem).
find quote
eternalsword Offline
Member
Posts: 52
Joined: May 2010
Reputation: 0
Post: #232
Looks like merging with upstream has become more difficult with the addition of their preliminary pulse passthrough support. Right now I'm just overwriting any merges to the AudioRenderers directory with the ones from your repo and then correcting a couple of function calls that use their EEncoded in place of the boolean that your fork uses. Is that the best way to go about things at this point?

By the way, I made a fork at https://github.com/eternalsword/xbmc. The master branch is just your master branch merged with upstream in the way I described. delta branch includes some changes I've made on top. Take a look if you want.

I'm eagerly awaiting your work on dolby truehd. Let me know if you need help testing/debugging.

xbmc from https://github.com/eternalsword/xbmc/tree/delta, transparency 4.0.3 (svn), gentoo kernel 3.2.0-rc7
find quote
elite1967 Offline
Senior Member
Posts: 165
Joined: Apr 2010
Reputation: 0
Post: #233
cbxbiker61 Wrote:The support is there if you use my git repo. The main repo isn't quite up to par with my version.

Hi cbxbiker61,
You did an excellent job!!

I managed to get the AudioFilter working without pulse, and only with ALSA.
Now I have:
- DTS-HD MA working
- TrueHD coming as PCM Surround

Few questions:
Do you have plans to merge the latest eden git (beta 1 I think) with your xbmc code?

Also, is it correct to have TrueHD coming out as PCM Surround?

Finally, in TrueHD only, I have a mismatch in the speakers: side speakers should be rear speakers. Tested with TrueHD file: hd_dolby_truehd_channel_check_lossless.m2ts


thanks again for your excellent work!
find quote
eternalsword Offline
Member
Posts: 52
Joined: May 2010
Reputation: 0
Post: #234
TrueHD doesn't have support yet, so it is being encoded to PCM on the fly by the ffmpeg backend. If there is a speaker mismatch, it is in the way ffmpeg handles it. Once cbxbiker61 is finished adding TrueHD support, that will be moot. ffmpeg may also have fixed this issue upstream as the version used internally by xbmc is quite old. If you are on linux, you can try building with an external ffmpeg by using the --enable-external-ffmpeg configuration flag and see if that works better for you.

xbmc from https://github.com/eternalsword/xbmc/tree/delta, transparency 4.0.3 (svn), gentoo kernel 3.2.0-rc7
(This post was last modified: 2012-01-14 03:24 by eternalsword.)
find quote
elite1967 Offline
Senior Member
Posts: 165
Joined: Apr 2010
Reputation: 0
Post: #235
eternalsword Wrote:TrueHD doesn't have support yet, so it is being encoded to PCM on the fly by the ffmpeg backend. If there is a speaker mismatch, it is in the way ffmpeg handles it. Once cbxbiker61 is finished adding TrueHD support, that will be moot. ffmpeg may also have fixed this issue upstream as the version used internally by xbmc is quite old. If you are on linux, you can try building with an external ffmpeg by using the --with-external-ffmpeg configuration flag and see if that works better for you.

Hi eternalsword,
Thanks for the tip.
In order to build with the new ffmpeg, what is the syntax in the ./configure command?
I assume I will have to download the new ffmpeg and then point its location in the command, right?
Can you help me with the syntax?

Thanks,

EDIT: I tried adding the --with-external-ffmpeg flag, but I get:
Code:
configure: WARNING: unrecognized options: --with-external-ffmpeg

Any idea why?
(This post was last modified: 2012-01-13 16:51 by elite1967.)
find quote
cbxbiker61 Offline
Senior Member
Posts: 148
Joined: Nov 2010
Reputation: 1
Post: #236
elite1967 Wrote:Hi eternalsword,
Thanks for the tip.
In order to build with the new ffmpeg, what is the syntax in the ./configure command?
I assume I will have to download the new ffmpeg and then point its location in the command, right?
Can you help me with the syntax?

Thanks,

EDIT: I tried adding the --with-external-ffmpeg flag, but I get:
Code:
configure: WARNING: unrecognized options: --with-external-ffmpeg

Any idea why?

use --enable-external-libraries
BTW ./configure --help | less
find quote
eternalsword Offline
Member
Posts: 52
Joined: May 2010
Reputation: 0
Post: #237
my bad. it is --enable-external-ffmpeg

previous post has been edited to avoid confusion.

the configure script should automatically detect ffmpeg if it is in a sane location.

xbmc from https://github.com/eternalsword/xbmc/tree/delta, transparency 4.0.3 (svn), gentoo kernel 3.2.0-rc7
find quote
elite1967 Offline
Senior Member
Posts: 165
Joined: Apr 2010
Reputation: 0
Post: #238
@cbxbiker61:
Hi,
I have been now using your version for a month.
No problems at all. (a part from the truehd issue rear-side channels mismatch).

Are you planning to merge your git with the latest version (beta 2) of the master?
find quote
cbxbiker61 Offline
Senior Member
Posts: 148
Joined: Nov 2010
Reputation: 1
Post: #239
elite1967 Wrote:@cbxbiker61:
Hi,
I have been now using your version for a month.
No problems at all. (a part from the truehd issue rear-side channels mismatch).

Are you planning to merge your git with the latest version (beta 2) of the master?

Yeah, it's on the agenda. I've been busy doing some work on my CuBox (porting my distro to it). Cubox can run Xbmc and that's ultimately what I'm going to be using for a couple (maybe more if it works out well) of my Xbmc boxes. It's also going to be interesting to see If I can get pass-through working on the CuBox adequately. So anyway within a couple of weeks my main projects (CuBox/Xbmc/pass-through) are going to come together and that's when I plan to update my code to work well with the new xbmc head.
find quote
elite1967 Offline
Senior Member
Posts: 165
Joined: Apr 2010
Reputation: 0
Thumbs Up    Post: #240
cbxbiker61 Wrote:Yeah, it's on the agenda. I've been busy doing some work on my CuBox (porting my distro to it). Cubox can run Xbmc and that's ultimately what I'm going to be using for a couple (maybe more if it works out well) of my Xbmc boxes. It's also going to be interesting to see If I can get pass-through working on the CuBox adequately. So anyway within a couple of weeks my main projects (CuBox/Xbmc/pass-through) are going to come together and that's when I plan to update my code to work well with the new xbmc head.

Excellent news.
Looking forward to it.
find quote
Post Reply