linux ffmpeg安装h264库压缩转码

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#yasm
 
wget http://www.tortall.net/projects/yasm/releases/yasm-1.3.0.tar.gz
 
tar zxvf yasm-1.3.0.tar.gz
 
cd yasm-1.3.0
 
./configure
 
make
 
make install
 
 
#264安装
wget https://code.videolan.org/videolan/x264/-/archive/master/x264-master.zip
 
cd x264-master/
 
./configure --enable-shared --enable-static --disable-asm
 
make
 
make install
#路径在:/usr/local/x264/
 
 
#ffmpeg
git clone https://github.com/FFmpeg/FFmpeg.git
 
./configure --enable-gpl --enable-libx264
 
make
 
make install
 
#安装目录
/usr/local/bin/ffmpeg -version
 
#
vi /etc/profile
#最后一行添加上
export PATH=$PATH:/usr/local/bin/ffmpeg/bin
 
source /etc/profile
#执行
ffmpeg -version

  

posted on   studyphp  阅读(223)  评论(0编辑  收藏  举报

相关博文:
阅读排行:
· 微软正式发布.NET 10 Preview 1:开启下一代开发框架新篇章
· 没有源码,如何修改代码逻辑?
· NetPad:一个.NET开源、跨平台的C#编辑器
· PowerShell开发游戏 · 打蜜蜂
· 凌晨三点救火实录:Java内存泄漏的七个神坑,你至少踩过三个!

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

统计

点击右上角即可分享
微信分享提示