Showing posts with label Boxee. Show all posts
Showing posts with label Boxee. Show all posts

Dec 5, 2011

XBMC & Nvidia VDPAU on Ubuntu 11.10 with working Sound over HDMI


I've successfully built another XBMC Ubuntu 11.10 machine with sound over HDMI thanks to various internet resources and some good ole troubleshooting. Sound is audible through the Internet Browser as well as through XBMC, so we have system sounds as well as movie sounds enabled. 

My system plays 1080p and 720p movies smoothly with almost no CPU utilization e.g. a 15 gigabyte 1080p Blu-ray rip runs perfectly smooth. Nvidia's VDPAU handles all of the HD processing, and the video is stunning. Also, XMBC's AEON skin is just as beautiful. Note: Adobe's Flash 11 has numerous bugs in its current state, so it does not work 100% with this build, and it seems slightly more stable in Firefox than in Chrome.

This tutorial should work for Nvidia hardware users as well as give some troubleshooting ideas for ATI users.

Tutorial

My Setup:
Acer Revo R1600 (stock and unmodded)
Nvidia ION LE
Ubuntu 11.10 64-bit
HDMI

Instructions:

1. Install Ubuntu 11.10

2. Get the Nvidia driver
How To Install Nvidia 275.09.07 Driver in Ubuntu 11.10 Oneiric Ocelot?

3. Install XBMC
Install XBMC on Ubuntu 11.10 Oneiric Ocelot/Linux

4. Getting Sound to play over HDMI may take several steps:

First, check to see if sound is enabled and unmuted. SPDIF should be unmuted as well:


"Code:
alsasmixer
Press <F6> to select the correct soundcard.
Press <F3> to show playback levels. <F4> selects capture levels [or use <Tab>]
Use the left/right arrow keys to select and up/down arrow keys to change levels. <M> to mute/unmute.
Go to "System ->Preferences ->Sound" and make sure the correct soundcard is default and adjust your profile on the hardware tab. 
On the output tab choose the correct device."
Then we'll check to see where our sound device is located by:
Code:
aplay -l
(Mine was 0,3)

Next, we'll load a module to finally get system sounds working:

From Ubuntuforums user efflandt on http://ubuntuforums.org/showpost.php?p=10367062&postcount=5 (I've modified the hardware location to match my hardware 0,3) :

"
Code:
aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
Mine is 0,3 so I added a line to /etc/pulse/default.pa after alsa-sink line:

Code:
#load-module module-alsa-sink
load-module module-alsa-sink device=hw:0,3
Reboot. The only odd thing it that in the Output tab of Sound Preferences you will need to select the HDA NVidia device that does NOT say HDMI to get HDMI sound. The speaker test in Sound Preferences will not work, but if you play Rythmbox, etc. you should be able to switch sound output on the fly."

Lastly, we're going to enable HDMI sound in XBMC

Select HDMI in Audio Output
Under Audio Output Device, select Defaults
For passthrough sound to your receiver, choose the setting your setup requires.

Now get some popcorn going, sit back, and enjoy your HTPC!

Troubleshooting & Tips

Fix Video Tearing:

Overscan compensation:

Enable HD flash
http://ubuntuforums.org/showthread.php?t=1685845

Change icon size
http://www.upubuntu.com/2011/10/how-to-resize-gnome-shell-icons-in.html

Change font sizes (just change the DPI for bigger fonts)
http://ubuntuforums.org/showthread.php?p=11484414

Autologin
http://www.groupofnowhere.com/2011/10/19/xubuntu-11-10-oneiric-ocelot/

Dec 3, 2009

Boxee Keyboard Shortcuts

Courtesy of DARKFiB3R on the boxee forums:

In Menus

\ = Full Screen (Enter, Exit)
S = Exit, Suspend
A = Library Status
H = Home
Home = Top of list
End = Bottom of list
Esc = Back
Enter = Enter
Arrows = Up, Down, Left, Right

In Playback

I = Toggle info
Y = Toggle info on CPU load and FPS
O = Toggle info
R = Rewind: 2X > 4X > 8X > Play (Space = Play)
P = Pause
[ = Skip back 10 mins
] = Skip Forward 10 mins
< = Previous track > = Next track
A = Library Status
S = Exit, Suspend
V = Toggle Home & Now Playing
F = Foward: 2X > 4X > 8X > 16X > 32X > Play (Space = Play)
X = Stop now playing
Space = Play, Pause

Aug 18, 2009

Tutorial: Zotac ION N330 + Boxee/XBMC + VDPAU + 1080P w/sound over HDMI

*Update 12/01/09 - Instructions For BOXEE ONLY. Please refer to this post for XBMC.*

This post will get you video and audio over HDMI including audio passthrough for Dolby Digital or DTS. Feel free to skip down to the good stuff ; ).

The Zotac N330 is a dual core Atom CPU with an Nvidia ION GPU inside a tiny 7.5"x7.5" form factor. What's really amazing though is that when these two little chips are put together they are capable of playing 1080P HD content without even breaking a sweat. Through VDPAU for Linux, or Direct X 10 for Windows, content traditionally sent to the CPU is now sent to the ION to decode. This means for users like us, this opens the door to media, games, and powerful computing in a small, well priced, and low power consuming computer. Emphasis on powerful and well priced.

I ordered my board on Amazon w/free shipping for $190 including a 19V power supply--I assumed it would be a 12V power supply. After completing the installation, when playing 720P movies, my CPU usage was less than 6% per core! From what I've read, 1080P does NOT utilize the CPU core all that much either.

FYI: For those worried about getting an older board: the older revision of this board had a USB suspend problem, but now all the boards being sold have been fixed with an added jumper.

Here are my system specs:
Zotac N330
1GB DDR RAM
4GB OCZ Rally2 USB stick w/Ubuntu 8.10 Intrepid installed
Boxee w/latest build

These instructions are interchangeable with XBMC. Boxee is built on XBMC, so some of the references will look similar.

This will get you the latest NVIDIA graphics drivers:

Add these repositories to your sources:

deb http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu intrepid main
deb-src http://ppa.launchpad.net/nvidia-vdpau/ppa/ubuntu intrepid main

Open up a terminal:
sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 71609D4D2F1518FA9C5DC0FB1DABDBB4CEC06767
sudo apt-get update
sudo apt-get install linux-headers-generic nvidia-glx-185
sudo reboot

Upon Rebooting go into the BIOS.
(the following instruction is from my memory, so if you dont' find it there, it's somewhere in your BIOS) In your BIOS, go to Southbridge configuration and change the video RAM from 256MB to 512MB. Inside the Southbridge config, change Audio codec to Internal only.

Go into boxee, Settings, Video:
Turn on accelerate videos when posssible to enable VDPAU.
Exit boxee.



This will get you sound over HDMI:
(not sure about coax or optical)

Boot into Ubuntu, and open up a terminal and type:
sudo gedit ~/.asoundrc


Paste the following into that file:
pcm.dmixer {
type dmix
ipc_key 1024
ipc_key_add_uid false
ipc_perm 0660
slave {
pcm "hw:0,3"
rate 48000
channels 2
period_time 0
period_size 1024
buffer_time 0
buffer_size 4096
}
}
pcm.!default {
type plug
slave.pcm "dmixer"
}

Open up another terminal (this will enable Youtube, and XBMC system sounds):
Type in: alsamixer
Make sure that IEC958 is unmuted by pressing the letter "m" without quotes.
If it it muted, then it will look like this - Item: IEC958 [off]
Once you unmute it, then it will look like this - Item: IEC958


Save. Close it. Reboot.


Inside Boxee:
Go to Settings, System, Audio and change the following:

Instead of:
sound: ie958
passthrough: ie958

Change to (type default to where ie958 is):
sound: default
passthrough: default

Now you will have HD video and sound in Ubuntu to Boxee from your HD videos all the way to youtube, hulu, or whatever you want to play. Now go have fun!