[筆記] Ubuntu下編譯ffmpeg+openh264+x264

來源:互聯網
上載者:User

標籤:

[下載代碼] - ffmpeg: git clone git://source.ffmpeg.org/ffmpeg.git- openh264: git clone https://github.com/cisco/openh264.git- x264: git clone git://git.videolan.org/x264.git  [編譯 openh264] makesudo make install  [編譯 x264] ./configure --enable-sharedmake

sudo make install


[編譯 ffmpeg] 

./configure \
--enable-shared \
--enable-libopenh264 \
--enable-libx264 \
--enable-gpl \
--prefix=/usr/local/ffmpeg

 

[配置環境] cd /etc/ld.so.conf.d/
建立 ffmpeg.conf,寫入 "/usr/local/ffmpeg/lib"
sudo ldconfig
sudo ln -s /usr/local/ffmpeg/bin/ffmpeg /usr/local/bin/sudo ln -s /usr/local/ffmpeg/bin/ffprobe /usr/local/bin/sudo ln -s /usr/local/ffmpeg/bin/ffserver /usr/local/bin/  [驗證 ffmpeg] ffmpeg --help  [使用 ffmpeg] 使用 openh264 將 avi 視頻轉為 mp4 視頻:ffmpeg -y -i in.avi -vcodec libopenh264 out.mp4

[筆記] Ubuntu下編譯ffmpeg+openh264+x264

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.