ffmpeg php linux,linux(php环境) 安装ffmpeg
實現上傳視頻獲取視頻的第一幀當做視頻封面
1、安裝ffmpeg
ffmpeg的下載鏈接??https://ffmpeg.org/download.html
解壓安裝包
tar -jxvf ffmpeg-4.0.tar.bz2
進入目錄
cd?ffmpeg-4.0
編譯安裝
./configure --enable-shared && make && make install
安裝完成之后 執行 ffmpeg
如果能夠出現類似下列信息,說明ffmpeg安裝成功。
ffmpeg version 4.0 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 4.4.7 (GCC) 20120313 (Red Hat 4.4.7-18)
configuration: --enable-shared
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.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'
如果出現:
ffmpeg: error while loading shared libraries: libavdevice.so.52: cannot open shared object file: No such file or directory
編輯這個文件? ? vim /etc/ld.so.conf
加上
include ld.so.conf.d/*.conf
/usr/local/ffmpeg-4.0
執行ldconfig
再次輸入?ffmpeg
以上就是我遇到的問題 并解決
總結
以上是生活随笔為你收集整理的ffmpeg php linux,linux(php环境) 安装ffmpeg的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 32岁“暮光女”小k秀公开照 超短上衣秀
- 下一篇: 老外评粉丝最多的五位女性游戏角色 蒂法、