Linux Multimedia Notes

# umask 002    # important!  gcc fails when /usr/local/include is drwxr-x---

Permissions

/etc/security/console-perms - man console.perms

Linux X Notes

See above link for X, DRI, X-Video, V4L, current GATOS ati.2 for ATI display cards

Heroine Virtual

Broadcast 2000
MPEG-2 Movie
    after unpacking, see docs/index.html
Quicktime for Linux
    after unpacking, see docs/index.html
XMovie

LIRC

Linux Infrared Remote Control
Animax - Anir Multimedia Magic receiver and remote control
# cd /usr/linux/lirc*
# make animax-com1    # plug Animax receiver into top DB9 marked 2
# make testdriver
# make install
# cp remotes/animax/lircd.conf.animax /etc/lircd.conf
# cp remotes/animax/lircmd.conf.animax /etc/lircmd.conf
$ cd /usr/linux/lirc*
$ cp examples/lircrc ~/.lircrc
# cd /etc/rc.d/init.d; lircd start
$ irxevent &
XRaiseWindow(Display *display, Window w)
XSetInputFocus(Display *display, Window w, int revert_to, Time time)

Resources

Video For Linux

 http://www.exploits.org/v4l/


In progress

These notes are based on work by Jim Snyder.

mplayer

The basic resource is:
http://www.mplayerhq.hu/homepage/
but it's worth looking at this column before you start compiling:
http://www.linuxworld.com/site-stories/2001/1214.mplayer.html
I didn't find the build *quite* as difficult as Barr says it is, but then Barr includes some tips which moved me along quickly.

You should *definitely* read the installation section of

http://www.mplayerhq.hu/DOCS/
before you start building mplayer. (Don't say I didn't tell you.)

There are some non-mplayer-specific additions you might as well make before diving into mplayer.

  1. Add /usr/local/lib to /etc/ld.so.conf, and run ldconfig. (You'll have to run ldconfig again later, so this is just for practice.)
  2. Download the libdvdcss and libdvdread tarballs from
  3. http://www.dtek.chalmers.se/groups/dvd/dist/libdvdcss-0.0.3.ogle3.tar.gz
    http://www.dtek.chalmers.se/groups/dvd/dist/libdvdread-0.9.2.tar.gz
    The mplayer documentation advises against using libdvdcss-0.1.0
  4. unpack, compile, and install libdvdcss. I used the following:
  5. ./configure --help
    ./configure --prefix=/usr/local --enable-alsa
    make
    make install
    You may want to root around in the source and/or make file so's to turn off debugging information, the threshold for which seems to be set rather low.
  6. unpack compile, and install libdvdread. I used the following:
  7. ./configure --help
    ./configure
    make
    make install
  8. run ldconfig
  9. create /dev/dvd, for example by linking it to a /dev/hd*. On my system, the dvdrom is /dev/hdb, so:
  10. ln /dev/hdb /dev/dvd
Now for mplayer:

transcode

The basic resource is:
http://www.Theorie.Physik.UNI-Goettingen.DE/~ostreich/transcode/
You may need to look under export modules; I found that I had to pick up the export_opendivx.so module before transcode would generate divx binaries. There was no install script in the opendivx/Project Mayo linux download, so I copied the libs to /usr/local/lib, made appropriate links (to lib*.so) and ran ldconfig.

See the "options" and "examples" section for usage.

On mdk81 the libXpm.so.X library wasn't linked to libXpm.so; you'll need to make the link by hand before transcode will compile.

Currently mplayer won't play video for the divx files I've generated with transcode. However mplayer doesn't choke on the transcode bit stream, and plays audio.

xine

xine is a free gpl-licensed video player for unix-like systems


Standard

stable versions included in RedHat 7.2

KDE

K desktop

OSS

AWE (Soundblaster AWE) APCI (Soundblaster PCI128) YMH (Yamaha XG)
    # # save sound.o
        # cd /lib/modules
        # find . -name sound.o -print | cpio -pdumv /usr/linux/lib/modules
        # find . -name sound.o -exec rm {} \;
    # cd /usr/linux/opt/osslinux...
        osslinux392i-libc-20x
        osslinux392j-glibc-227-UP # for RedHat 6.0 UP
        osslinux392n-glibc-229-SMP # for RedHat 6.0 SMP
    # umask 002
    # ./oss-install
        Install OSS files into: /usr/lib/oss
        to uninstall: sh /usr/lib/oss/uninstall.sh
    # cp /usr/linux/usr/lib/oss/license.mail /usr/lib/oss/
    # soundconf
    # for i in 3 4 5; do cd /etc/rc.d/rc${i}.d; ln -s ../init.d/oss S85oss; done
    # cd /dev; chmod a+rw audio dsp mixer

Qt

cross-platform GUI toolkit

xmms

"X MultiMedia System" WinAmp-style player


Old/Outdated

GATOS

    General ATI TV and Overlay Software - ATI-TV for GNU/Linux
    # ln -s /usr/X11R6 /usr/X11 # link needed for RedHat 6.0
    $ cd /usr/linux/opt/ibtk*; ./configure; make
    # umask 002; cd /usr/linux/opt/ibtk*; make install
    $ cd /usr/linux/opt/gatos*; ./configure; make
    # umask 002; cd /usr/linux/opt/gatos*; make install
    # ed /etc/X11/XF86Config
Gatos 0.0.5
    # gatos-conf
Gatos 0.0.4
    # cp /usr/linux/usr/local/lib/gatos.conf /usr/local/lib; chmod a+r /usr/local/lib/gatos.conf
        buffermem 600
        format 1

    $ cp /usr/linux/usr/local/etc/gatosrc ~/.gatosrc
    $ xatitv - TV-in-a-window
    configuration is saved in $HOME/.gatosrc

xmixer

    volume controls for soundcard
    left button bumps volume toward cursor position
    middle button (wheel) snaps/drags to cursor position
    cursor position determines left-or-right versus ganged control
    the buttons are record ON|OFF - ON is O| blue, OFF is <) green
    mute buttons are not available on xmixer, but OSS does support mute
    AAC is on PCM
    tv tuner is on line1


NoBell Home - gjm - last update 1/2/2002