Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-14-2013, 12:02 AM   #1
LQ Newbie
Registered: Oct 2013
Posts: 2

Rep: Reputation: Disabled
Question Different Audio on Different HDMI Ports

I'm currently designing an HTPC which I'm hoping can be used to feed two different non-adjacent TV's. Each would be able to play their own videos through the two HDMI ports on the motherboard. I know how to do a multiple-desktop setup in which there are different visuals on the video outputs, but how can I apply that to audio? If I try playing video through two different instances of video players, even though HDMI carries the audio, the system will by default pool them together, making them unlistenable. Is there any way to get around this, so that, optimally, I can launch two instances of a video application that can only see one HDMI port each, both in sound and video?

I'm hoping to use Ubuntu with this, as that's the distro I'm most familiar with, but am open to any distro that would accomplish this. Thanks!
Old 10-27-2013, 05:23 PM   #2
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 978

Rep: Reputation: 118Reputation: 118

I use a distribution called "Gentoo", which comes more or less barebone. I don't want to say that you should switch to it, which could be quite hard, but I think that for your first experiments you should at least switch off the additional audio services like "pulseaudio", "jack" and anything you might have running related to audio, leaving only "alsa".

Once you've done it you can list all your HW-audio-devices with:
cat /proc/asound/pcm
...which could give you an output like the following one:
cat /proc/asound/pcm
00-03: NVIDIA HDMI : NVIDIA HDMI : playback 1
01-00: CMI8738-MC6 : C-Media PCI DAC/ADC : playback 1 : capture 1
01-01: CMI8738-MC6 : C-Media PCI 2nd DAC : playback 1
01-02: CMI8738-MC6 : C-Media PCI IEC958 : playback 1 : capture 1
If you see there the device that you want to use then use e.g. ...:
mplayer2 -ao alsa:device=hw=00.03 <some sound or movie file you want to use> play your file over the hdmi interface you see above.

My other bigger PC using nVidia outputs the following with "cat /proc/asound/pcm"...
00-00: ALC892 Analog : ALC892 Analog : playback 1 : capture 1
00-01: ALC892 Digital : ALC892 Digital : playback 1
00-02: ALC892 Analog : ALC892 Analog : capture 1
01-03: HDMI 0 : HDMI 0 : playback 1
01-07: HDMI 0 : HDMI 0 : playback 1
01-08: HDMI 0 : HDMI 0 : playback 1
01-09: HDMI 0 : HDMI 0 : playback 1
...and it worked when issuing in parallel the commands...
mplayer2 -ao alsa:device=hw=00.03 <some sound or movie file you want to use>
mplayer2 -ao alsa:device=hw=00.07 <some sound or movie file you want to use>
...but 8 and 9 never worked, not even when used standalone, so I don't know what their scope is (too lazy).

So, basically, the answer to your question is: it should work.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[ProLiant MicroServer, ATI R6xx HDMI, Digital Out, HDMI] No HDMI sound at all vnatius Linux - Hardware 15 08-16-2012 02:09 PM
HDMI audio on puppy rojalq Puppy 6 05-29-2012 08:13 AM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 10:47 AM
HDMI Audio with 12.2 Woodsman Slackware 27 09-04-2009 11:53 PM
HDMI Audio with Current/13.0 Woodsman Slackware 2 08-24-2009 02:40 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration