Friday, July 22, 2005

w32codecs for ubuntu 'hoary'

The stock Ubuntu repositories don't include the w32codecs (wmvdmod.dll, etc) so xine, mplayer can play WMV and other formats. Basically the package puts 127 DLLs in /usr/lib/w32codecs.

So, I temporarily added the following line to my /etc/apt/sources.list

deb ftp://ftp.nerim.net/debian-marillat/ testing main

And then did this:


apt-get update && apt-get install w32codecs


I then commented that line out since and apt-get upgrade would have picked up a bunch of updated packages from that repository.

23 comments:

  1. here there is a better one (for ubuntu)
    ftp://cipherfunk.org/pub/packages/ubuntu/

    ReplyDelete
  2. According to the logs, this is my most popular blog entry.

    Leave a note here if you find it helpful. Also leave a note if you *don't* find it helpful and suggest a URL
    that is.

    Thanks!

    -marc

    ReplyDelete
  3. Hiya Marc

    The line "deb ftp://ftp.nerim.net/debian-marillat/ testing main"

    ..... is fine - but I have found out that "testing" should be replaced by "sarge". Not sure if this is a permanent change......

    The second link doesn't work for me..... just times out.

    Take care man
    JJ

    ReplyDelete
  4. JJ is right, thanks for mentioning that JJ, or i doubt i would have figured it out myself.
    BTW this page is #1 when you search for w32codecs+ubuntu on google. :)

    ReplyDelete
  5. I put that deb line in the list and then ran "sudo apt-get update && apt-get install w32codecs" but got these errors:

    W: GPG error: ftp://ftp.nerim.net sarge Release: The following signatures couldn 't be verified because the public key is not available: NO_PUBKEY 07DC563D1F41B9 07
    W: You may want to run apt-get update to correct these problems
    E: Could not open lock file /var/lib/apt/lists/lock - open (13 Permission denied )
    E: Unable to lock the list directory

    got any ideas?
    Thanks for the help

    ReplyDelete
  6. tod: try `sudo apt-get update && sudo apt-get install w32codecs`

    ReplyDelete
  7. To install the appropriate key, use:

    gpg --recv-key 07DC563D1F41B9
    gpg --export 07DC563D1F41B9 | apt-key add -

    ReplyDelete
  8. Tod,

    From a note I finally added to my /etc/apt.sources so I would not have to look it up again:

    # keys for verification are retrieved with gpg:
    # gpg --recv-keys 07DC563D1F41B907
    # and added with apt-keys:
    # gpg --export -a 07DC563D1F41B907 | sudo apt-key add -
    # (the example is Christian Marillat's key)


    sdb

    ReplyDelete
  9. http://murtog.blogspot.com/2005/10/w32codecs-for-ubuntu-hoary-breezy.html

    In this link there is a tutorial to install the package.

    ReplyDelete
  10. the repo in the article didn't work for me, but the one listed by marC did. the line i added to /etc/apt/sources.list:

    deb ftp://cipherfunk.org/pub/packages/ubuntu breezy main

    then did the:
    sudo apt-get update; sudo apt-get install w32codecs

    they also have more up-to-date versions of some other video codec packages.

    ReplyDelete
  11. Guys

    I can't this to work. I think it may be due to my architecture.

    W: Couldn't stat source package list ftp://cipherfunk.org breezy/main Packages (/var/lib/apt/lists/cipherfunk.org_pub_packages_ubuntu_dists_breezy_main_binary-powerpc_Packages) - stat (2 No such file or directory)

    Any assistance greatly appreciated

    Graham

    ReplyDelete
  12. Yes, as you guessed the problem is those binary-only codecs are only available for the i386 platform.

    You can tell because in ftp://cipherfunk.org/pub/packages/ubuntu/pool/main/w/w32codecs/ there is not powerpc packages.

    -marc

    ReplyDelete
  13. Marc - cheers for confirming that.

    ReplyDelete
  14. i used mike's explaination and it works very good. But there is still a problem that i need serious answer which i think someone can help me to find answers to it, i have searched but no answer the problem is my laptop is azerty but after installation of the new version of ubuntu ie hoary the keyboard is now qwerty i have tried but no fruitfull result
    Any idea about how to go abt is hartely welcome
    taran

    ReplyDelete
  15. Working Ubuntu w32codecs

    The details in the article didn’t work for me either - some nice dude near the bottom of the comments has got it working (marC). I added this to the /etc/apt/sources.list:

    deb ftp://cipherfunk.org/pub/packages/ubuntu breezy main

    then did the:
    su...

    ReplyDelete
  16. Awesome. Thanks Marc (and Mike), CNN video works now. :)

    ReplyDelete
  17. What about authentication? There's no indication that these w32codecs are coming from an official source, because they aren't signed by anyone. Doesn't this introduce the risk of a trojan?

    ReplyDelete
  18. M, of course you are trusting the owners of cipherfunk.org & ftp.nerim.net
    are doing the right thing.

    Anytime you download and install binaries or source, there is an element
    of trust involved.

    -marc

    ReplyDelete
  19. Just wanted to say THANK GOD for finding this. I have been working for liek 3 hours and came across this and got it working in like 15 min.


    Good job guys.

    Ry

    ReplyDelete
  20. on irc.freenode.net's #ubuntu channel, the uboto chatbot says this:

    ...about w32codecs ([w32codecs] binary only codecs that some call evil., and they're available from http://giannaros.org/public/breezydebs/)

    ReplyDelete
  21. got this working with

    deb ftp://ftp.nerim.net/debian-marillat/ sid main

    for my debian unstable box.

    see http://ftp.nerim.net/debian-marillat/ (scroll down) for help.

    ReplyDelete
  22. David,

    Ubuntu 5.04 is no longer the current version, Ubuntu 5.10 has out since
    October 2005.

    My original posting was related writing back in July 2005 when I was using
    the older version. It appears that the *unofficial* repositories have changed
    since then.

    You didn't mention where you are getting your information. I recommend
    the official Ubuntu Wiki -- https://wiki.ubuntu.com/ or checking in on IRC in
    #ubuntu on irc.freenode.net

    ReplyDelete
  23. Don't trust unofficial repos (especially packages that aren't signed).

    ReplyDelete