Showing posts with label hacks. Show all posts
Showing posts with label hacks. Show all posts

Thursday, July 23, 2009

How to get GStreamer codecs working on Moblin 2.0 beta

Since the latest Moblin is based on Fedora 10, we can install gstreamer-plugins-bad over yum to get most codecs working correctly. However, we'll have to hack things somewhat.

Moblin uses the OpenSSL from F11, but libstdc++ 4.3 from F10. Since some media libraries seem to rely on both we will have to try to mix repositories carefully.

  1. download the latest rpmfusion and fedora release rpms, as they contain all the yum repository configurations
  2. force install rpmfusion release:
    • $ rpm -Uvh --nodeps rpmfusion*release*.rpm
  3. unpack fedora release:
    • $ rpm2cpio fedora-release.rpm | cpio -idv
    • $ cp ./etc/yum.repos.d/* /etc/yum.repos.d
  4. manually set configurations
    • $ sed -i 's/$releasever/11/' /etc/yum.repo.d/rpmfusion*
    • $ sed -i 's/$releasever/10/' /etc/yum.repo.d/fedora*
    • $ sed -i 's/enabled=1/enabled=0/' /etc/yum.repo.d/fedora*
    • $ sed -i 's/gpgcheck=1/gpgcheck=0/' /etc/yum.repo.d/fedora*
  5. install dirac-libs from F10
    • $ yum install --enablerepo=fedora,updates dirac-libs
  6. change to F11
    • $ sed -i 's/10/11/' /etc/yum.repo.d/fedora*
    • $ rm -rf /var/cache/yum
  7. install the rest
    • $ yum install --enablerepo=fedora,updates --exclude=dirac-libs gstreamer-plugins-bad gstreamer-plugins-flumpegdemux gstreamer-ffmpeg