Zax
Zax

Reputation: 3010

FFMPEG: FFPLAY binary not getting generated on compilation

I have downloaded FFMPEG with FFPLAY enabled code from: https://github.com/cus/ffplay

I use the following command to configure and make the package:

./configure --enable-ffplay
make

Here it shows that: SDL support no as one of the outputs. But i have sdl packages installed in my system.

However, the packages created are:

ffmpeg
ffmpeg_g
ffserver
ffserver_g
ffprobe
ffprobe_g

I have referred this post : http://ffmpeg-users.933282.n4.nabble.com/Compiling-FFMPEG-with-ffplay-support-td3414041.html But this didn't help out.

I checked my config.log, it has the below lines:

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

I have the sdl packages installed in my system. What is the issue actually. Could anyone please guide me through this.

Upvotes: 19

Views: 28490

Answers (3)

rkachach
rkachach

Reputation: 17345

I ran in the same problem, as pointed by other answers in general it's due to the lack of some dependency. You can check your ffplay dependencies by running:

grep ffplay_deps ffbuild/config.log

In my case (Linux Mint 18) I get the following:

ffplay_deps='avcodec avformat swscale swresample sdl2'

So you have to install all the listed libraries/dependencies. In my particular case I had to install libsdl2-dev in order to fix the problem. If everything is Ok ffplay must appear in the configured programs. You can check this easily by running:

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

So you get something like:

Programs:
ffmpeg ffplay ffprobe

Upvotes: 11

Fredrik Pihl
Fredrik Pihl

Reputation: 45662

In ubuntu 13.04, this is howto install libsdl-dev:

sudo apt-get install libsdl1.2-dev

sudo apt-get install libsdl2-dev # 16.04 and up https://trac.ffmpeg.org/wiki/CompilationGuide/Ubuntu

One way to check if the dev-package is installed is to see if the following binary is installed:

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

And, consider to use the official git-repo:

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

Upvotes: 19

Dang_Ho
Dang_Ho

Reputation: 351

I was spent 2 weeks to install newest version ffmpeg 2.8.11. This version is used for Ubuntu 16.04. I advise you should install this version. I tested on Ubuntu 12.04 and Ubuntu 14.04 and it worked well. You can install libav-tools like directions above but you will have a problem about compatibility. Because libav-tools and ffmpeg now was developed by two different group. Following my directions. If you have any problem can sent me via an email: [email protected]

$ 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

Check ffmpeg, ffserver, ffplay, ffprobe in terminal. Good luck

Upvotes: 1

Related Questions