LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-13-2013, 11:02 PM   #1
RayOfWinter
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, 04:23 PM   #2
Pearlseattle
Member
 
Registered: Aug 2007
Location: Zurich, Switzerland
Distribution: Gentoo
Posts: 999

Rep: Reputation: 142Reputation: 142
Hi

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:
Code:
cat /proc/asound/pcm
...which could give you an output like the following one:
Quote:
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. ...:
Quote:
mplayer2 -ao alsa:device=hw=00.03 <some sound or movie file you want to use>
...to play your file over the hdmi interface you see above.

My other bigger PC using nVidia outputs the following with "cat /proc/asound/pcm"...
Code:
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...
Code:
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.

Cheers,
 
  


Reply



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 01:09 PM
HDMI audio on puppy rojalq Puppy 6 05-29-2012 07:13 AM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM
HDMI Audio with 12.2 Woodsman Slackware 27 09-04-2009 10:53 PM
HDMI Audio with Current/13.0 Woodsman Slackware 2 08-24-2009 01:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:46 PM.

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