ffmpeg安装步骤(linux)

    技术2026-01-14  9

     

    软件需求:

    http://www.pudn.com/downloads324/sourcecode/multimedia/streaming/detail1430584.html

    http://www.pudn.com/downloads324/sourcecode/multimedia/streaming/detail1430582.html

    wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz wget http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20090705-2245.tar.bz2 wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2 wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2 wget http://nchc.dl.sourceforge.net/sourceforge/faac/faad2-2.7.tar.bz2 wget http://nchc.dl.sourceforge.net/sourceforge/faac/faac-1.28.tar.bz2 wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz wget http://debian.unnet.nl/pub/videolan/libdts/0.0.2/libdts-0.0.2.tar.gz

             http://down1.chinaunix.net/distfiles/libdts-0.0.2.tar.gz wget http://jaist.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz

    wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz

    ffmpeg

    http://download.chinaunix.net/download.php?id=5530&ResourceID=2990

     

     

     

    1.yasm           #wget http://www.tortall.net/projects/yasm/releases/yasm-0.8.0.tar.gz # tar -zxvf yasm-0.8.0.tar.gz |cd - # cd yasm-0.8.0 # ./configure # make && make install 2.H.264code # wget http://downloads.videolan.org/pub/videolan/x264/snapshots/x264-snapshot-20090705-2245.tar.bz2 # tar -jxvf x264-snapshot-20090705-2245.tar.bz2 # cd x264-snapshot-20090705-2245 # ./configure --enable-shared --prefix=/usr # make && make install                          //如果yasm版本太低,编译时会报错,此文件需要git支持,如果configure找不到lib路径,需在/etc/ld.so.conf文件里加入/usr/local/lib, 之后执行ldconfig使其生效 3.amrwb           # wget http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.3.tar.bz2 # tar -jxvf amrwb-7.0.0.3.tar.bz2 # cd amrwb-7.0.0.3 # ./configure && make && make install 4.amrnb # wget http://ftp.penguin.cz/pub/users/utx/amr/amrnb-7.0.0.2.tar.bz2 # tar -jxvf amrnb-7.0.0.2.tar.bz2 # cd amrnb-7.0.0.2 # ./configure && make && make install 5.FAAD2 # wget http://nchc.dl.sourceforge.net/sourceforge/faac/faad2-2.7.tar.bz2 # cd faad2-2.7 # ./configure --enable-shared # make && make install 6.FAAC # wget http://nchc.dl.sourceforge.net/sourceforge/faac/faac-1.28.tar.bz2 # cd faac-1.28 # ./configure --enable-shared --with-mp4v2 # make && make install 7.XviD (DivX) # wget http://downloads.xvid.org/downloads/xvidcore-1.2.1.tar.gz # tar -zxvf xvidcore-1.2.1.tar.gz # cd xvidcore/build/generic/ # ./configure # make && make install 8.libdts

    http://download.videolan.org/pub/videolan/libdca/0.0.2/libdca-0.0.2.tar.gz

    # wget http://down1.chinaunix.net/distfiles/libdts-0.0.2.tar.gz #  tar zxvf  libdts-0.0.2.tar.gz # cd libdts-0.0.2 # ./configure --enable-shared # make && make install 9.LAME (MP3encoder) #  wget http://jaist.dl.sourceforge.net/sourceforge/lame/lame-398-2.tar.gz # tar zxvf lame-398-2.tar.gz # cd lame-398-2 # ./configure --enable-shared # make && make install

    10.a52

    #  wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gz

    # tar zxvf a52dec-0.7.4.tar.gz

    # cd a52dec-0.7.4

    # ./configure --enable-shared # make && make install

    11.FFMPEG # svn checkout svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg

    http://download.chinaunix.net/download.php?id=25235&ResourceID=2990

     

    # tar jxvf ffmpeg-0.5.tar.bz2

    # cd ffmpeg-0.5

    # ./configure --prefix=/opt/ffmpeg --enable-shared --enable-gpl --enable-pthreads

    #make clean # make && make install

    最新回复(0)