Difference between revisions of "FFmpeg"

From CBLFS
Jump to navigationJump to search
(I added the package description from BLFS.)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
| http://prdownloads.sourceforge.net/ffmpeg/ffmpeg-0.4.9-pre1.tar.gz
+
| http://prdownloads.sourceforge.net/ffmpeg/ffmpeg-{{FFmpeg-Version}}-pre1.tar.gz
 
|-
 
|-
 
!Required Patch
 
!Required Patch
| http://svn.cross-lfs.org/svn/repos/patches/ffmpeg/ffmpeg-0.4.9-pre1-gcc4-1.patch  
+
| http://svn.cross-lfs.org/svn/repos/patches/ffmpeg/ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch  
 
|-
 
|-
 
!Required Patch
 
!Required Patch
| http://svn.cross-lfs.org/svn/repos/patches/ffmpeg/ffmpeg-0.4.9-pre1-amr_fixes-1.patch
+
| http://svn.cross-lfs.org/svn/repos/patches/ffmpeg/ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch
 
|}
 
|}
  
Line 40: Line 40:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
+
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch &&
  patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
+
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch &&
 
  sed -i "s/static uint64/const uint64/" \
 
  sed -i "s/static uint64/const uint64/" \
 
     libavcodec/liba52/resample_mmx.c &&
 
     libavcodec/liba52/resample_mmx.c &&
Line 58: Line 58:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
+
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch &&
  patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
+
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch &&
 
  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-gpl --disable-ffplay &&
 
     --enable-shared  --enable-pthreads --enable-gpl --disable-ffplay &&
Line 72: Line 72:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
+
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch &&
  patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
+
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch &&
 
  sed -i 's:$(prefix)/lib:&32:g' $(grep -lr '$(prefix)/lib' *) &&
 
  sed -i 's:$(prefix)/lib:&32:g' $(grep -lr '$(prefix)/lib' *) &&
 
  CC="gcc ${BUILDN32}" USE_ARCH=n32 CFLAGS="-fPIC" ./configure --prefix=/usr \
 
  CC="gcc ${BUILDN32}" USE_ARCH=n32 CFLAGS="-fPIC" ./configure --prefix=/usr \
Line 87: Line 87:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ../ffmpeg-0.4.9-pre1-gcc4-1.patch &&
+
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch &&
  patch -Np1 -i ../ffmpeg-0.4.9-pre1-amr_fixes-1.patch &&
+
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch &&
 
  sed -i 's:$(prefix)/lib:&64:g' $(grep -lr '$(prefix)/lib' *) &&
 
  sed -i 's:$(prefix)/lib:&64:g' $(grep -lr '$(prefix)/lib' *) &&
 
  CC="gcc ${BUILD64}" USE_ARCH=64 CFLAGS="-fPIC" ./configure --prefix=/usr \
 
  CC="gcc ${BUILD64}" USE_ARCH=64 CFLAGS="-fPIC" ./configure --prefix=/usr \

Revision as of 17:52, 17 December 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

Introduction to FFmpeg

FFmpeg is a solution to record, convert and stream audio and video. It is a very fast video and audio converter and it can also acquire from a live audio/video source. Designed to be intuitive, the command-line interface (ffmpeg) tries to figure out all the parameters, when possible. FFmpeg can also convert from any sample rate to any other, and resize video on the fly with a high quality polyphase filter. FFmpeg can use a video4linux compatible video source and any Open Sound System audio source.

Configuring

Look at the output of ./configure --help and add the parameters for the optional dependencies you have installed.

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-gpl --disable-ffplay &&
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-gpl --disable-ffplay &&
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 &&
sed -i 's:$(prefix)/lib:&32:g' $(grep -lr '$(prefix)/lib' *) &&
CC="gcc ${BUILDN32}" USE_ARCH=n32 CFLAGS="-fPIC" ./configure --prefix=/usr \
    --enable-shared  --enable-pthreads --enable-gpl --disable-ffplay &&
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 &&
sed -i 's:$(prefix)/lib:&64:g' $(grep -lr '$(prefix)/lib' *) &&
CC="gcc ${BUILD64}" USE_ARCH=64 CFLAGS="-fPIC" ./configure --prefix=/usr \
    --enable-shared  --enable-pthreads --enable-gpl --disable-ffplay &&
make CC="gcc ${BUILD64}"

Install the package

make install