FFmpeg: Difference between revisions

From CBLFS
Jump to navigationJump to search
No edit summary
No edit summary
 
(35 intermediate revisions by 8 users not shown)
Line 2: Line 2:
|-
|-
!Download Source:
!Download Source:
| http://prdownloads.sourceforge.net/ffmpeg/ffmpeg-{{FFmpeg-Version}}-pre1.tar.gz
| http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2
|-
!Required Patch
| http://svn.cross-lfs.org/svn/repos/patches/ffmpeg/ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch
|-
!Required Patch
| http://svn.cross-lfs.org/svn/repos/patches/ffmpeg/ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch
|}
|}


----
----


== Introduction to FFmpeg ==
{{Package-Introduction|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.|http://ffmpeg.org/}}


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.
== Dependencies ==
 
=== Recommended ===
* [[X Window System]]
* [[FAAC]]
* [[FAAD2]]
* [[LAME]]
* [[Speex]]
* [[Theora]]
* [[libvorbis]]
* [[x264]]
* [[XviD]]
 
=== Optional ===
* [[libdc1394]] ( --enable-libdc1394 )
* [[gsm]] ( --enable-libgsm )
* [[libnut]] ( --enable-libnut )
* [[Schroedinger]] ( --enable-libschroedinger )
* [[OpenJPEG]] ( --enable-libopenjpeg )
* [[OpenCORE-AMR]] ( --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-version3 )


== Configuring ==
== Configuring ==
Line 21: Line 34:
Look at the output of '''./configure --help''' and add the parameters for the optional dependencies you have installed.
Look at the output of '''./configure --help''' and add the parameters for the optional dependencies you have installed.


== Dependencies ==
The following is a list of options you may want to pass:


=== Optional ===
--enable-libfaac --enable-libfaad  \
* [[libvorbis]]
--enable-libmp3lame --enable-libspeex \
* [[LAME]]
--enable-libtheora --enable-libvorbis \
* [[Imlib2]]
--enable-libx264 --enable-libxvid
* [[X Window System]]
* [[SDL]]
* [[FreeType]]
* [[MPlayer]]
* [[FAAC]]
* [[FAAD2]]
* [[TeTeX]]
* [[Liba52]]


== Non-Multilib ==
== Non-Multilib ==
Line 40: Line 45:
Compile the package:
Compile the package:


  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch &&
  ./configure --prefix=/usr --enable-shared \
patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch &&
    --enable-pthreads --enable-gpl \
sed -i "s/static uint64/const uint64/" \
     --enable-postproc --enable-x11grab \
     libavcodec/liba52/resample_mmx.c &&
     --enable-nonfree &&
./configure --prefix=/usr --enable-shared --enable-pthreads \
     --enable-gpl --disable-ffplay &&
  make
  make


Line 58: Line 61:
Compile the package:
Compile the package:


  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch &&
  export USE_ARCH=32 &&
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch &&
  CFLAGS="${BUILD32} -fno-PIC" \
CC="gcc ${BUILD32}" USE_ARCH=32 CFLAGS="-fPIC" ./configure --prefix=/usr \
./configure --prefix=/usr --cc="gcc ${BUILD32}" \
     --enable-shared  --enable-pthreads --enable-gpl --disable-ffplay &&
     --enable-shared  --enable-pthreads \
  make CC="gcc ${BUILD32}"
    --enable-gpl --enable-postproc \
    --enable-x11grab --enable-nonfree &&
  make


Install the package
Install the package


  make install
  make install &&
mv -v /usr/bin/ffmpeg{,-32} &&
unset USE_ARCH


=== N32 ===
=== N32 ===
Line 72: Line 79:
Compile the package:
Compile the package:


  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch &&
  export USE_ARCH=n32 &&
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch &&
  CFLAGS="${BUILDN32} -fPIC" \
  sed -i 's:$(prefix)/lib:&32:g' $(grep -lr '$(prefix)/lib' *) &&
  ./configure --prefix=/usr --cc="gcc ${BUILD32}" \
CC="gcc ${BUILDN32}" USE_ARCH=n32 CFLAGS="-fPIC" ./configure --prefix=/usr \
    --{,sh}libdir=/usr/lib32 \
     --enable-shared  --enable-pthreads --enable-gpl --disable-ffplay &&
     --enable-shared  --enable-pthreads \
  make CC="gcc ${BUILDN32}"
    --enable-gpl --enable-postproc \
    --enable-x11grab --enable-nonfree &&
  make


Install the package
Install the package


  make install
  make install &&
mv -v /usr/bin/ffmpeg{,-n32} &&
unset USE_ARCH


=== 64Bit ===
=== 64Bit ===
Line 87: Line 98:
Compile the package:
Compile the package:


  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-gcc4-1.patch &&
  export USE_ARCH=64 &&
  patch -Np1 -i ../ffmpeg-{{FFmpeg-Version}}-pre1-amr_fixes-1.patch &&
  CFLAGS="${BUILD64} -fPIC" \
  sed -i 's:$(prefix)/lib:&64:g' $(grep -lr '$(prefix)/lib' *) &&
  ./configure --prefix=/usr --cc="gcc ${BUILD64}" \
CC="gcc ${BUILD64}" USE_ARCH=64 CFLAGS="-fPIC" ./configure --prefix=/usr \
    --{,sh}libdir=/usr/lib64 \
     --enable-shared  --enable-pthreads --enable-gpl --disable-ffplay &&
     --enable-shared  --enable-pthreads \
  make CC="gcc ${BUILD64}"
    --enable-gpl --enable-postproc \
    --enable-x11grab --enable-nonfree &&
  make


Install the package
Install the package


  make install
  make install &&
mv -v /usr/bin/ffmpeg{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/ffmpeg &&
unset USE_ARCH
 
== Contents ==
 
{|style="text-align: left"
|-valign="top"
!Installed Directories:
|/usr/lib/vhook, /usr/include/ffmpeg
|-valign="top"
!Installed Programs:
|ffmpeg, ffserver
|-valign="top"
!Installed Libraries:
|libavcodec.so, libavformat.so,
|-valign="top"
!Symlinks:
|None
|}
 
=== Short Descriptions ===
 
{| style="text-align: left;"
|-valign="top"
!ffmpeg
|is a hyper fast audio and video encoder.
|-valign="top"
!ffserver
|is a hyper fast multi format audio and video streaming server.
|-valign="top"
!libavcodec
|is a library containing all the FFmpeg audio/video encoders and decoders.
|-valign="top"
!libavformat
|is a library containing parsers and generators for all common audio/video formats.
|}
 
[[Category:Media Libraries]]

Latest revision as of 10:47, 10 March 2011

Download Source: http://ffmpeg.org/releases/ffmpeg-snapshot.tar.bz2

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.

Project Homepage: http://ffmpeg.org/

Dependencies

Optional

Configuring

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

The following is a list of options you may want to pass:

--enable-libfaac --enable-libfaad  \
--enable-libmp3lame --enable-libspeex \
--enable-libtheora --enable-libvorbis \
--enable-libx264 --enable-libxvid

Non-Multilib

Compile the package:

./configure --prefix=/usr --enable-shared \
    --enable-pthreads --enable-gpl \
    --enable-postproc --enable-x11grab \
    --enable-nonfree &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

export USE_ARCH=32 &&
CFLAGS="${BUILD32} -fno-PIC" \
./configure --prefix=/usr --cc="gcc ${BUILD32}" \
    --enable-shared  --enable-pthreads \
    --enable-gpl --enable-postproc \
    --enable-x11grab --enable-nonfree &&
make

Install the package

make install &&
mv -v /usr/bin/ffmpeg{,-32} &&
unset USE_ARCH

N32

Compile the package:

export USE_ARCH=n32 &&
CFLAGS="${BUILDN32} -fPIC" \
./configure --prefix=/usr --cc="gcc ${BUILD32}" \
    --{,sh}libdir=/usr/lib32 \
    --enable-shared  --enable-pthreads \
    --enable-gpl --enable-postproc \
    --enable-x11grab --enable-nonfree &&
make

Install the package

make install &&
mv -v /usr/bin/ffmpeg{,-n32} &&
unset USE_ARCH

64Bit

Compile the package:

export USE_ARCH=64 &&
CFLAGS="${BUILD64} -fPIC" \
./configure --prefix=/usr --cc="gcc ${BUILD64}" \
    --{,sh}libdir=/usr/lib64 \
    --enable-shared  --enable-pthreads \
    --enable-gpl --enable-postproc \
    --enable-x11grab --enable-nonfree &&
make

Install the package

make install &&
mv -v /usr/bin/ffmpeg{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/ffmpeg &&
unset USE_ARCH

Contents

Installed Directories: /usr/lib/vhook, /usr/include/ffmpeg
Installed Programs: ffmpeg, ffserver
Installed Libraries: libavcodec.so, libavformat.so,
Symlinks: None

Short Descriptions

ffmpeg is a hyper fast audio and video encoder.
ffserver is a hyper fast multi format audio and video streaming server.
libavcodec is a library containing all the FFmpeg audio/video encoders and decoders.
libavformat is a library containing parsers and generators for all common audio/video formats.
Retrieved from "?title=FFmpeg&oldid=21000"