|
|
#1 | |
|
FFmpeg developer
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
|
Anssi Hannula has provided patches for FFmpeg that should allow to use HDMI pass-through on Linux for TrueHD and DTS-HD.
Since they do not work for me on a G210 and KRF-V7300D, I would like to ask people to test two files (that were made using his patches) on HDMI and suitable receiver hardware. You can find the two testfiles in http://samples.mplayerhq.hu/hdmi/ EDIT To produce such files yourself, use: ffmpeg -i input -acodec copy output.spdif /EDIT Add the following to ~/.asoundrc: Code:
## begin custom stuff
pcm.hdmihdtest {
@args [ DEVICE CTLINDEX ]
@args.DEVICE {
type integer
}
@args.CTLINDEX {
type integer
}
type hooks
slave.pcm {
type hw
card NVidia
device $DEVICE
}
hooks.0 {
type ctl_elems
hook_args [
{
name "IEC958 Playback Default"
index $CTLINDEX
lock true
preserve true
value [ 0x06 0x82 0x00 0x01 ]
}
{
name "IEC958 Playback Switch"
index $CTLINDEX
lock true
preserve true
value true
}
]
}
}
pcm.hdmihdtest0 { @func refer name "pcm.hdmihdtest:DEVICE=3,CTLINDEX=0" }
pcm.hdmihdtest1 { @func refer name "pcm.hdmihdtest:DEVICE=7,CTLINDEX=1" }
pcm.hdmihdtest2 { @func refer name "pcm.hdmihdtest:DEVICE=8,CTLINDEX=2" }
pcm.hdmihdtest3 { @func refer name "pcm.hdmihdtest:DEVICE=9,CTLINDEX=3" }
## end custom stuff
Code:
alsamixer -cNVidia Code:
aplay -D hdmihdtest0 -c8 -fs16_le -r192000 file.spdif aplay -D hdmihdtest1 -c8 -fs16_le -r192000 file.spdif aplay -D hdmihdtest2 -c8 -fs16_le -r192000 file.spdif aplay -D hdmihdtest3 -c8 -fs16_le -r192000 file.spdif Please provide the following information:
http://thread.gmane.org/gmane.comp.v...g.devel/121073 Thank you, Carl Eugen Last edited by cehoyos; 03-06-11 at 10:55 AM. Reason: Rm wrong info about Anssi's hw and add kernel version requirement |
|
|
|
|
|
|
#2 | |
|
Mageia packager
|
I can indeed confirm that both of the provided DTS-HD and TrueHD files work with aplay for me, with the following system combination:
I can also confirm that 256.35 works, and nouveau works with experimental patches. With an older NVIDIA GPU GeForce 9400 (C79), the files do not work with any driver.
__________________
Anssi Hannula (anssi@mageia.org) Mageia packager of NVIDIA drivers XBMC developer Last edited by Anssi; 11-25-10 at 12:22 PM. Reason: added kernel version |
|
|
|
|
|
|
#3 |
|
FFmpeg developer
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
|
My results are:
|
|
|
|
|
|
#4 | |
|
Registered User
Join Date: Jan 2006
Posts: 93
|
Is this in ffmpeg svn yet?
|
|
|
|
|
|
|
#5 |
|
Mageia packager
|
Not yet, but it is being worked on. Note that you won't need ffmpeg to test the samples provded by cehoyos.
__________________
Anssi Hannula (anssi@mageia.org) Mageia packager of NVIDIA drivers XBMC developer |
|
|
|
|
|
#6 | |
|
Registered User
Join Date: Jan 2006
Posts: 93
|
Quote:
I did not even have the spidifenc file till I updated ffmpeg. I think you may be confused, or perhaps it's me. I have HDMI sound working on my GTX 460. It took a little fooling around but I am running a 2.6.36 kernel. |
|
|
|
|
|
|
#7 | ||
|
Mageia packager
|
Quote:
If you want to passthrough your own TrueHD/DTS-HD files, only then will you need a patched ffmpeg. Quote:
![]()
__________________
Anssi Hannula (anssi@mageia.org) Mageia packager of NVIDIA drivers XBMC developer |
||
|
|
|
|
|
#8 |
|
Registered User
Join Date: Jan 2006
Posts: 93
|
aplay -D hdmihdtest0 -c8 -fs16_le -r192000 thd.spdif
Playing raw data 'thd.spdif' : Signed 16 bit Little Endian, Rate 192000 Hz, Channels 8 aplay: set_params:1059: Channels count non available. I don't do surround. Stereo only. Not working then. I use device 3 for my setup so the rest do zip. |
|
|
|
|
|
#9 | |
|
Mageia packager
|
Quote:
If not, it is not expected to work. If it is, then please attach the contents of /proc/asound/NVidia/codec#0 and /proc/asound/NVidia/eld#0.0. Thanks.
__________________
Anssi Hannula (anssi@mageia.org) Mageia packager of NVIDIA drivers XBMC developer |
|
|
|
|
|
|
#10 | |
|
Registered User
Join Date: Jan 2006
Posts: 93
|
Quote:
Nicest CRT ever made, for consumers, the 960XBRs. Makes an LCD look ugly and slow. |
|
|
|
|
|
|
#11 |
|
Registered User
Join Date: Feb 2003
Posts: 8
|
Works for me. Sort of. The audio plays - but the HDMI light my receiver blinks, and it never shows the DTS/DTS-HD lights which indicate that its getting said signal (my receiver has a red light for each different type of digital format it supports). I'm wonder if that is because the sample is too short? Is there by chance a larger sample I can use? I tried cat dts.spdif >> big.spdif a few times to make it loop - and from an audio point that appeared to work but I'm not sure if its correct?
*edit* Should mention I edited the asoundrc to use NVidia_1 instead of NVidia - as I have an onboard HDMI that I don't use which is detected as the first card. |
|
|
|
|
|
#12 | |||
|
Mageia packager
|
Quote:
http://stuff.onse.fi/testi.dtshd.ans...71-24.spdif.gz (49MB) and a 1 minute TrueHD one: http://stuff.onse.fi/testi.truehd.an...f.60s.spdif.gz (4MB) You'll need to uncompress them first with gunzip. Does "The audio plays" mean you hear some audio, or just that you don't get any error? Quote:
Simple concatenating has a chance of working, but it is not guaranteed. Quote:
![]()
__________________
Anssi Hannula (anssi@mageia.org) Mageia packager of NVIDIA drivers XBMC developer Last edited by Anssi; 11-25-10 at 01:35 PM. Reason: added long TrueHD sample |
|||
|
|
|
![]() |
| Thread Tools | |
|
|