FFMPEG:编译时不生成FFPLAY二进制文件

时间:2013-12-06 10:51:23

标签: video ffmpeg

我已经从FF https://github.com/cus/ffplay

下载了支持FFPLAY的FFMPEG代码

我使用以下命令配置和制作包:

./configure --enable-ffplay
make

这里显示: SDL support no 作为产出之一。但是我的系统中安装了sdl软件包。

但是,创建的包是:

ffmpeg
ffmpeg_g
ffserver
ffserver_g
ffprobe
ffprobe_g

我已经提到过这篇文章:http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFMPEG-with-ffplay-support-td3414041.html但这并没有帮助。

我检查了我的config.log,它有以下几行:

ffplay='yes'
ffplay_deps='avcodec avformat swscale swresample sdl'
ffplay_select='rdft crop_filter'

我的系统中安装了sdl软件包。实际上是什么问题。任何人都可以指导我完成这个。

3 个答案:

答案 0 :(得分:14)

在ubuntu 13.04中,这是如何安装libsdl-dev

sudo apt-get install libsdl1.2-dev

sudo apt-get install libsdl2-dev#16.04及以上https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

检查dev-package是否已安装的一种方法是查看是否安装了以下二进制文件:

$ which sdl-config 
/usr/bin/sdl-config

并且,考虑使用官方的git-repo:

git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg

答案 1 :(得分:1)

我花了两周时间安装最新版本的ffmpeg 2.8.11。此版本用于Ubuntu 16.04。我建议你应该安装这个版本。我在Ubuntu 12.04和Ubuntu 14.04上进行了测试,效果很好。你可以像上面的说明一样安装libav-tools,但是你会遇到兼容性方面的问题。因为libav-tools和ffmpeg现在是由两个不同的小组开发的。 按照我的指示。如果您有任何问题可以通过电子邮件发送给我:hohaidang.khtn@gmail.com

$ sudo apt-get update
$ sudo apt-get -y install build-essential checkinstall git libfaac-dev libgpac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev librtmp-dev libtheora-dev libvorbis-dev pkg-config texi2html yasm zlib1g-dev  libavcodec-extra-53
$ sudo apt-get -y install autoconf automake build-essential libass-dev libfreetype6-dev libtool libva-dev libvdpau-dev libvorbis-dev libxcb1-dev libxcb-shm0-dev libxcb-xfixes0-dev pkg-config texinfo zlib1g-dev
$ sudo apt-get install libdc1394-22 libdc1394-22-dev libgsm1 libgsm1-dev libopenjpeg-dev libschroedinger-1.0-0 libschroedinger-dev libschroedinger-doc libspeex-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libsdl1.2-dev libtheora-dev libvorbis-dev libx11-dev libxfixes-dev libxvidcore-dev libx264-dev
$ wget https://www.ffmpeg.org/releases/ffmpeg-2.8.11.tar.xz
$ tar xf ffmpeg-2.8.11.tar.xz
$ cd ffmpeg-2.8.11/
./configure --enable-gpl --enable-version3 --enable-nonfree --enable-postproc --enable-x11grab --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libdc1394 --enable-libfaac --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libxvid --disable-yasm // disable yasm if you are using Ubuntu 12.04, if not --enable-yasm
$ make
$ sudo make install

检查终端中的ffmpeg,ffserver,ffplay,ffprobe。 祝你好运

答案 2 :(得分:1)

我遇到了同样的问题,正如其他答案一般所指出的,这是由于缺乏依赖性。您可以通过运行以下命令检查ffplay依赖项:

grep ffplay_deps ffbuild/config.log

就我而言(Linux Mint 18),我得到以下信息:

  

ffplay_deps ='avcodec avformat swscale swresample sdl2'

因此,您必须安装所有列出的库/依赖项。在我的特定情况下,我必须安装libsdl2-dev才能解决此问题。如果一切正常,则ffplay必须出现在配置的程序中。您可以通过运行以下命令轻松检查此问题:

./configure --enable-ffplay | grep "Programs:" -A1

所以您得到类似的东西:

  

程序:
  ffmpeg ffplay ffprobe

相关问题