# transcode
# =========
# Below are instructions for installing transcode 1.0.2 and transcode from
# CVS. Keep in mind that I last installed 1.0.2, so the CVS instructions
# may be out of date.
# If you ever want to uninstall transcode or clean up files from an old
# version before installing a new one, skip down to the bottom for
# instructions.
# transcode 1.0.2
# ================
# Prerequisites:
# pkg-config
# zlib (mandatory)
# libavcodec from ffmpeg >= 0.9.1pre1 (mandatory)
# libpostproc from ffmpeg (leave off --enable-libpostproc below to skip)
# libmpeg2 from mpeg2dec >= 0.4.0b (mandatory)
# A Linux kernel with v4l (Video for Linux) support (leave off --enable-v4l
# below to skip)
# OSS or ALSA with OSS compatibility (leave off --with-oss below to skip)
# freetype (leave off --enable-freetype2 below to skip)
# liba52 (leave off --enable-a52 below to skip)
# mjpegtools (leave off --enable-mjpegtools below to skip)
# sdl (leave off --enable-sdl below to skip)
# libfame (leave off --enable-libfame below to skip)
# lame
# avifile (leave off --enable-avifile below to skip)
# Ogg/Vorbis/Theora (leave off --enable-ogg, --enable-vorbis, and/or
# --enable-theora below to skip)
# libdvdread
# libmpeg3
# libdv (leave off --enable-libdv below to skip)
# libquicktime (leave off --enable-libquicktime below to skip)
# lzo (leave off --enable-lzo below to skip)
# libxml2 (leave off --enable-libxml2 below to skip)
# GTK+ (leave off --enable-gtk below to skip)
# ImageMagick (leave off --enable-imagemagick below to skip)
# libjpeg
# jpeg-mmx (leave off --enable-libjpegmmx to skip)
# XFree86 or X.org (leave off --with-x below to skip)
# iconv
# pvm3 (add --enable-pvm3,
# --with-pvm3-prefix=/usr/local/pvm3 (wherever you put it), and
# --with-pvm3-libs=/usr/local/pvm3/lib/LINUX below to include this)
# LoRS/IBP (add --enable-ibp below to include this)
cd
test -f installed/transcode-1.0.2.tar.gz &&
mv installed/transcode-1.0.2.tar.gz .
test ! -f transcode-1.0.2.tar.gz &&
wget http://transcode.forcenetworks.com/transcode-1.0.2.tar.gz
mkdir -p -m 0700 src
cd src
test -d ./transcode && rm -r ./transcode
find -maxdepth 1 -type d -name "transcode-*" -exec rm -r {} \;
tar xzvf ~/transcode-1.0.2.tar.gz
cd transcode-1.0.2
test $UID = 0 && chown -R root:root .
chmod -R u+w .
# If you use libiconv (vs. glibc's built-in iconv), you may need to pass
# this before configure or configure will fail to test for libraries that
# are linked with libiconv (avifile was one for me):
LIBS=-liconv \
# If you want to build it with optimizations, use something like this
# before configure (see 'man gcc' for other processor types):
CFLAGS="-O3 -march=pentium4" \
# transcode CVS
# =============
# Prerequisites:
# nasm
# pkg-config
# XFree86 or X.org
# zlib
# ffmpeg
# freetype
# avifile (leave off --enable-avifile and --with-avifile-includes/libs to skip)
# lame
# Ogg/Vorbis/Theora (leave off --enable-ogg, --enable-vorbis,
# --enable-theora to skip)
# libdvdread
# xvid
# pvm3 >= 3.4 (leave off --enable-pvm3 and --with-pvm3-include/lib
# below to skip)
# libdv (leave off --enable-libdv to skip)
# libquicktime (don't use CVS, use 0.9.3; leave off --enable-libquicktime to skip)
# liblzo (leave off --enable-lzo to skip)
# liba52 (leave off --enable-a52 to skip)
# liblve (leave off --enable-lve to skip)
# libmpeg3 (leave off --enable-libmpeg3 to skip)
# libxml2 (leave off --enable-libxml2 to skip)
# mjpegtools (leave off --enable-mjpegtools to skip)
# sdl > 1.1.6 (leave off --enable-sdl to skip)
# gtk+ (leave off --enable-gtk to skip)
# libfame >= 0.9.0 (leave off --enable-libfame to skip)
# ImageMagick (leave off --enable-imagemagick to skip)
# libjpeg or jpeg-mmx (leave off --enable-libjpegmmx to skip)
# libiconv (leave off --enable-libiconv to skip)
# I set this up to include support for everything I could get it to build
# in. You may want to leave off some of these things that you won't need
# so your transcode isn't so big and complicated.
mkdir -p -m 0700 ~/src
cd ~/src
find -maxdepth 1 -type d -name "transcode-*" -exec rm -r {} \;
test -d ./transcode && ( cd transcode && cvs -z3 update -dP )
test ! -d ./transcode &&
( cvs -z3 -d :pserver:cvs@cvs.exit1.org:/cvstc login
# Hit enter if it asks for a password
cvs -z3 -d :pserver:cvs@cvs.exit1.org:/cvstc co transcode )
cd transcode
test $UID = 0 && chown -R root:root .
test -f Makefile && make distclean
# This will create the autoconf stuff:
autoreconf -f -i
# If you have libiconv installed (--with-iconv below), as I do, it requires
# an extra LIBS=-liconv before configure so one of the configure tests
# (aviplay) can see it. If you don't have it installed, you can leave off
# that part and --with-iconv as well.