Debian having released the latest stable version of its GNU/Linux distribution, there is obviously a rush by Debian users to upgrade their distro. Debian is considered by its die hard followers to be one of the few GNU/Linux distributions which can stand up to other Unix OSes with regard to security without sacrificing those aspects which make GNU/Linux the most feature rich posix OS in the world.
But once you finish installing Debian, you need to do some housekeeping so as to enable you to play multimedia files which are encoded using proprietary or closed formats such as Microsoft's WMV files or Apple's quick time files.
This can be achieved in a number of ways:
Method I (Easy way)
- Open the file /etc/apt/sources.list and append the following line :
#FILE /etc/apt/sources.list
...
deb http://www.debian-multimedia.org etch main - Update the packages using the command :
# apt-get update
Learn more on the use of apt-get and dpkg. - Now you can install all the multimedia codecs as well as libdvdcss which is necessary to view DVD movies, using the following command :
# apt-get install w32codecs libdvdcss2
- Visit the mplayer official website and download the multimedia binary codecs package (this is available in a variety of package formats). Make sure you download the package suited to your architecture and operating system. For example, there are packages for Intel32 and AMD64 architecture apart from those for Windows.
- Unpack them and copy them into the /usr/lib/codecs directory as follows :
# tar -xvjf essential-20061022.bz2
# cd essential-20061022
# cp * /usr/lib/codecs/.If you do not have a codecs directory, then you have to create it first. Next create a soft link of all the files in the codecs directory to the location /usr/lib/win32/ as follows :# cd /usr/lib/win32
# ln -s /usr/lib/codecs/* .Now you have all the win32 codecs installed on your machine which can be accessed by the media players such as totem to play WMV, Quick time and other proprietary format files. - To install libdvdcss2 which is a necessary ingredient for playing encrypted DVD movies, download the libdvdcss2 library from its official site and install it on your Debian machine. They provide the binary as a Deb package which makes it really convenient. If you have downloaded it in some other package such as bzip2, then just unpack the contents and copy the two files libdvdcss.so.2 and libdvdcss.so.2.0.8 to the /usr/lib/ directory as follows:
# tar -xvjf libdvdcss-1.2.9.tar.bz2
# cd libdvdcss-1.2.9/
# cp libdvdcss.so.2 libdvdcss.so.2.0.8 /usr/lib/.
That is all there is to it. Now you can view videos and play music in almost all video and audio file formats. While you are at it, it might also be desirable to download and install mplayer - a versatile audio and video player.
Note: If you still run into trouble playing your favourite audio or video files in any player, you can use the strace tool (installed by default on all Linux distributions) to troubleshoot your problem.
Note: If you still run into trouble playing your favourite audio or video files in any player, you can use the strace tool (installed by default on all Linux distributions) to troubleshoot your problem.


11 comments:
This is a cool tutorial. Made my day. I was struggling to get multimedia to work in my Debian machine. And it worked like a charm.
Thanks ravi.
I didn't know doing it the manual way was this simple. Thank you very much for making it clear.
I have one doubt though...
Will the steps in the second method (manual method) also work for fixing libdvdcss2 and multimedia codecs in other linux distributions such as Fedora, SuSE, Slackware etc ?
Hello thanks for the guide. I tried to do as you specify with libdvdcss2 but there are no such files as libdvdcss.so.2 or libdvdcss.so.2.0.8 in there. The complete list is...
libdvdcss-1.2.9/
libdvdcss-1.2.9/autotools/
libdvdcss-1.2.9/autotools/compile
libdvdcss-1.2.9/autotools/config.guess
...
libdvdcss-1.2.9/README
...
libdvdcss-1.2.9/Makefile.in
...
libdvdcss-1.2.9/src/
...
//Truncated for brevity.
I am new to linux and run suse 10.2. Thank you.
@anonymous
I have not tried the step with other Linux distributions. But as far as I can tell, it should work properly. And if you do get into trouble, you can always use strace to troubleshoot and find the actual path.
@marios
From the list you have provided, it seems you have downloaded the source package. Once you compile it using the commands:
$ ./configure
$ make
# make install (Note: You have to be root here)
you will find the files I have listed in the exact locations. Since you claim to be new to linux, you will be better off in downloading the binary of libdvdcss which is available at its official site (link in the article).
In opensuse, you can do it easily using yast. Please check the review of opensuse to see how you can use yast. I have also provided links to other interesting resources of opensuse there.
Hope this helps.
Ravi
@anonymous
I do not know about suse or fedora but I was able to get it to work in Slackware using the manual method.
The manual method works great in every version of Slackware that I've tried. It also works just fine on CentOS and Ubuntu. Heck, I even did it on a Yellow Dog Linux (Power Mac) box, and while the WMV codecs (x86 binaries) of course didn't work, the DVD playback works just fine.
The manual method works on pretty much *every* GNU/Linux distro--and also the BSD's--that you'd care to try. And as you can see, it is not difficult at all.
unbuntu amd64 help please
Thank you for the tutorial, i really appreciate it, but i'm having newb problems, can you help?:
# cd /usr/lib/win32
bash: cd: /usr/lib/win32: No such file or directory
-strange as you didn't mention there would be no win32; i assume i have to create it:
# mkdir /usr/lib/win32
# cd /usr/lib/win32
# ln -s /usr/lib/codecs/*
ln: target `/usr/lib/codecs/wvc1dmod.dll' is not a directory
- final problem. I'm lost here, why do i have such a different output.
Debian Etch, trying to learn.
Also, where's the Totem config file located??
Thanks again
Thanks for the information. I have just upgraded my inspiron 6400 from Vista to Ubuntu 7.10. The codecs are the only thing I was missing.
I recentely installed ubuntu 7.10 and installed all codecs but still when i try to play any file by double clicking on it, totem player open and says codec not installed . Plz help me. I followed exactly what you mentioned above
Great!
Your description of the installation/configuration of the codecs works. I worked for a long time with "SuSE".
I was afraid to change the configuration-files. I only installed the Distri-RPMs... Now i am using debian and i think it`s the best distribution. Thanks...
Thanks.
Post a Comment