Difference between revisions of "FFmpeg"

From CBLFS
Jump to navigationJump to search
(64Bit)
Line 35: Line 35:
 
  sed -i "s/static uint64/const uint64/" \
 
  sed -i "s/static uint64/const uint64/" \
 
     libavcodec/liba52/resample_mmx.c &&
 
     libavcodec/liba52/resample_mmx.c &&
./configure --prefix=/usr --enable-shared \
+
./configure --prefix=/usr --enable-shared --enable-pthreads \
     --enable-pthreads &&
+
     --enable-mp3lame --enable-vorbis --enable-a52 --enable-pp \
 +
    --enable-shared-pp --enable-gpl &&
 
  make
 
  make
  
Line 53: Line 54:
 
  CC="gcc ${BUILD32}" USE_ARCH=32 CFLAGS="-fPIC" ./configure --prefix=/usr \
 
  CC="gcc ${BUILD32}" USE_ARCH=32 CFLAGS="-fPIC" ./configure --prefix=/usr \
 
     --enable-shared  --enable-pthreads --enable-mp3lame --enable-vorbis \
 
     --enable-shared  --enable-pthreads --enable-mp3lame --enable-vorbis \
     --enable-a52 --enable-pp --enable-shared-pp --enable-gp &&
+
     --enable-a52 --enable-pp --enable-shared-pp --enable-gpl &&
 
  make CC="gcc ${BUILD32}"
 
  make CC="gcc ${BUILD32}"
  
Line 68: Line 69:
 
  CC="gcc ${BUILDN32}" USE_ARCH=n32 CFLAGS="-fPIC" ./configure --prefix=/usr \
 
  CC="gcc ${BUILDN32}" USE_ARCH=n32 CFLAGS="-fPIC" ./configure --prefix=/usr \
 
     --enable-shared  --enable-pthreads --enable-mp3lame --enable-vorbis \
 
     --enable-shared  --enable-pthreads --enable-mp3lame --enable-vorbis \
     --enable-a52 --enable-pp --enable-shared-pp --enable-gp &&
+
     --enable-a52 --enable-pp --enable-shared-pp --enable-gpl &&
 
  make CC="gcc ${BUILDN32}"
 
  make CC="gcc ${BUILDN32}"
  
Line 83: Line 84:
 
  CC="gcc ${BUILD64}" USE_ARCH=64 CFLAGS="-fPIC" ./configure --prefix=/usr \
 
  CC="gcc ${BUILD64}" USE_ARCH=64 CFLAGS="-fPIC" ./configure --prefix=/usr \
 
     --enable-shared  --enable-pthreads --enable-mp3lame --enable-vorbis \
 
     --enable-shared  --enable-pthreads --enable-mp3lame --enable-vorbis \
     --enable-a52 --enable-pp --enable-shared-pp --enable-gp &&
+
     --enable-a52 --enable-pp --enable-shared-pp --enable-gpl &&
 
  make CC="gcc ${BUILD64}"
 
  make CC="gcc ${BUILD64}"
  

Revision as of 13:47, 9 October 2006

Download Source: http://prdownloads.sourceforge.net/ffmpeg/ffmpeg-0.4.9-pre1.tar.gz
Required Patch http://svn.cross-lfs.org/svn/repos/patches/ffmpeg/ffmpeg-0.4.9-pre1-gcc4-1.patch
Required Patch http://svn.cross-lfs.org/svn/repos/patches/ffmpeg/ffmpeg-0.4.9-pre1-amr_fixes-1.patch

Dependencies

Optional

Non-Multilib

Compile the package:

patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
sed -i "s/static uint64/const uint64/" \
    libavcodec/liba52/resample_mmx.c &&

./configure --prefix=/usr --enable-shared --enable-pthreads \

    --enable-mp3lame --enable-vorbis --enable-a52 --enable-pp \
    --enable-shared-pp --enable-gpl &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
CC="gcc ${BUILD32}" USE_ARCH=32 CFLAGS="-fPIC" ./configure --prefix=/usr \
    --enable-shared  --enable-pthreads --enable-mp3lame --enable-vorbis \
    --enable-a52 --enable-pp --enable-shared-pp --enable-gpl &&
make CC="gcc ${BUILD32}"

Install the package

make install

N32

Compile the package:

patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
CC="gcc ${BUILDN32}" USE_ARCH=n32 CFLAGS="-fPIC" ./configure --prefix=/usr \
    --enable-shared  --enable-pthreads --enable-mp3lame --enable-vorbis \
    --enable-a52 --enable-pp --enable-shared-pp --enable-gpl &&
make CC="gcc ${BUILDN32}"

Install the package

make install

64Bit

Compile the package:

patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
CC="gcc ${BUILD64}" USE_ARCH=64 CFLAGS="-fPIC" ./configure --prefix=/usr \
    --enable-shared  --enable-pthreads --enable-mp3lame --enable-vorbis \
    --enable-a52 --enable-pp --enable-shared-pp --enable-gpl &&
make CC="gcc ${BUILD64}"

Install the package

make install
Retrieved from "?title=FFmpeg&oldid=2718"