Go Back   nV News Forums > Linux Support Forums > NVIDIA Linux

Newegg Daily Deals

Reply
 
Thread Tools
Old 11-21-10, 08:08 AM   #1
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Call for testers: HDMI pass-through

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
Make sure alsa is not muted with
Code:
alsamixer -cNVidia
To test them, use:
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
You either need Linux kernel 2.6.36 or an older kernel with latest alsa drivers installed (and you should preferably confirm that aplay works on wav files over hdmi before downloading the test files).

Please provide the following information:
  • Card and GPU type (you find this information for example in the third line of qvdpautest output)
  • Driver version
  • Kernel (and ALSA) version
  • Receiver
  • If none, one or both files work for you (they only contain short noise, the question is if the receiver correctly recognizes them)
Some information and the patches are here:
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
cehoyos is offline   Reply With Quote
Old 11-21-10, 09:29 AM   #2
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: Call for testers: HDMI pass-through

I can indeed confirm that both of the provided DTS-HD and TrueHD files work with aplay for me, with the following system combination:
  • Graphics: NVIDIA GPU NVS 3100M (GT218)
  • Driver version: 260.19.21
  • Kernel version: 2.6.36
  • Receiver: Onkyo TX-SR607
  • Both of the files work
Yes, this is not actually older hardware like Carl Eugen said.
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
Anssi is offline   Reply With Quote
Old 11-21-10, 11:46 AM   #3
cehoyos
FFmpeg developer
 
Join Date: Jan 2009
Location: Vienna, Austria
Posts: 467
Default Re: Call for testers: HDMI pass-through

My results are:
  • G210 (GT218)
  • 260.19.12
  • 2.6.31 with alsa 1.0.23.84.gd6e08.783.g952c6
  • Kenwood KRF-V7300D
  • E-AC3 and similar (and 192kHz s16le 8ch wav) work fine, both (TrueHD and DTS-HD) samples fail
Carl Eugen
cehoyos is offline   Reply With Quote
Old 11-24-10, 08:43 PM   #4
PenGun
Registered User
 
Join Date: Jan 2006
Posts: 93
Default Re: Call for testers: HDMI pass-through

Is this in ffmpeg svn yet?
PenGun is offline   Reply With Quote
Old 11-25-10, 12:15 AM   #5
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: Call for testers: HDMI pass-through

Quote:
Originally Posted by PenGun View Post
Is this in ffmpeg svn yet?
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
Anssi is offline   Reply With Quote
Old 11-25-10, 03:52 AM   #6
PenGun
Registered User
 
Join Date: Jan 2006
Posts: 93
Default Re: Call for testers: HDMI pass-through

Quote:
Originally Posted by Anssi View Post
Not yet, but it is being worked on. Note that you won't need ffmpeg to test the samples provded by cehoyos.
"Anssi Hannula has provided patches for FFmpeg that should allow to use HDMI pass-through on Linux."

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.
PenGun is offline   Reply With Quote
Old 11-25-10, 04:00 AM   #7
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: Call for testers: HDMI pass-through

Quote:
Originally Posted by PenGun View Post
"Anssi Hannula has provided patches for FFmpeg that should allow to use HDMI pass-through on Linux."

I did not even have the spidifenc file till I updated ffmpeg.

I think you may be confused, or perhaps it's me.
The test files that cehoyos provided in the first post are *already* processed through ffmpeg, so ffmpeg is not needed for testing them (as can be seen from his instructions).

If you want to passthrough your own TrueHD/DTS-HD files, only then will you need a patched ffmpeg.

Quote:
Originally Posted by PenGun View Post
I have HDMI sound working on my GTX 460. It took a little fooling around but I am running a 2.6.36 kernel.
Then it would be appreciated if you could test passthrough
__________________
Anssi Hannula (anssi@mageia.org)
Mageia packager of NVIDIA drivers
XBMC developer
Anssi is offline   Reply With Quote
Old 11-25-10, 04:09 AM   #8
PenGun
Registered User
 
Join Date: Jan 2006
Posts: 93
Default Re: Call for testers: HDMI pass-through

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.
PenGun is offline   Reply With Quote

Old 11-25-10, 04:33 AM   #9
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: Call for testers: HDMI pass-through

Quote:
Originally Posted by PenGun View Post
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.
Is the HDMI cable connected to an A/V receiver that has TrueHD / DTS-HD support?
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
Anssi is offline   Reply With Quote
Old 11-25-10, 04:51 AM   #10
PenGun
Registered User
 
Join Date: Jan 2006
Posts: 93
Default Re: Call for testers: HDMI pass-through

Quote:
Originally Posted by Anssi View Post
Is the HDMI cable connected to an A/V receiver that has TrueHD / DTS-HD support?
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.
Nope the big Sony just does 2 channel digital audio. Hi ho. I probe so I just have codec#1 and eid#1.0

Nicest CRT ever made, for consumers, the 960XBRs. Makes an LCD look ugly and slow.
PenGun is offline   Reply With Quote
Old 11-25-10, 01:13 PM   #11
highrez
Registered User
 
Join Date: Feb 2003
Posts: 8
Default Re: Call for testers: HDMI pass-through

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?
  • Graphics: NVIDIA GPU GeForce GT 240 (GT215)
  • Driver: 260.19.21
  • Receiver: Onkyo TX-NR807
  • Alsa-Driver: Snapshot: alsa-driver-20101119.tar.gz
  • Alsa-Lib: Snapshot: alsa-lib-20101119.tar.gz
  • Kernel: 2.6.30-gentoo-r6

*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.
highrez is offline   Reply With Quote
Old 11-25-10, 01:27 PM   #12
Anssi
Mageia packager
 
Join Date: Mar 2005
Location: Tampere, Finland
Posts: 45
Send a message via MSN to Anssi
Default Re: Call for testers: HDMI pass-through

Quote:
Originally Posted by highrez View Post
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?
You can find a much longer DTS-HD sample from here:
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:
Originally Posted by highrez View Post
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?
So did the receiver recognize it then?
Simple concatenating has a chance of working, but it is not guaranteed.
Quote:
Originally Posted by highrez View Post
  • Graphics: NVIDIA GPU GeForce GT 240 (GT215)
  • Driver: 260.19.21
  • Receiver: Onkyo TX-NR807
  • Alsa-Driver: Snapshot: alsa-driver-20101119.tar.gz
  • Alsa-Lib: Snapshot: alsa-lib-20101119.tar.gz
  • Kernel: 2.6.30-gentoo-r6

*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.
Thanks a lot
__________________
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
Anssi is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 04:24 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Copyright 1998 - 2014, nV News.