Problems with sound and video on ubuntu ?

Howdy,

I am writing this post because so many people are asking me about it.
I will not invent anything new here, i will just make a general tutorial that will fix 80% of your audio/video problems.

Please understand that i do not guarantee 100% success result, because it all depends on the hardware you have.

Before digging in complicated stuff, lets first try to install the Medibuntu packages.

Some of these packages include the libdvdcss package from VideoLAN and the external binary codecs package (commonly known as w32codecs) used by MPlayer and xine.


Step 1:
Add Medibuntu to your system’s list of APT repositories.
For ubuntu 7.10

sudo wget http://www.medibuntu.org/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/medibuntu.list

For ubuntu 8.04

sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.list

Now add the GPG Key:

sudo apt-get update && sudo apt-get install medibuntu-keyring && sudo apt-get update

Step 2:
Install the libdvdcss2 package.
This package is used to play encrypted DVDs, more information about it here

sudo apt-get install libdvdcss2

Step 3:
Installing Non-Native Media Formats.
These media formats includes but are not limited to: wmv, mp3, .mov, .rm etc…

For i386 (use this if you are not sure)

sudo apt-get install w32codecs

For amd64

sudo apt-get install w64codecs

For ppc

sudo apt-get install ppc-codecs

This is it, restart your PC now and try to play some music. If you still cannot hear the beat continue reading this post.

mmm… I see you are still having problems ? Lets try to do more complicated stuff.
What we will do now is recompile the alsa drivers

UPDATE: Please be aware that compiling from source should be done as a last resort.
When you compile stuff from source apt don’t know about them, so it wont keep track of it.

Step 1:
Lets download them first.
We need to get: alsa-driver, alsa-lib and alsa-utils.
You can download the latest releases from here:

Step 2:
Untar these packages.
You can untar them using GNOME or by typing this line of code in terminal

tar yxf alsa-driver-xxx.tar.bz2 alsa-lib-xxx.tar.bz2 alsa-utils-xxx.tar.bz2

Note: dont forget to replace xxx by your version number.

Step 3:
To configure/install alsa utilities we need the following package.

sudo apt-get install libncurses5-dev

Step 4:
Installing alsa

In the alsa drivers folder type:

sudo ./configure –with-cards=intel8×0 –with-sequencer=yes ; make ; make install

In the alsa Lib folder type:

./configure
make
sudo make install

In the alsa utilites folder type:

./configure
make
sudo make install

Restart your PC and cross your fingers :)

Hope I helped you in a way.

// Jo

Popularity: 6% [?]

2 Responses to “Problems with sound and video on ubuntu ?”


  1. 1 Peterix

    Installing stuff from the medibuntu repository is a good idea. Compiling your own alsa and NOT making a package for it is very very wrong and could lead to some breakage.
    You should use checkinstall to create new alsa packages. This way you can still remove them when things go HORRIBLY WRONG.

    Good tutorials on how to use that:
    http://www.debian-administration.org/articles/147
    http://www.linux.com/feature/114083

    Basically, you have to have checkinstall ’sudo aptitude install checkinstall’ and then replace every ‘make install’ with ‘checkinstall -D make install’.
    This will generate a .deb package that can be installed either with ‘dpkg’ or by double clicking it.

  2. 2 Angelfire

    GPG error: http://wine.budgetdedicated.com hardy Release: The following signatures couldn’t be verified because the public key is not available: NO_PUBKEY 58403026387EE263

    :(

Leave a Reply