Painless Multimedia For Linux

But getting Linux systems to run multimedia is far from easy. For example, Fedora Core 2 (FC2) out of the box " at least, as of when I first installed it last year -- lacked workable multimedia access. Similarly, a friend of mine with a Mandrake system hasn't gotten her multimedia to work at all, even after several months of trying. She is hardly the only Linux novice in this unenviable position.

Yet it is possible for Linux to support multimedia. In simplest terms, the solution is to install the following packages, players, and add-ons using yum or another automated installer in the specific order shown below:

  • id
  • unit-1659132512259
  • type
  • Sponsored post
su - root
pw:
mv /etc/yum.conf /etc/yum-old.conf
    1. On the Web, get a previous TechBuilder Recipe, Use Proxy Filters to Give Clients Online Privacy. In the article, find the yum.conf file listing, then copy everything between the two horizontal lines to clipboard.
    2. Paste this text into nano like so:
nano /etc/yum.conf
    1. Then right-click Paste after the last entry.
    2. Add the following after the end of the pasted text:
[macromedia.mplug.org]
name=macromedia.mplug.org - Flash Plugin
baseurl=http://macromedia.mplug.org/apt/fedora/$releasever
http://sluglug.ucsc.edu/macromedia/apt/fedora/$releasever
http://ruslug.rutgers.edu/macromedia/apt/fedora/$releasever



[livna-stable]
name=Livna.org Fedora Compatible Packages (stable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/stable
#gpgcheck=1




                    


[livna-unstable]
name=Livna.org Fedora Compatible Packages (unstable)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/unstable
#gpgcheck=1




                    


[livna-testing]
name=Livna.org Fedora Compatible Packages (testing)
baseurl=http://rpm.livna.org/fedora/$releasever/$basearch/yum/testing
#gpgcheck=1




                
    1. Move the cursor to the end of the text, and hit Enter.
    2. Paste, save, and exit.
  1. Here's an example of what you'll see after a successful installation:
  2. By the way, if you see "invalid context" error messages in FC2 when installing, ignore them! The selinux security mods for Linux aren't supposed to be enabled on your distribution. The last lines that say Done, Updated, and Transaction(s) Complete tell you that it has installed correctly.
  3. Installing Multimedia Applications
  4. I.) Mplayer
  5. Note: Don't try opening mplayer until you've installed all four of the applications in this section, including w32codec. So type:
yum install mplayer
Package mplayer needs libaa.so.1, this is not available.
Package mplayer needs liblzo.so.1, this is not available.
Package mplayer needs libtheora.so.0, this is not available.
yum install mplayerplug-in
 yum install mplayer-skins
 yum install w32codec
chmod 777 Real*
./RealPlayer10GOLD.bin
nano /home/username/RealPlayer/realplay



#!/bin/sh
# If you don't have readlink, fill in the path to hxplay.bin here.
HELIX_LIBS=/home/alizard/RealPlayer ; export HELIX_LIBS




            

        
export AUDIO=/dev/dsp0
 yum install xine
locate xine
chmod -777 /usr/share/xine
chmod -777 /usr/include/xine
chmod -777 /usr/lib/xine/
xine-check
xine-check Please be patient, this script may take a while to run...



[hint] DMA is disabled for your DVD interface. 
         This will probably result in a serious performance hit when playing DVDs. You can issue the command 
         hdparm -d1 /dev/hdc 
as root to enable DMA. It would be wise to add this command to 
some script that is executed executed at boot time. 
         Note that you probably have to set the DMA mode for your drive as well. 
         Most DVD-ROMs work fine with multiword DMA mode 2. You can use 
         hdparm -d1 -X34 /dev/hdc 




            


[UDMA how-to snipped]




        
[root@terrarium xine]# hdparm -d1 -X34 /dev/hdc



/dev/hdc:
 setting using_dma to 1 (on)
 setting xfermode to 34 (multiword DMA mode2)  using_dma    =  1 (on)
[root@terrarium xine]# 




            
nano /etc/rc.d/rc.local
hdparm -d1 -X34 /dev/hdc
[ hint ] No xine-config found. Assuming xine from RPMs
         The xine-config script can be used to deternime some file locations used by xine-lib, but you don't have such a script on your system.
         However, it looks like you installed xine from the RedHat packages.
         So I'll just guess that you are using the standard locations.
         If you want me to be sure about those file locations, you can install the 'xine-lib-devel' package (or 'xine-devel', depend on what packages you're using, which contains xine-config. However, this package is not really needed to run xine... 



[ good ] plugin directory /usr/lib/xine/plugins exists.
[ good ] found unknown plugin: *.so
[OUCH!!] There are no input plugins.




            
You should probably reinstall xine-lib... 
yum install xine-lib-devel
[ good ] /dev/cdrom points to /dev/hdc
[ hint ] /dev/dvd is /dev/dvd, not a DVD device
         /dev/dvd is the default device that xine uses for playing DVDs.
         You could make your life easier by creating a symlink named /dev/dvd pointing to your DVD device (something like /dev/scd0 or /dev/hdc).
         If your DVD-ROM device is /dev/hdb (slave ATAPI device on primary bus),
         rm /dev/dvd
         ln -s hdb /dev/dvd
         typed as root will give you the symlink.
yum install flash-plugin
[root@terrarium download]# /usr/lib/flash-plugin/setup
Registering flashplayer as a XPCOM component in
/usr/lib/mozilla-1.6
Setup is complete.
yum update w32codec