Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FFMPEG: FFPLAY binary not getting generated on compilation

Tags:

video

ffmpeg

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.

like image 249
Zax Avatar asked Dec 06 '13 10:12

Zax


2 Answers

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
like image 97
Fredrik Pihl Avatar answered Sep 20 '22 13:09

Fredrik Pihl


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

like image 32
rkachach Avatar answered Sep 20 '22 13:09

rkachach