Audio through HDMI Cable?
When I run my video through the HDMI cord on my laptop it does not put through any audio to my LCD TV when on Ubuntu. It works just fine through Windows. Any suggestions?
~Jeff |
You have to tell Linux to output through digital. Use aplay -l and note down what device is digital audio for HDMI. Then you can test it using mplayer. The following should work assuming 0.3 is digital audio over HDMI.
mplayer -ac hwac3,hwdts, -ao alsa:device=hdmi -channels 2 [i]file[/file] or mplayer -ac hwac3,hwdts, -ao alsa:device=plughw:0.3 -channels 2 [i]file[/file] or mplayer -afm hwac3,hwdts, -ao alsa:device=hdmi -channels 2 [i]file[/file] or mplayer -afm hwac3,hwdts, -ao alsa:device=plughw:0.3 -channels 2 [i]file[/file] If it works in a reliable way or all the time, you can then create $HOME/.asoundrc to always use it. Not all systems support passing digital audio through HDMI. |
I'll give that a go... I also need to set this up for my not-so-computer savy friend how ever so I need to get it working automatically. Also how would I go about having other applications, such as firefox (for streaming video) or VLC, to use the HDMI audio out? Start with a similar argument after them?
~Jeff |
Here is copied from terminal the digital entry:
Code:
card 0: Intel [HDA Intel], device 1: ALC888 Digital [ALC888 Digital] ~Jeff |
The following should work.
mplayer -afm hwac3,hwdts, -ao alsa:device=hdmi -channels 2 file or mplayer -afm hwac3,hwdts, -ao alsa:device=plughw:0.2 -channels 2 file Digital audio is not reliable in Linux. Linux is not designed for computer illiterates. Also Linux is still design for servers. Third Linux power saving features like Suspend to RAM or Suspend to Disk is not reliable enough to use in production systems. A notebook computer that I suggest for computer illiterates is a MacBook or MacBook Pro. Mac OS X has Unix like commands that can be access from Applications -> Utilities -> Terminal. If you insist using Linux for notebook computers, you have to do the following. 1) Install MPlayer with almost every feature do not forget LIVE support and leave out GUI or GTK 2) Install SMPlayer 3) Install mplayerplug-in 4) Install VLC 5) Install Adobe Flash plug-in 6) Install Adobe Reader 7) Install PulseAudio and its utilities and modules 8) Pick a GUI WiFi program that is easy. I use kwifimanager. 9) Install acpid, cpufreqd, and laptop-tools 10) Install hibernate scripts and configure 11) Configure acpid, cpufreqd, and laptop-tools 12) Configure hal and dbus for removable storage devices 13) Install and configure ifplugd 14) Configure PulseAudio 15) Test mplayerplug-in at apple.com, nasa.gov, or others 16) Test WiFi 17) Test removable storage 18) Test power management between AC and battery 19) Test hibernate scripts for Suspend to RAM or Suspend to Disk 20) Test lid close if want to turn off lamp. 21) Test xscreensaver or similar program 22) Test PulseAudio to find out how easy it is to switch from analog outputs to digital The following is what I use for MPlayer config (/etc/mplayer/mplayer.conf). Code:
################## |
Thanks for your help thus far, any idea what I would use to launch the film via VLC to get audio over the HDMI? mplayer is alright, but I much prefer VLC for movie watching.
~Jeff |
VLC is not reliable and stable all the time, so I suggest use MPlayer. I suggest SMPlayer for GUI front end for MPlayer because it is easy to use. Do not use MPlayer's GUI front end (GMPlayer) because it is not reliable. I recommend do not include GMPlayer while compiling MPlayer.
If you insist of using lousy VLC, the settings are in the preferences. It is not hard to figure out. Getting VLC to pass through AC-3 and DTS with out first decoding it will be a problem. I still strongly recommend an Apple notebook because Mac OS X is tailored for "not-so-computer savvy" users. Linux is still tailored for servers. Linux for notebooks is far from production use because putting a notebook computer in suspend mode is not reliable and stable. Mac OS X uses SAMBA for file sharing and CUPS for printing, so you still are using some open source projects. |
Heh, say what you will but desktop Linux has come a long way in the last couple of years and it is only going to continue advancing. One day we will see support for things such as HDMI audio support on it.
Anywho I just went out and got a 1/8 to RCA cable to run my sound through my stereo. ~Jeff |
All times are GMT -5. The time now is 03:27 PM. |