1.首先安装 SDL2 库
2. 在 ffmpeg源码中执行 ./configure 时并增加 --enable-sdl2
3. make && make install

[root@localhost ffmpeg]# cd /usr/local/ffmpeg/bin
[root@localhost bin]# ls
ffmpeg ffplay ffprobe