FFmpeg - 3. source compiler installation (Linux with ffplay)

1. Download compile and install SDL

If you need to use ffplay, need to download the source code SDL

http://libsdl.org/release/

You can download the latest stable version, I downloaded: 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. Re-build configuration FFmpeg

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

make

sudo make install

3. Perform

Error:

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

Solution 

Experiencing the above problem, most likely via Windows SSH virtual machine, it is recommended: execute commands directly in a virtual machine or a Linux system.

Published 47 original articles · won praise 121 · views 680 000 +

Guess you like

Origin blog.csdn.net/guoyunfei123/article/details/105253239