下载源码
1 | git clone https://github.com/FFmpeg/FFmpeg.git --depth=1 |

分析:yasm是汇编编译器,ffmpeg为了提高效率使用了汇编指令,如MMX和SSE等。所以系统中未安装yasm时,就会报上面错误。
解决:安装yasm编译器。安装方法如下:
1 | sudo dnf install yasm |
1 | ./configure |
ffplay安装
1 | wget http://www.libsdl.org/release/SDL2-2.0.9.tar.gz |
ffplay
1 | could not initialize sdl - no available video device (did you set the display variable ) |
1 | ffplay -x (width) -y(height) xxxx |