ffmpeg h265

最新版本的ffmpeg 支持 libh265,但是还是初级测试阶段

在linux 上安装ffmpeg 支持h265编码器按照以下步骤:

Anyhow here are the simple steps:

1. Make sure you have a current build of ffmpeg checked out of git along with any other libs you are using e.g. libx264

2. Download the libx265 repository and build as per the instructions here: https://bitbucket.org/multicoreware/x265/wiki/Home (note I assume no one still uses Windows for dev!)

hg clone https://bitbucket.org/multicoreware/x265
cd x265/build/linux
./make-Makefiles.bash
make
make install

3. On your ffmpeg configure it with –enable-libx265 (it is disabled by default). Sample from my configure below

./configure --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid --enable-libvidstab --enable-libx265
make
make install

我做测试的时候用的是windows系统,从官网下载最新版本它就支持

ffmpeg -i d:\soft\720p.mp4 -c:v libx265 -b:v 2000k d:\soft\myvideo.mkv
 测试视频 新警察故事2013 1280*720高清 540m(其中一部分);转换后mkv文件 1280*720高清 313m

如下截图



原视频



对比图







编码区别:

 音频编码:

      


视频编码:

 


下一步考虑 h265 播放器,用rtmp 协议播放h265 视频,希望得到技术指导



评论 10
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值