Posts: 257
Joined: Jan 2011
Reputation:
5
shadow
Senior Member
Posts: 257
Any chance this supports DTS-HD MA and TrueHD? (I have a-lot of Blu-Ray backups)
So far I can only passthrough them in a rudimentary way (put them through ffmpeg then play with aplay) but that is more just to see my receiver say it is getting the formats since it loses video.
But seeing my receiver saw 7.1ch DTS-HD MA was nice.
Posts: 257
Joined: Jan 2011
Reputation:
5
shadow
Senior Member
Posts: 257
2011-03-15, 00:49
(This post was last modified: 2011-03-15, 00:52 by shadow.)
Here is a copy and paste from my email with the dev behind HD Audio passthrough in ffmpeg
Apparently it requires setting the rate to 4x the actual.
----
All other than DTS-HD :
ffmpeg -i inputfile -f spdif -acodec copy output.spdif
For DTS-HD (e.g.), to get more than the core you need:
ffmpeg -i inputfile -f spdif -dtshd_rate 768000 -acodec copy output.spdif
(768000 makes output suitable to be played back as 8 channel 192kHz)
Posts: 257
Joined: Jan 2011
Reputation:
5
shadow
Senior Member
Posts: 257
Here is what I am using if you wanted to try rolling back for a test.
FFmpeg version git-391a132, Copyright © 2000-2011 the FFmpeg developers
built on Mar 5 2011 23:47:38 with gcc 4.5.2
configuration:
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.113. 2 / 52.113. 2
libavformat 52.102. 0 / 52.102. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 76. 0 / 1. 76. 0
libswscale 0. 12. 0 / 0. 12. 0
Also not when I played the files with aplay using the following command, even if I was only doing a DTS-HD MA 5,1 I still had to use -c8 (receiver reported only 5.1) when I tried -c6 I only got static (and the receiver reported 5.1 Linear PCM)
aplay -D hdmi:CARD=NVidia,DEV=3,AES0=6 -c8 -fs16_le -r192000 output.spdif
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
I haven't reviewed the patches but so they don't fall into the void and under our radar (which is easy on the forum!) could you please fork our repo, patch it and send a pull request. Alternatively, but we prefer the first way, you can simply start a trac ticket with the patches.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 183
Joined: Nov 2010
Reputation:
4
OK, I've tested dts-hd passthrough with pulse and I've got the test working. Now it's just a matter of coding up a proper solution. Probably 4 to 5 days. Then I'll test with the pulseaudio passthrough branch and see if they've added a couple of features I want/need.
Posts: 4,549
Joined: Dec 2007
Reputation:
17
topfs2
Team-Kodi Developer
Posts: 4,549
Yeah, if it can't be used in pulse which is found in our target distros I'd say its probably better to wait, we don't generally want to keep that type of development code in our mainline but a fork on github is the way to go about it I would say, that way other pulseaudio bleeding edge users can use your fork if they wish. When they merge in their branch and distros start having (or they will have it until our next release is going in) you can submit a pull request and we will pull it in if we want.
Awesome to see that the pulseaudio fellows finally are working on this, it has been such a pain that they haven't had support for this already.
Also, you might want to check out gnif's AE branch, this will be merged into mainline hopefully before eden so it might make sense if you target that with your patches. It is still in somewhat of a flux but most of the interfaces ought to be stable now.
If you have problems please read
this before posting
Always read the
XBMC online-manual,
FAQ and
search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the
forum rules.
For troubleshooting and bug reporting please make sure you
read this first.
"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Posts: 257
Joined: Jan 2011
Reputation:
5
shadow
Senior Member
Posts: 257
cbxbiker61 make sure you put a link to your repo when you make it. I will be trying it.