更新ffmpeg

今天对公司线上的几台机器做了下ffmpeg的更新,没有什么技术含量,还是简单记录下,做个流水账~哈哈

软件包获取方式

官方网站:https://ffmpeg.org/download.html
github:https://github.com/FFmpeg/FFmpeg/releases

更新前版本确认

升级前确认版本信息 ==> 2.4

[[email protected] FFmpeg-n3.1.2]# ffmpeg -version|grep version
ffmpeg version 2.4 Copyright (c) 2000-2014 the FFmpeg developers
[[email protected] FFmpeg-n3.1.2]#

更新操作

下面以更新到3.1.2为例

1,安装新版本ffmpeg

wget https://github.com/FFmpeg/FFmpeg/archive/n3.1.2.tar.gz
tar xf n3.1.2.tar.gz
cd FFmpeg-n3.1.2
./configure --prefix=/usr/local/ffmpeg_3.1.2/ --enable-gpl --enable-shared --enable-libmp3lame --enable-libvorbis --enable-pthreads --disable-ffserver --enable-nonfree --enable-libx264 --enable-libfdk_aac --enable-decoder=png --enable-encoder=png --enable-libopencv
make
make install

安装之后的目录结构如下:

[[email protected] ~]# tree -L 1 /usr/local/ffmpeg_3.1.2/
/usr/local/ffmpeg_3.1.2/
├── bin
├── include
├── lib
└── share

4 directories, 0 files
[[email protected] ~]#

2,调整动态链接库

[[email protected] ~]# tail -1 /etc/ld.so.conf
/usr/local/ffmpeg_3.1.2/lib
[[email protected] ~]#

如果程序找不到动态链接库,会报类似下面的错误信息:

[[email protected] bin]# ffprobe
ffprobe: error while loading shared libraries: libavdevice.so.57: cannot open shared object file: No such file or directory
[[email protected] bin]#

3,删除之前的软链接并重新创建软链接

[[email protected] FFmpeg-n3.1.2]# which ffmpeg
/usr/local/bin/ffmpeg
[[email protected] FFmpeg-n3.1.2]# cd /usr/local/bin/
[[email protected] bin]# ll|grep ff
lrwxrwxrwx 1 root root 28 Oct 22 2015 ffmpeg -> /usr/local/ffmpeg/bin/ffmpeg
[[email protected] bin]# rm -f ffmpeg
[[email protected] bin]# ln -s /usr/local/ffmpeg_3.1.2/bin/ffmpeg .
[[email protected] bin]# ln -s /usr/local/ffmpeg_3.1.2/bin/ffprobe .
[[email protected] bin]# ll|grep ff
lrwxrwxrwx 1 root root 34 Mar 1 23:17 ffmpeg -> /usr/local/ffmpeg_3.1.2/bin/ffmpeg
lrwxrwxrwx 1 root root 35 Mar 1 23:17 ffprobe -> /usr/local/ffmpeg_3.1.2/bin/ffprobe
[[email protected] bin]#

版本验证

[[email protected] ~]# ffmpeg -version|grep version
ffmpeg version 3.1.2 Copyright (c) 2000-2016 the FFmpeg developers
[[email protected] ~]#  

ps:需要查看ffmpeg的详细信息可以使用ffmpeg -version或者直接使用ffmpeg命令进行查看

ffmpeg -version

[[email protected] bin]# ffmpeg -version
ffmpeg version 3.1.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
configuration: --prefix=/usr/local/ffmpeg_3.1.2/ --enable-gpl --enable-shared --enable-libmp3lame --enable-libvorbis --enable-pthreads --disable-ffserver --enable-nonfree --enable-libx264 --enable-libfdk_aac --enable-decoder=png --enable-encoder=png --enable-libopencv
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 47.100 / 6. 47.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
[[email protected] bin]#

ffmpeg

[[email protected] bin]# ffmpeg
ffmpeg version 3.1.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-11)
configuration: --prefix=/usr/local/ffmpeg_3.1.2/ --enable-gpl --enable-shared --enable-libmp3lame --enable-libvorbis --enable-pthreads --disable-ffserver --enable-nonfree --enable-libx264 --enable-libfdk_aac --enable-decoder=png --enable-encoder=png --enable-libopencv
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.101 / 57. 0.101
libavfilter 6. 47.100 / 6. 47.100
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run ‘man ffmpeg‘
[[email protected] bin]#

  

==== done ====

Good night.

时间: 2024-08-05 22:16:47

更新ffmpeg的相关文章

android开发开源宝贝——持续更新。。。

2016年11月11日更新 http://www.apkbus.com/forum-417-1.html http://p.codekk.com/detail/Android/hejunlin2013/LivePlayback www.codekk.com https://github.com/Trinea/android-open-project Android 开源项目分类汇总 我们的微信公众号:codekk.二维码如下: 专注于 Android 开源分享.源码解析.框架设计.Android

优秀的 Android 开源项目

摘要  转载http://www.trinea.cn/android/android-open-source-projects-view/,方便大家找到自己合适的资料 目录[-] 一.ListView 二.ActionBar 三.Menu 四.ViewPager .Gallery 五.GridView 六.ImageView 七.ProgressBar 八.其他 GitHub上优秀Android开源项目 3. Android开发神器 1.Xabber客户端 2.oschina客户端 3.手机安全

GitHub 优秀的 Android 开源项目

转自:http://blog.csdn.net/shulianghan/article/details/18046021 主要介绍那些不错个性化的View,包含ListView.ActionBar.Menu.ViewPager.Gallery.GridView.ImageView.ProgressBar及其它如Dialog.Toast.EditText.TableView.Activity Animation等等. 一.ListView android-pulltorefresh 一个强大的拉动

GitHub上最火的74个Android开源项目(收藏)

GitHub上最火的40个Android开源项目(一) GitHub上最火的40个Android开源项目(二) GitHub上最火的74个Android开源项目(三) GitHub上最火的40个iOS开源项目(一) GitHub上最火的40个iOS开源项目(二) GitHub在中国的火爆程度无需多言,越来越多的开源项目迁移到GitHub平台上.更何况,基于不要重复造轮子的原则,了解当下比较流行的Android与iOS开源项目很是必要.利用这些项目,有时能够让你达到事半功倍的效果. 下面,就让我们

gitHub优秀android项目

转自:http://blog.csdn.net/shulianghan/article/details/18046021 主要介绍那些不错个性化的View,包括ListView.ActionBar.Menu.ViewPager.Gallery.GridView.ImageView.ProgressBar及其他如Dialog.Toast.EditText.TableView.Activity Animation等等. 一.ListView android-pulltorefresh 一个强大的拉动

转__Android开源项目(三 完结篇)

http://www.csdn.net/article/2013-05-21/2815370-Android-open-source-projects-finale/1 截至目前,在GitHub“最受欢迎的开源项目”系列文章中我们已介绍了40个Android开源项目,对于如此众多的项目,你是Mark.和码友分享经验还是慨叹“活到老要学到老”?今天我们将继续介绍另外34个Android开源项目. 此前,CSDN移动频道推出的GitHub平台上“最受欢迎的开源项目”系列文章引发了许多读者的热议,在“

【转】GitHub 优秀的 Android 开源项目

转自:http://blog.csdn.net/shulianghan/article/details/18046021 主要介绍那些不错个性化的View,包括ListView.ActionBar.Menu.ViewPager.Gallery.GridView.ImageView.ProgressBar及其他如Dialog.Toast.EditText.TableView.Activity Animation等等. 一.ListView android-pulltorefresh 一个强大的拉动

[年终总结]这就是2016的我

这就是2016的我 ---每年的自己,也要审视一下,自己走过的路,是荆棘还是平川,审视自己走过的脚印.是深是浅;整理一下得失,是值是弃. 先整理一下这一年的学习. 基础部分 学校的自己,焊接电路板,手动焊接单片机最小系统,用matlab做个图像处理,用过传感器做比赛,用虚拟电子设备labview做过信号过滤转换,用汇编写写单片机的流水灯,只会简单的C,C++,然后写一个Helloworld, 用MFC写一写简单的图形界面.玩过linux,玩过android,玩过web.但也仅仅是玩玩,水平也仅限

GitHub 优秀Android 开源项目

阅读目录 1.Xabber客户端 2.oschina客户端 3.手机安全管家 4.星座连萌 5.玲闹铃 6.魔乐盒 7.PWP日历 8.Apollo音乐播放器 9.夏普名片识别 10.高仿人人网 11.简洁天气 12.高仿开心网 13.百度推聊 14.餐厅订餐 15.eoe客户端 16.饭否网客户端 17.imiPhoneWall 18.k9mail 19.MSD音乐 20.高仿爱奇艺 21.企信通 22.高仿生日管家 23.PM25 24.高仿陌陌 25.股民邦 26.CB资讯阅读 27.幽秘