View Full Version : HOWTO: Win32 Video Codecs
tseliot
September 29th, 2005, 09:34 AM
This HOWTO is aimed at all the users of Ubuntu (both 32 and 64bit although wmv9 files don't work in Ubuntu 64bit) and it is useful because win32 codecs aren't available anymore in the repositories for legal reasons.
This guide is a revised version of a guide of mine specifically aimed at 64bit users. I decided to post this new one in order to avoid misunderstandings.
If you want to watch your movies (avi and wmv) or listen to your music files (wma) which require Win32 codecs this is what you need:
1)You have to OWN A LEGAL COPY of Windows, because these are proprietary codecs (somebody correct me if I'm wrong)
2)Install “xine-ui” and “totem-xine” in Synaptic or type in the command line:
sudo apt-get install xine-ui ; totem-xine
3) Launch Xine (or Totem) and try to play a video (this will create a .config file)
4) Download the codecs from this website:
http://www.mplayerhq.hu/homepage/design7/dload.html
(just download the “essential codecs package”)
if the link above is temporarily down try this mirror:
http://www4.mplayerhq.hu/homepage/design7/dload.html
5) Open the command line(“Konsole” if you are using KDE, “Terminal” if you are using GNOME) and follow these steps:
a) Get to the directory where you have downloaded the file (/home/alberto/downloads in my case)
cd /home/alberto/downloads
b) Create the directory in which you are going to put the codecs (/usr/lib/win32)
sudo mkdir /usr/lib/win32
c) Now, assuming the file you downloaded is “essential-20050412.tar.bz2”:
tar -xjf essential-20050412.tar.bz2 (this will extract the file)
sudo mv essential-20050412/* /usr/lib/win32 (this command will move the files to the desired folder)
d) Now restart xine (if you were using it)
Congratulations, now you can open wma, wmv, and avi files by using Totem and Xine!
NOTE: It seems wmv9 don't work with my HOWTO if you use Ubuntu 64bit.
Alberto
sal
September 29th, 2005, 09:37 AM
thanks for this.
do you know if there will be HOWTO's for the other thing removed from the repos? such as sun-java and dvd playing?
tseliot
September 29th, 2005, 09:44 AM
thanks for this.
do you know if there will be HOWTO's for the other thing removed from the repos? such as sun-java and dvd playing?
No, I don't. But I might be writing a guide about sun-java almost as soon as I get my hands on Breezy stable (because then I will need to install java again).
sal
September 29th, 2005, 10:01 AM
yes, this is what i expect to have happen. most of the HOWTo's will be writen when breezy go's gold. i wounder how soon untill breezy gets its own sector on the forums? hopefully soon.
bluemist
September 29th, 2005, 05:24 PM
Playing WMV9 didn't work for me in Totem, although it now worked in Mplayer.
Totem may be looking at all the other codecs I installed, anyone know how to configure it?
tseliot
September 29th, 2005, 05:35 PM
Playing WMV9 didn't work for me in Totem, although it now worked in Mplayer.
Totem may be looking at all the other codecs I installed, anyone know how to configure it?
1) Did you follow EVERY STEP of my guide?
2) Do you use Ubuntu 32bit?
sinbad782
September 29th, 2005, 08:48 PM
I didn't know the CSS decryption libraries for commercial DVD playback had been removed. This seems a bit ridiculous given that playing back your DVDs is fair use (at least in my book) and having a library available ensures interoperability.
In any case, I think www.videolan.org have a repo that you can add to your source.list which contains this package (libdvdcss2)
ions
September 29th, 2005, 11:48 PM
Nothing plays with xine/totem-xine but mplayer works now thanks to this.
Edit: mplayer seems to choke on audio from some files.
mcduck
September 30th, 2005, 03:28 AM
You could also get win32 codecs with
'wget ftp://ftp.nerim.net/debian-marillat/pool/main/w/w32codecs/w32codecs_20050412-0.0_i386.deb'
..and..
'sudo dpkg -i w32codecs_20050412-0.0_i386.deb'
tseliot
September 30th, 2005, 03:31 AM
Nothing plays with xine/totem-xine but mplayer works now thanks to this.
Edit: mplayer seems to choke on audio from some files.
1) Did you have problems with totem before?
2) If you didn't have problems try to install totem-gstreamer in synaptic (it will uninstall totem-xine)
tseliot
September 30th, 2005, 09:03 AM
I've noticed I can install libdvdcss2 and I suppose it's thanks to this line in my repos:
deb http://archive.ubuntu.com/ubuntu hoary-backports main restricted universe multiverse
Which should be the only repository of backports for now.
ions
September 30th, 2005, 11:37 AM
1) Did you have problems with totem before?
It's never played video for me.
2) If you didn't have problems try to install totem-gstreamer in synaptic (it will uninstall totem-xine)
I installed totem-gstreamer just to see if it'd make a difference. None.
tseliot
September 30th, 2005, 06:39 PM
It's never played video for me.
I installed totem-gstreamer just to see if it'd make a difference. None.
I've never had problems with Xine. I've done a search in this forum and it looks like you're not the only one having problems with xine. (I hope it has been fixed in Breezy)
Open Synaptic and install "vlc-gnome" or "vlc-gtk" and try to play your videos with this program.
Tell me if it works.
Kyral
September 30th, 2005, 06:48 PM
Yanno...this might stop me from doing a clean Breezy install...
Then again, I think I found the only use for that XP Pro disc I have laying around (Yes its legal)
bored2k
September 30th, 2005, 06:55 PM
Howcome? I have a clean Breezy and I have everything running.
tseliot
September 30th, 2005, 06:57 PM
Yanno...this might stop me from doing a clean Breezy install...
Then again, I think I found the only use for that XP Pro disc I have laying around (Yes its legal)
Sooner or later you will have to reinstall your OS (I hope to be wrong ;) ) so you should try Breezy.
P.S. I've always used my method to install win32 codecs (and it has always worked for me)
bored2k
September 30th, 2005, 06:59 PM
Sooner or later you will have to reinstall your OS (I hope to be wrong ;) ) so you should try Breezy.
P.S. I've always used my method to install win32 codecs (and it has always worked for me)
It's pretty much the same as installing a debian package. And if users are afraid of not knowing about upgrades, I think we'd know from several sources when Divx 6 and above codecs for Linux are made ;).
Off topic: tselio, what anime is that ?
tseliot
September 30th, 2005, 07:04 PM
It's pretty much the same as installing a debian package. And if users are afraid of not knowing about upgrades, I think we'd know from several sources when Divx 6 and above codecs for Linux are made ;).
Off topic: tselio, what anime is that ?
It's my favourite (and old) one: Kimagure Orange Road
bored2k
September 30th, 2005, 07:08 PM
It's my favourite (and old) one: Kimagure Orange Road
Kimagure Orange Road (http://anidb.info/perl-bin/animedb.pl?show=anime&aid=153)
Whoa, quite old :D.
tseliot
September 30th, 2005, 07:10 PM
Kimagure Orange Road (http://anidb.info/perl-bin/animedb.pl?show=anime&aid=153)
Whoa, quite old :D.
Yep, I was a child the first time it was transmitted in Italy (I was born in 1983, and maybe I'm older than you)
bored2k
September 30th, 2005, 07:30 PM
Yep, I was a child the first time it was transmitted in Italy (I was born in 1983, and maybe I'm older than you)
Never saw it. When I was small I was probably blinded with mecha anime and military type cartoons. And yes, you're older than me by about two years.
Now, back on topic ^__^
greywolf73
October 1st, 2005, 01:19 AM
Thanks it work. I just have a few questions. Do you know it does not work with gstreamer? In order to install xine and it components I had to uninstall gstreamer, totem, totem gstreamer, and ubuntu-desktop. Do you why ubuntu desktop was uninstalled and is that a bad thing?
bored2k
October 1st, 2005, 01:36 AM
It is not a bad thing greywolf73. ubuntu-desktop is simply a meta-package and yes, there's no problem with installing totem-xine over gstreamer.
TakisX
October 5th, 2005, 05:20 PM
I followed your how to and xine plays the avi files i have but totem asks for some plugin in order to play .
Any ideas ?
tseliot
October 5th, 2005, 05:46 PM
I followed your how to and xine plays the avi files i have but totem asks for some plugin in order to play .
Any ideas ?
1) Did you install totem-xine (open synaptic and make sure you did)?
2) Are you trying to use Totem while using KDE?
bored2k
October 5th, 2005, 06:19 PM
1) Did you install totem-xine (open synaptic and make sure you did)?
2) Are you trying to use Totem while using KDE?
2. TakisX, if so, install kaffeine-xine and use that instead of totem.
ubuntumaneh
October 5th, 2005, 06:37 PM
Besides debian marillat, there are non-official repositories out there (there will be no support from Ubuntu people, for what I understood). One I know contains w32codecs is:
deb ftp://cipherfunk.org/pub/packages/ubuntu/ hoary main
With this, you can use apt-get. But be cautious with this kind of repository.
I may suggest we should try to set a list of non-official repositories and post here. With the proper cautious warnings, of course.
However, this kind of how-to's is great, indeed. I have been installing some ubuntu in many computers these days, ann these how-to's happens to be very handy. Besides that, there is always googling non-official repositories.
As come to sun-java, usually, which the proper changes, i follow or recommend the offical how-to on linux installation:
http://java.com/en/download/help/5000010500.xml#selfextracting
albertoramirez
October 5th, 2005, 10:34 PM
Worked fine!!!
Thanks a lot:razz:
Vytas
October 6th, 2005, 05:26 PM
If you use Breezy (might work with Hoary, too), and you want totem-gstreamer, you can install those codecs for gstreamer, too (works with minor issues for me).
1. Install codecs into /usr/lib/win32, as mentioned.
2. Install gstreamer0.8-pitfdll.
3. If it doesn't work, or you mixed 1. and 2., run sudo gst-register-0.8
tseliot
October 6th, 2005, 05:32 PM
If you use Breezy (might work with Hoary, too), and you want totem-gstreamer, you can install those codecs for gstreamer, too (works with minor issues for me).
1. Install codecs into /usr/lib/win32, as mentioned.
2. Install gstreamer0.8-pitfdll.
3. If it doesn't work, or you mixed 1. and 2., run sudo gst-register-0.8
Nice addition :)
delaguer
October 7th, 2005, 06:05 AM
This HOWTO is aimed at all the users of Ubuntu (both 32 and 64bit although wmv9 files don't work in Ubuntu 64bit) and it is useful because win32 codecs aren't available anymore in the repositories for legal reasons.
This guide is a revised version of a guide of mine specifically aimed at 64bit users. I decided to post this new one in order to avoid misunderstandings.
If you want to watch your movies (avi and wmv) or listen to your music files (wma) which require Win32 codecs this is what you need:
1)You have to OWN A LEGAL COPY of Windows, because these are proprietary codecs (somebody correct me if I'm wrong)
2)Install “xine-ui” and “totem-xine” in Synaptic or type in the command line:
sudo apt-get install xine-ui ; totem-xine
3) Launch Xine (or Totem) and try to play a video (this will create a .config file)
4) Download the codecs from this website:
http://www.mplayerhq.hu/homepage/design7/dload.html
(just download the “essential codecs package”)
5) Open the command line(“Konsole” if you are using KDE, “Terminal” if you are using GNOME) and follow these steps:
a) Get to the directory where you have downloaded the file (/home/alberto/downloads in my case)
cd /home/alberto/downloads
b) Create the directory in which you are going to put the codecs (/usr/lib/win32)
sudo mkdir /usr/lib/win32
c) Now, assuming the file you downloaded is “essential-20050412.tar.bz2”:
tar -xjf essential-20050412.tar.bz2 (this will extract the file)
sudo mv essential-20050412/* /usr/lib/win32 (this command will move the files to the desired folder)
d) Now restart xine (if you were using it)
Congratulations, now you can open wma, wmv, and avi files by using Totem and Xine!
NOTE: It seems wmv9 don't work with my HOWTO if you use Ubuntu 64bit.
Alberto
thanks for the howto :)
however, i tried this to manual install azureus, but the tar.bz2 just won't extract.
(don't worry about the java package, i have all that azureus needed)
alf@DeBuntu:~$ sudo tar -xjf azureus_2.3.0.4_linux.motif.tar.bz2
tar: azureus_2.3.0.4_linux.motif.tar.bz2: Cannot open: No such file or directorytar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
what did i do wrong? any idea?
i have installed azureus before using apt-get install azureus, but now it just does not work anymore. i don't know why. wish it was as simple as before. :(
tseliot
October 7th, 2005, 06:37 AM
thanks for the howto :)
however, i tried this to manual install azureus, but the tar.bz2 just won't extract.
(don't worry about the java package, i have all that azureus needed)
alf@DeBuntu:~$ sudo tar -xjf azureus_2.3.0.4_linux.motif.tar.bz2
tar: azureus_2.3.0.4_linux.motif.tar.bz2: Cannot open: No such file or directorytar: Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors
what did i do wrong? any idea?
i have installed azureus before using apt-get install azureus, but now it just does not work anymore. i don't know why. wish it was as simple as before. :(
cd directory_in_which_you_put_the_file
ls (a list will appear)
check that the file is in the list
tar -xjf azureus_2.3.0.4_linux.motif.tar.bz2 (there's no need to use sudo)
It worked for me (with the same file)
Heretushi
October 8th, 2005, 10:07 AM
If you use Breezy (might work with Hoary, too), and you want totem-gstreamer, you can install those codecs for gstreamer, too (works with minor issues for me).
1. Install codecs into /usr/lib/win32, as mentioned.
2. Install gstreamer0.8-pitfdll.
3. If it doesn't work, or you mixed 1. and 2., run sudo gst-register-0.8
I followed the original Howto. Totem didn't read video at all.
I followed this addition. Now Totem will read WMV files. But DivX still shows as audio stream only.
Weird.
tseliot
October 8th, 2005, 01:09 PM
I followed the original Howto. Totem didn't read video at all.
I followed this addition. Now Totem will read WMV files. But DivX still shows as audio stream only.
Weird.
I 've never had your problem and I really don't know how to help you. Sorry :(
delaguer
October 8th, 2005, 06:12 PM
cd directory_in_which_you_put_the_file
ls (a list will appear)
check that the file is in the list
tar -xjf azureus_2.3.0.4_linux.motif.tar.bz2 (there's no need to use sudo)
It worked for me (with the same file)
I tried several times with this motif.tar.bz2 files, I can extract it but I always got these error messages when I tried to run azureus.
Then I tried with GTK.tar.bz2, extracted it, run it and it worked!!! it's a bit weird though because I tried to manual install azureus with GTK files few days ago and it didn't work.
anyway, thanks for your help. I appreciate it.
great HowTo! keep up the good work. ;-)
-al-
Garde
October 17th, 2005, 02:35 AM
Hi, I'm using ubuntu 5.10 (Breezy) and have followed every step in your guide. I read through everything else, and I tried the gstreamer alternative, and I still have no luck.
However, when I use Nautilus to navigate to my ntfs partitions where my video files are located, something is decoding the video for the thumbnail images. For some reason, Mplayer, Totem and Xine don't work (with the respective steps followed in order to use each). I was wondering if anyone had any advice to fix this...
Thanks.
Edit: Okay, my college's LUG helped me out, so now it runs in mplayer through the command line with the command and args:
mplayer -vo x11 <filename>
Do you guys have any ideas on how to get Totem to play the files?
tseliot
October 17th, 2005, 10:45 AM
Hi, I'm using ubuntu 5.10 (Breezy) and have followed every step in your guide. I read through everything else, and I tried the gstreamer alternative, and I still have no luck.
However, when I use Nautilus to navigate to my ntfs partitions where my video files are located, something is decoding the video for the thumbnail images. For some reason, Mplayer, Totem and Xine don't work (with the respective steps followed in order to use each). I was wondering if anyone had any advice to fix this...
Thanks.
Edit: Okay, my college's LUG helped me out, so now it runs in mplayer through the command line with the command and args:
mplayer -vo x11 <filename>
Do you guys have any ideas on how to get Totem to play the files?
Sorry, I have no idea. I've never had your problem.
samjam
October 17th, 2005, 04:18 PM
I've noticed I can install libdvdcss2 and I suppose it's thanks to this line in my repos:
deb http://archive.ubuntu.com/ubuntu hoary-backports main restricted universe multiverse
Which should be the only repository of backports for now.
Well this is how I did it, add this to sources.list
deb-src ftp://ftp.nerim.net/debian-marillat/ sarge main
and then
apt-get -b source libdvdcss
apt-get -b source libdvdcss2
apt-get -b source w32codecs
dpkg -i libdvdcss*deb w32codec*deb
Building from SOURCE from debian repos is safe, unlike madly installing binaries from all over the place.
mallternative
October 18th, 2005, 04:04 PM
4) Download the codecs from this website:
http://www.mplayerhq.hu/homepage/design7/dload.html
(just download the “essential codecs package”)
mplayerhq.hu cannot be found at this time from here. darn.
mallternative
October 18th, 2005, 04:44 PM
You could also get win32 codecs with
'wget ftp://ftp.nerim.net/debian-marillat/pool/main/w/w32codecs/w32codecs_20050412-0.0_i386.deb'
..and..
'sudo dpkg -i w32codecs_20050412-0.0_i386.deb'
--That worked for me on Hoary- 32-bit. I haven't tested it extensively. Totem plays an old wmv file I had around, and it wouldn't do it before I did that. and it also plays divx files fine. I think at this point I am using totem-xine and xine is installed.
tseliot
October 18th, 2005, 05:20 PM
mplayerhq.hu cannot be found at this time from here. darn.
try here:
http://www4.mplayerhq.hu/homepage/design7/dload.html
elapointe
February 21st, 2006, 11:03 AM
I have problem with WMV !
There are many stripe and doubled video (horizontaly)
The video seam badly decoded !
Mpeg work file !
tseliot
April 19th, 2006, 01:48 PM
I have problem with WMV !
There are many stripe and doubled video (horizontaly)
The video seam badly decoded !
Mpeg work file !
try with Mplayer
AlexanderDGreat
February 2nd, 2010, 08:38 PM
Hi, tseliot your links don't work. I'm using JJ 32bit. Can you update on this? Thanks.
mc4man
February 2nd, 2010, 09:43 PM
You've pretty much got all the same codecs when you installed w32codecs.
There are a few additional obscure ones available, 2 of which can't run in 9.10+
( out of those 2 ffmpeg handles one, the other is for some older real video I believe. Installing libstdc++5 from jaunty will enable if need be
Anyway the full page for curiosities sake
http://www1.mplayerhq.hu/MPlayer/releases/codecs/
(by the way it's libdvdread4 and libdvdnav4 - libdvdcss2 itself hasn't changed in quite some time, only the medibuntu version #'s
andrew.46
February 3rd, 2010, 05:27 AM
Hi mc4man,
There are a few additional obscure ones available [...]
My favourite obscure codec is lagarith:
http://ubuntuforums.org/showpost.php?p=8081511&postcount=10
for which I have only ever encountered a single sample :).
Andrew
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.