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 視頻,希望得到技術指導



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章