1.下载编译安装SDL

如果你需要用到ffplay, 需要再下载SDL的源码

http://libsdl.org/release/

可以下载最新的稳定版本,笔者下载的是:SDL2-2.0.12.tar.gz

tar zxvf SDL2-2.0.12.tar.gz

cd SDL2-2.0.12.tar.gz

./configure

make

make install

 

2.重新编译配置FFmpeg

 ./configure --enable-gpl --enable-sdl

make

sudo make install

3.执行

报错:

Could not initialize SDL - No available video device
(Did you set the DISPLAY variable?)

FFmpeg —— 3.源码编译安装(Linux带ffplay)

解决办法 

遇到上面问题,很有可能是通过Windows SSH连接虚拟机,建议:直接在 虚拟机或者Linux系统执行命令。

相关文章:

  • 2021-05-31
  • 2021-09-15
  • 2022-12-23
  • 2021-11-11
  • 2021-05-15
  • 2021-08-06
  • 2022-01-23
  • 2021-08-01
猜你喜欢
  • 2022-02-13
  • 2022-02-11
  • 2021-08-03
  • 2022-12-23
  • 2021-04-01
  • 2021-08-01
  • 2021-08-14
相关资源
相似解决方案