1. 播放器的架構
2. 播放器的渲染流程
3. ffmpeg下載與安裝
3.0 查看PC是否已經安裝了ffmpeg
ffmpeg
3.1 下載
wget https://ffmpeg.org/releases/ffmpeg-7.0.tar.gz
3.2 解壓
tar zxvf ffmpeg-7.0.tar.gz && cd ./ffmpeg-7.0
3.3 查看配置文件
./configure --help
3.4查看配置文件中具體哪個配置項
./configure --list-encoders
3.5 設置配置文件
./configure --enable-shared --prefix=/usr/local/ffmpeg --disable-x86asm
3.6 編譯
make -j8
3.7 安裝
make install
3.8 指定動態庫所在位置
打開 【vim /etc/ld.so.conf】文件,輸入一下內容:
include ld.so.conf.d/*.conf
/usr/local/ffmpeg/lib/
輸入?ldconfig
?使修改生效。
3.9 配置環境變量
打開 【vim /etc/profile】文件,在文件末尾輸入一下內容:
export PATH=/usr/local/ffmpeg/bin:$PATH
輸入【source /etc/profile】??使配置生效。
實在不行關機重啟
3.10 驗證是否安裝成功【ffmpeg】
(base) lmz@ubuntu20:~/workspace$ ffmpeg
ffmpeg version 7.0 Copyright (c) 2000-2024 the FFmpeg developersbuilt with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.2)configuration: --enable-shared --prefix=/usr/local/ffmpeg --disable-x86asmlibavutil 59. 8.100 / 59. 8.100libavcodec 61. 3.100 / 61. 3.100libavformat 61. 1.100 / 61. 1.100libavdevice 61. 1.100 / 61. 1.100libavfilter 10. 1.100 / 10. 1.100libswscale 8. 1.100 / 8. 1.100libswresample 5. 1.100 / 5. 1.100
Universal media converter
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...Use -h to get full help or, even better, run 'man ffmpeg'
4. ffmpeg基本信息命令
5. ffmpeg的開發流程
?