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

问题描述 投票:9回答:3

我已经下载了FFMPEG,启用了支持FFPLAY的代码:https://github.com/cus/ffplay

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

./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软件包。实际上是什么问题。有人可以指导我完成这个。

video ffmpeg
3个回答
14
投票

在ubuntu 13.04中,这是如何安装qazxsw poi:

sudo apt-get install libsdl1.2-dev

sudo apt-get install libsdl2-dev#16.04及以上libsdl-dev

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

https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

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

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

2
投票

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

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

在我的情况下(Linux Mint 18),我得到以下内容:

ffplay_deps ='avcodec avformat swscale swresample sdl2'

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

grep ffplay_deps ffbuild/config.log

所以你会得到类似的东西:

程式: ffmpeg ffplay ffprobe


1
投票

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

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

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

© www.soinside.com 2019 - 2024. All rights reserved.