Results 1 to 5 of 5

Thread: HOWTO: Pitfdll - codecs for Totem-GStreamer

  1. #1
    Join Date
    Mar 2005
    Location
    Australia
    Beans
    418
    Distro
    The Feisty Fawn Testing

    HOWTO: Pitfdll - codecs for Totem-GStreamer

    Recently I discovered a library called Pitfdll (http://ronald.bitfreak.net/pitfdll.php) which lets GStreamer use .dll files for codecs. This will let you use (some of) the codecs found in the w32codecs package, without having to install totem-xine.

    Currently it only supports Windows Media Video 9 (wmv3), QDesign Music 2 (qdm2) and Intel Indeo 5 (iv50), but hopefully it will support more inthe future. I've tested some random WMV clips I had around as well as the Serenity Trailer (which uses qdm2) - and all worked very well.

    Currently I don't know of any .debs around which you can install, so you will have to compile it yourself. On to the instructions:


    First you will need to have the dependencies installed, the GStreamer development packages, and w32codecs.
    Code:
    sudo apt-get install libgstreamer0.8-dev w32codecs
    Next download the source tarball(http://prdownloads.sourceforge.net/p....bz2?download), and extract it somewhere. The do the usual
    Code:
    ./configure --prefix=/usr && make && sudo make install
    Repeating - you *must* have already install w32codecs _before_ you compile it. It will compile and install successfully if you don't, but none of the codecs will work.

    Once that has been done you need to run
    Code:
    gst-register-0.8
    and then you should be able to view movies with totem-gstreamer that you couldn't before.

  2. #2
    Join Date
    Oct 2004
    Location
    Somewhere in Virginia
    Beans
    174

    Re: HOWTO: Pitfdll - codecs for Totem-GStreamer

    While everything compiles and installs successfully (and gst-inspect-0.8 pitfdll works) I have never gotten this to work. It keeps segfaulting. You milage may vary. I will suggest something though: if you install checkinstall then you can install pitfdll with 'sudo checkinstall' and then it can easily be uninstalled if necessary.
    Cut down on bored clutter: use the search tool.
    Have you answered a post today?
    New Ubuntu Hoary users might want to check out the Hoary After-Install Helper. Just some shameless self-promotion.

  3. #3
    Join Date
    Jan 2005
    Location
    London, UK
    Beans
    27
    Distro
    Gutsy Gibbon Testing

    Re: HOWTO: Pitfdll - codecs for Totem-GStreamer

    A warning for Breezy users here (like myself)

    Make sure that you use GCC 3.3 to compile this (or, at least, don't use GCC 4.0) by setting the CC environment variable before running ./configure like so:
    Code:
    CC=gcc-3.3 ./configure --prefix=/usr
    I didn't at first and got this when compiling ext.c.

    Code:
    ext.c: In function 'HEAP_strdupAtoW':
    ext.c:205: warning: pointer targets in return differ in signedness
    ext.c: In function 'VirtualAlloc':
    ext.c:472: error: invalid lvalue in assignment
    ext.c:501:2: warning: #warning FIXME
    I suppose the thing to do would be to file a bug against this (if one hasn't already been filed).

    Also, would running
    Code:
    sudo gst-register-0.8 --gst-registry=/var/lib/gstreamer/0.8/registry.xml
    be a better bet as it would update the gstreamer registry for the entire system?

  4. #4
    Join Date
    Nov 2004
    Beans
    213

    Re: HOWTO: Pitfdll - codecs for Totem-GStreamer

    I created a .deb for this, I'll ask Jdong if it can be included in the backports if it is wanted but just so that people are aware, this only works with WMV9 and a few other formats. This means that you still will not be able to play a lot of older wmv, wma, etc... formats.

    My suggestion to people wanting to play movies using totem, use totem-xine until pitfdll is expanded to more formats.

  5. #5
    Join Date
    Oct 2004
    Beans
    50

    Re: HOWTO: Pitfdll - codecs for Totem-GStreamer

    In case people are interested, Paul Drain (GNOME packager) has created .debs for nearly every Gstreamer package available, including pitfdll.

    You can find info about his repository here.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •