1,下載LAME(Lame Aint an MP3 Encoder)
http://sourceforge.net/project/showfiles.php?group_id=290&package_id=309
我下載的是:lame-3.97.tar.gz
2,下載xvidcore
http://downloads.xvid.org/downloads/xvidcore-1.1.3.tar.gz
我下載的是:xvidcore-1.1.3.tar.gz
3,ogg vorbis,這個一般redhat有,可以到/usr/lib/libvorbis.a在不在。如果不在,安裝它。
支持Ogg Vorbis:
as4自带相应的rpm包,你可以安装一下如下rpm包
libvorbis, libvorbis-devel,libogg, libogg-devel
http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
4,下載X264
官網:http://x264.nl/
http://www.videolan.org/developers/x264.html
去它的FTP上下載。
5,下載libdts
http://down1.chinaunix.net/distfiles/libdts-0.0.2.tar.gz
http://download.videolan.org/pub/videolan/libdca/0.0.2/libdca-0.0.2.tar.gz
6,下載a52dec
http://liba52.sourceforge.net/
7,下載FAAD2 和FAAC
http://www.audiocoding.com/downloads.html
開始安裝那些codec
1,安裝lame
tar -zxvf lame-3.97.tar.gz
cd lame-3.97
./configure --enable-shared --prefix=/usr
make
make install
安裝支持Ogg Vorbis:
as4自带相应的rpm包,你可以安装一下如下rpm包
libvorbis, libvorbis-devel,libogg, libogg-devel
http://downloads.xiph.org/releases/ogg/libogg-1.1.3.tar.gz
http://downloads.xiph.org/releases/vorbis/libvorbis-1.1.2.tar.gz
./configure --prefix=/usr
make
make install
2,安裝xvid
tar zvxf xvidcore-1.1.3.tar.gz
cd xvidcore-1.1.3/build/generic
./configure --prefix=/usr
make
make install
3,安裝x264
bunzip2 x264-snapshot-20070913-2245.tar.bz2
tar xvf x264-snapshot-20070913-2245.tar
./configure --prefix=/usr --enable-shared
make
make install
4,5.AC3和dts编码的支持
安裝libdts
#mv libdts-0.0.2.tar.tar libdts-0.0.2.tar.gz
tar zxvf libdts-0.0.2.tar.gz
cd libdts-0.0.2
./configure --prefix=/usr
make
make install
安裝a52
5,安裝mpg4 aac格式支持
安裝faad2
tar xvf faad2-2.5.tar.gz
faad2的2.5版本需要修改内置的configure.in文件,不然会在没有libbmp时编译会通不过.找到configure.in中下面一段:
引用
if test x$WITHBMP = xyes; then
AC_DEFINE([HAVE_BMP], 1, [User wants beep media player plugin built])
AM_CONDITIONAL([HAVE_XMMS], true)
AM_CONDITIONAL([HAVE_BMP], true)
fi
if test x$WITHDRM = xyes; then
改成
if test x$WITHBMP = xyes; then
AC_DEFINE([HAVE_BMP], 1, [User wants beep media player plugin built])
AM_CONDITIONAL([HAVE_XMMS], true)
AM_CONDITIONAL([HAVE_BMP], true)
else
AC_MSG_NOTICE(no bmp build configured)
AM_CONDITIONAL([HAVE_BMP], false)
fi
if test x$WITHDRM = xyes; then
FAAD2的编译
cd faad2
echo > plugins/Makefile.am
echo > plugins/xmms/src/Makefile.am
sed -i '/E_B/d' configure.in
autoreconf -vif
./configure --prefix=/usr --with-mp4v2 --enable-shared
make
make install
安裝faac
tar zxvf faac-1.25.tar.gz
cd faac
sed -i '/[2de].M/d' configure.in
echo "AC_OUTPUT(common/Makefile common/mp4v2/Makefile libfaac/Makefile frontend/Makefile include/Makefile Makefile)" >> configure.in
autoreconf -vif
./configure --prefix=/usr
make &&
make install
6,安裝3gp
先解壓ffmpeg,然後把下面解壓到ffmpeg的目錄下。
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.204/26204-510.zip
解压以后把里面的文件都拷贝到libavcodec/amrwb_float
wget http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-510.zip
解压以后把里面的文件都拷贝到libavcodec/amr_float
7,安裝ffmpeg
[root@localhost ffmpeg-checkout-2007-09-13]# ./configure --prefix=/usr --enable-gpl --enable-shared --enable-libmp3lame --enable-libogg --enable-libvorbis
--enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad -
-enable-libfaadbin --enable-pp --enable-pthreads --disable-ffserver --disable-ffplay
ERROR: liba52 not found
If you think configure made a mistake, make sure you are using the latest
version from SVN. If the latest version fails, report the problem to the
ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
需下載liba52
下載地址:
http://liba52.sourceforge.net/
[root@localhost ffmpeg-checkout-2007-09-13]# ./configure --prefix=/usr --enable-gpl --enable-shared --enable-libmp3lame --enable-libogg --enable-libvorbis
--enable-libamr-nb --enable-libamr-wb --enable-libxvid --enable-libx264 --enable-liba52 --enable-liba52bin --enable-libfaac --enable-libfaad -
-enable-libfaadbin --enable-pp --enable-pthreads --disable-ffserver --disable-ffplay
ERROR: libamrnb not found
If you think configure made a mistake, make sure you are using the latest
version from SVN. If the latest version fails, report the problem to the
ffmpeg-devel@mplayerhq.hu mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.err" produced by configure as this will help
solving the problem.
下载一个新的amr-nb,amr-wb包,是库文件,不是源码.
amr-wb:http://ftp.penguin.cz/pub/users/utx/amr/amrwb-7.0.0.1.tar.bz2
amr-nb:http://ftp.penguin.cz/pub/users/utx/amr/amrnb-6.1.0.4.tar.bz2
然后 configure make make install 就可以了.
終於成功了。
ffmpeg -i test.mpg -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 test.flv
ffmpeg -an -y -t 0:0:0.001 -i test.flv -f image2 test.jpg
ffmpeg的中文wiki:http://www.ffmpeg.com.cn/index.php/Ffmpeg%E5%BF%AB%E9%80%9F%E5%AE%89%E8%A3%85
ffmpeg在linux下java調用:http://hi.baidu.com/injava/blog/item/04580c4cbb32b1f9d72afcbb.html
分享到:
相关推荐
嵌入式linux下利用ffmpeg获取rtsp摄像头视频流并在网页上播放,包括html,cgi源码,ffmpeg移植源码。
UE5实时录屏插件,支持windows和Linux系统;使用FFmpeg库封装接口,代码实现;对于学习使用有参考意义
3. 编译ffmpeg并安装。 4. cmake / make 编译server目录下工程。 5. server/build/目录下启动 simple_web_server。 6. web-client 目录下文件放置到 emcc 环境用 emrun 启动8080侦听端口。 7. web游览器内输入 ...
主要展示了使用ffmpeg实现0延时rtsp,rtmp推流功能,以及flv视频流文件的存储 支持windows usb摄像机推流和linux嵌入式系统真实开发板的推流 深圳市好游科技同时提供超低延时(100-200毫秒)的rtsp,rtmp播放器 支持...
此外,MySQL支持多种操作系统,包括Windows、Linux、macOS、Solaris等,确保了其在不同环境下的兼容性和部署灵活性。 关系型模型与SQL支持 MySQL基于关系型数据库模型,数据以表格形式组织,并通过预定义的键(如...
毕设&课设&项目&实训-FFmpeg 基础API的使用 + 基于FFmpeg的播放器功能 (iOS Objective-C ). 【项目资源】: 包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、大数据、课程...
1.2 Linux系统的使用2 实验1.1 熟悉Linux基本命令与文件目录系统2 1.3 全屏幕编辑器与vi6 1.3.1 vi简介6 1.3.2 基本命令7 1.3.3 常用操作7 实验1.2 全屏幕编辑器vi的使用7 1.4 Linux Shell编程8 1.4.1 Shell...
1.2 Linux系统的使用2 实验1.1 熟悉Linux基本命令与文件目录系统2 1.3 全屏幕编辑器与vi6 1.3.1 vi简介6 1.3.2 基本命令7 1.3.3 常用操作7 实验1.2 全屏幕编辑器vi的使用7 1.4 Linux Shell编程8 ...
1.2 Linux系统的使用2 实验1.1 熟悉Linux基本命令与文件目录系统2 1.3 全屏幕编辑器与vi6 1.3.1 vi简介6 1.3.2 基本命令7 1.3.3 常用操作7 实验1.2 全屏幕编辑器vi的使用7 1.4 Linux Shell编程8 1.4.1 Shell...
包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【项目质量】: 所有源码都经过严格测试,可以直接运行。 功能在确认正常工作后才上传。 【适用人群】...
1.2 Linux系统的使用2 实验1.1 熟悉Linux基本命令与文件目录系统2 1.3 全屏幕编辑器与vi6 1.3.1 vi简介6 1.3.2 基本命令7 1.3.3 常用操作7 实验1.2 全屏幕编辑器vi的使用7 1.4 Linux Shell编程8 1.4.1 Shell...
FFmpeg is a complete solution to record, convert and stream audio and video.... FFmpeg is developed under Linux, but it can compiled under most operating systems, including Windows.
第一节:tslib1.0移植 第二节:QT4.7.0 在ARM平台移植 第三节:boa web服务器在PC上移植 第四节:boa web服务器在S3C2440开发板上移植 第五节:boa移植过程中出现的...第十二节:使用 busybox 制作 Linux 根文件系统
操作系统:LInux、IOS、树莓派、安卓开发、微机操作系统、网络操作系统、分布式操作系统等。此外,还有嵌入式操作系统、智能操作系统等。 网络与通信:数据传输、信号处理、网络协议、网络与通信硬件、网络安全网络...
毕设&课设&项目&实训-基于FFmpeg开发的视频处理框架,简单易用,体积小,帮助使用者快速实现视频处理功能。 【项目资源】: 包含前端、后端、移动开发、操作系统、人工智能、物联网、信息化管理、数据库、硬件开发、...
pi探索者用于Linux服务器的Web File Explorer UI安装它只是一个nodejs应用,因此在安装nodejs之后使用以下安装 npm install用法在服务器上启动程序 usage: node index.js -r {root_of_dir} -r: root_of_dir is the ...
包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【项目质量】: 所有源码都经过严格测试,可以直接运行。 功能在确认正常工作后才上传。 【适用人群】...
包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。【项目质量】:所有源码都经过严格测试,可以直接运行。功能在确认正常工作后才上传。【适用人群】:适用...
包括STM32、ESP8266、PHP、QT、Linux、iOS、C++、Java、python、web、C#、EDA、proteus、RTOS等项目的源码。 【项目质量】: 所有源码都经过严格测试,可以直接运行。 功能在确认正常工作后才上传。 【适用人群】...