亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb

首頁 > 學院 > 操作系統 > 正文

ffmpeg2.2.3編譯安裝

2024-06-28 13:25:36
字體:
來源:轉載
供稿:網友
ffmpeg2.2.3編譯安裝

參考文檔:http://blog.chinaunix.net/uid-23069658-id-4018842.html下載所需解碼器:lame:wget http://nchc.dl.sourceforge.net/PRoject/lame/lame/3.99/lame-3.99.5.tar.gzlibogg:wget http://downloads.xiph.org/releases/ogg/libogg-1.3.2.tar.gzlibvorbis:wget http://downloads.xiph.org/releases/vorbis/libvorbis-1.3.4.tar.gzfaad2:wget http://downloads.sourceforge.net/faac/faad2-2.7.tar.gzfaac:wget http://downloads.sourceforge.net/faac/faac-1.28.tar.gzlibtheora:wget http://downloads.xiph.org/releases/theora/libtheora-1.1.1.tar.xzvo-aacenc:wget http://mirrors.oschina.net/Ubuntu/pool/universe/v/vo-aacenc/vo-aacenc_0.1.3.orig.tar.gz xvid-core1.3.3:wget http://downloads.xvid.org/downloads/xvidcore-1.3.3.tar.gzyasm1.2.0:wget http://www.tortall.net/projects/yasm/releases/yasm-1.2.0.tar.gzx264:wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2libraw1394:wget http://ncu.dl.sourceforge.net/project/libraw1394/libraw1394/libraw1394-2.0.5.tar.gzlibdc1394:wget http://ncu.dl.sourceforge.net/project/libdc1394/libdc1394-2/2.2.1/libdc1394-2.2.1.tar.gzfribidi:wget wget http://fribidi.org/download/fribidi-0.19.6.tar.bz2fontconfig:wget http://www.freedesktop.org/software/fontconfig/release/fontconfig-2.11.1.tar.gzlibass:wget https://libass.googlecode.com/files/libass-0.10.2.tar.xzlibrtmp:wget http://rtmpdump.mplayerhq.hu/download/rtmpdump-2.3.tgzspeex:wget http://downloads.xiph.org/releases/speex/speex-1.2rc1.tar.gztwolame:wget http://downloads.sourceforge.net/twolame/twolame-0.3.13.tar.gzlibdts:wget http://down1.chinaunix.net/distfiles/libdts-0.0.2.tar.gza52:wget http://liba52.sourceforge.net/files/a52dec-0.7.4.tar.gzfdk-aac:wget http://superb-dca3.dl.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-0.1.3.tar.gzopencore-amr:wget http://hivelocity.dl.sourceforge.net/project/opencore-amr/opencore-amr/opencore-amr-0.1.3.tar.gzffmpeg 2.2.3:wget http://ffmpeg.org/releases/ffmpeg-2.2.3.tar.gz配置PKG CONFIG路徑,主要是安裝libass時會出現Package libass was not found in the pkg-config search path.Perhaps you should add the directory containing `libass.pc'to the PKG_CONFIG_PATH environment variable的錯誤。[root@localhost ffmpeg]#vi /etc/profile添加下面幾行:PKG_CONFIG=/usr/bin/pkg-configPKG_CONFIG_PATH=/usr/local/lib/pkgconfigexport PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL java_HOME JRE_HOME CLASSPATH PKG_CONFIG PKG_CONFIG_PATH #注:后面兩個變量是新添加的保存退出。[root@localhost ffmpeg]#source /etc/profile[root@localhost ffmpeg]#cd faac-1.28[root@localhost ffmpeg]#./bootstrap[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install出現錯誤: g++: not found解決方法:yum install gcc+ gcc-c++make出現錯誤:mpeg4ip.h:126: error: new declaration ‘char* strcasestr(const char*, const char*)’解決方法:vim faac-1.28/common/mp4v2/mpeg4ip.h從123行開始修改此文件mpeg4ip.h,到129行結束。修改前:#ifdef __cplusplusextern "C" {#endifchar *strcasestr(const char *haystack, const char *needle);#ifdef __cplusplus}#endif修改后:#ifdef __cplusplusextern "C++" {#endifconst char *strcasestr(const char *haystack, const char *needle);#ifdef __cplusplus}#endif接著安裝[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd lame-3.99.5[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd libogg-1.3.2[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd libtheora-1.1.1[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared*** Could not run Ogg test program, checking why...*** The test program compiled, but did not run. This usually means*** that the run-time linker is not finding Ogg or finding the wrong*** version of Ogg. If it is not finding Ogg, you'll need to set your*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point*** to the installed location Also, make sure you have run ldconfig if that*** is required on your system****** If you have an old version installed, it is best to remove it, although*** you may also be able to get things to work by modifying LD_LIBRARY_PATHconfigure: error: libogg is required to build this package! please see http://www.xiph.org/ for how to obtain a copy. 明明安裝了ogg但theora卻認為咱們沒安裝。原因在哪里,當然是動態庫的查找路徑了,我的解決辦法是在 /etc/ld.so.conf.d/目錄下創建一個名為local-libraries.conf的文件,內容很簡單,只有一行:/usr/local/lib然后執行ldconfig -v [root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd libvorbis-1.3.4[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd vo-aacenc-0.1.3[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd xvidcore-1.3.3/build/generic[root@localhost ffmpeg]#./configure --prefix=/usr/local/[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ../../../[root@localhost ffmpeg]#cd yasm-1.2.0[root@localhost ffmpeg]#./configure --prefix=/usr/local/[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd x264-snapshot-20140618-2245[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared --enable-pic[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd libraw1394-2.0.5[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd libdc1394-2.2.1[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd libfreetype2-master[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd fribidi-0.19.6[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd fontconfig-2.11.1[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared --enable-libxml2[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd libass-0.10.2[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install如果出現下面的錯誤:../libass/.libs/libass.so: undefined reference to `libiconv'../libass/.libs/libass.so: undefined reference to `libiconv_close'../libass/.libs/libass.so: undefined reference to `libiconv_open'collect2: ld returned 1 exit statusmake[2]: *** [test] Error 1make[2]: Leaving directory `/root/tools/ffmpeg/libass-0.10.2/test'make[1]: *** [all-recursive] Error 1make[1]: Leaving directory `/root/tools/ffmpeg/libass-0.10.2'make: *** [all] Error 2執行下面的配置命令[root@localhost ffmpeg]#PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ ./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd rtmpdump-2.3[root@localhost ffmpeg]#make SYS=posix[root@localhost ffmpeg]#make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd speex-1.2rc1[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared --enable-sse[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd twolame-0.3.13[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd libdts-0.0.2[root@localhost ffmpeg]#./configure --prefix=/usr/local --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd a52dec-0.7.4[root@localhost ffmpeg]#./configure --prefix=/usr/local[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd faad2-2.7[root@localhost ffmpeg]#./configure --prefix=/usr/local --with-mp4v2 --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd amrwb-11.0.0.0[root@localhost ffmpeg]#./configure --prefix=/usr/local --enable-shared如果配置時出現:configure: error: You need patch utility to prepare sources.執行下面命令yum -y install patch然后重新執行./configure --prefix=/usr/local --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd amrnb-11.0.0.0[root@localhost ffmpeg]#./configure --prefix=/usr/local --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd opencore-amr-0.1.3[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]# make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd fdk-aac-0.1.3[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-shared[root@localhost ffmpeg]#make && make install[root@localhost ffmpeg]#cd ..[root@localhost ffmpeg]#cd ffmpeg-2.2.3[root@localhost ffmpeg]#LD_LIBRARY_PATH=/usr/local/include[root@localhost ffmpeg]#./configure --prefix=/usr/local/ --enable-gpl --enable-version3 --enable-nonfree /--enable-shared --enable-zlib --enable-bzlib --enable-libfaac --enable-libmp3lame /--enable-libtheora --enable-libvo-aacenc --enable-libvorbis --enable-libx264 /--enable-libxvid --enable-pthreads --enable-libdc1394 --enable-libass --enable-pic /--enable-openssl --enable-libtwolame --enable-libspeex --enable-librtmp --enable-libfreetype /--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-avisynth --enable-fontconfig /--enable-libfdk-aac --enable-rpath --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --extra-libs=-liconv--extra-libs=-liconv是在出現找不到libiconv庫錯誤時加上去的[root@localhost ffmpeg]#make && make install

所需包可以到這里下載http://www.kuaipan.cn/file/id_157354068283490498.htm


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
亚洲香蕉成人av网站在线观看_欧美精品成人91久久久久久久_久久久久久久久久久亚洲_热久久视久久精品18亚洲精品_国产精自产拍久久久久久_亚洲色图国产精品_91精品国产网站_中文字幕欧美日韩精品_国产精品久久久久久亚洲调教_国产精品久久一区_性夜试看影院91社区_97在线观看视频国产_68精品久久久久久欧美_欧美精品在线观看_国产精品一区二区久久精品_欧美老女人bb
国产精品一久久香蕉国产线看观看| 日本成人在线视频网址| 最近中文字幕日韩精品| 亚洲欧美日韩在线一区| 国产精自产拍久久久久久蜜| 最近2019年日本中文免费字幕| 国产美女高潮久久白浆| 中日韩午夜理伦电影免费| 国a精品视频大全| 日韩综合中文字幕| 国产suv精品一区二区三区88区| 亚洲欧美日本伦理| 亚洲欧美制服丝袜| 影音先锋欧美在线资源| 日韩精品丝袜在线| 亚洲精品aⅴ中文字幕乱码| 国产美女久久精品| 国产午夜精品免费一区二区三区| 中文字幕视频在线免费欧美日韩综合在线看| 91精品久久久久| 国产男女猛烈无遮挡91| 91精品视频一区| 亚洲自拍欧美色图| 欧美日韩激情美女| 91精品视频在线免费观看| 国产精品99久久久久久人| 国产丝袜一区二区三区| 欧美亚洲在线播放| 国产黑人绿帽在线第一区| 亚洲精品久久久久久久久久久久久| 色yeye香蕉凹凸一区二区av| 日韩中文字幕精品视频| 日韩成人av一区| 亚洲最大激情中文字幕| 黑人狂躁日本妞一区二区三区| 日韩av网站电影| 国产精品444| 亚洲成人激情在线| 久久久噜久噜久久综合| 亚洲的天堂在线中文字幕| 亚洲v日韩v综合v精品v| 国产欧美日韩丝袜精品一区| 欧美最猛性xxxxx免费| 亚洲国产精品嫩草影院久久| 国产男人精品视频| 欧洲美女7788成人免费视频| 欧美成人在线影院| 69av视频在线播放| 综合国产在线视频| 欧美高清第一页| 欧美大全免费观看电视剧大泉洋| 日韩av在线一区二区| 欧美成aaa人片在线观看蜜臀| 精品久久久久久久中文字幕| 欧美福利视频在线观看| 国产视频精品久久久| 欧美另类极品videosbest最新版本| 97精品国产97久久久久久免费| 夜夜狂射影院欧美极品| 日韩欧美高清视频| 26uuu亚洲伊人春色| 国产成人亚洲综合青青| 国产精品视频在线播放| www.日韩系列| 久久91亚洲精品中文字幕| 国产精品成人久久久久| 久久99精品久久久久久青青91| 久久精品视频一| www.日韩av.com| 欧美野外猛男的大粗鳮| 欧美精品久久久久久久久久| 国产69久久精品成人看| 欧美一区深夜视频| 亚洲午夜未满十八勿入免费观看全集| 欧美性视频精品| 中文字幕精品视频| 日本视频久久久| 国产精品小说在线| 国内成人精品一区| 中文字幕久久久| 高清欧美性猛交xxxx黑人猛交| 久久久久久久久久久久久久久久久久av| 欧美精品做受xxx性少妇| 欧美极品xxxx| 日本三级韩国三级久久| 丁香五六月婷婷久久激情| 亚洲成人久久久久| 色在人av网站天堂精品| 国产精品无码专区在线观看| 日韩不卡中文字幕| 国产成人中文字幕| 久久综合电影一区| 亚洲一区二区日本| 91久久久国产精品| 亚洲天堂视频在线观看| xxx欧美精品| 91精品啪aⅴ在线观看国产| 欧美影院在线播放| 久久人91精品久久久久久不卡| 欧美孕妇与黑人孕交| 日韩电影大全免费观看2023年上| 国内精品一区二区三区| 中文亚洲视频在线| 亚洲色图欧美制服丝袜另类第一页| 国产色综合天天综合网| 欧美高清视频在线观看| 亚洲91av视频| 欧美亚洲视频一区二区| 久久色精品视频| 国产免费一区二区三区在线观看| 欧美肥老太性生活视频| 在线观看91久久久久久| 亚洲无av在线中文字幕| 国产亚洲xxx| 久久久人成影片一区二区三区观看| 精品福利在线视频| 亚洲精品一区二三区不卡| 亚洲美女在线观看| 中文字幕日韩视频| 久久久精品999| 在线精品高清中文字幕| 亚洲精品久久久一区二区三区| 久久久久免费视频| 精品福利免费观看| 中文字幕国产亚洲| 欧美日韩国产丝袜美女| 5278欧美一区二区三区| 久久99国产精品自在自在app| 亚洲欧美激情精品一区二区| 亚洲欧美www| 成人精品在线观看| 国产99在线|中文| 在线视频欧美日韩精品| 亚洲欧美日韩国产中文| 欧美二区乱c黑人| 最近2019中文免费高清视频观看www99| 亚洲伦理中文字幕| 亚洲精品久久久久久久久久久久| 日韩成人网免费视频| 国产97在线视频| 日韩亚洲第一页| 久久777国产线看观看精品| 国产精品视频中文字幕91| 成人免费大片黄在线播放| 亚洲第一精品夜夜躁人人爽| 国产欧美一区二区白浆黑人| 欧美电影免费观看| 精品国产电影一区| 一本一道久久a久久精品逆3p| 97免费中文视频在线观看| 97久久超碰福利国产精品…| 亚洲无线码在线一区观看| 成人免费观看49www在线观看| 成人午夜小视频| 成人两性免费视频| 国产欧美精品久久久| 亚洲精品国产欧美| 日韩欧美国产骚| 国产精品1区2区在线观看| 亚洲精品98久久久久久中文字幕| 色婷婷av一区二区三区久久| 国内精久久久久久久久久人| 久久成人av网站| 欧美日韩国产一区中文午夜|