Install `ffplay` from the `ffmpeg` package. #6880

Closed
TooTallNate opened this Issue Aug 8, 2011 · 11 comments

Projects

None yet

5 participants

@TooTallNate

When you do brew install ffmpeg, it installs: ffmpeg, ffprobe, and ffserver. Missing from this list is ffplay. Can this be fixed? Thanks in advance!

@Sharpie
Contributor
Sharpie commented Aug 8, 2011

Weird---I get a ffplay binary when I install ffmpeg. Which version of OS X are you using?

@TooTallNate

That's strange... I'm on lion now, but this definitely was happening to me on my old computer as well, which had snow leopard. I had to keep a separate dir of the compiled ffmpeg sources to use 'ffplay'.

Sent from my iPhone

On Aug 8, 2011, at 7:01, Sharpiereply@reply.github.com wrote:

Weird---I get a ffplay binary when I install ffmpeg. Which version of OS X are you using?

Reply to this email directly or view it on GitHub:
#6880 (comment)

@Sharpie
Contributor
Sharpie commented Aug 8, 2011

What did you have to do in that second directory to get ffplay?

@TooTallNate

hhhmmm... apparently my formula was super old, back from 0.6 ffmpeg. After updating the formula, removing the old ffmpeg, and trying to install the current version (0.8), I run into other problems (see #6318). However, I'll bet that once I figure it out i'll be all good... closing for now...

@TooTallNate TooTallNate closed this Aug 8, 2011
@TooTallNate TooTallNate reopened this Nov 8, 2011
@TooTallNate

So I'm still not getting a ffplay binary installed after running brew install ffmpeg. This is on Lion after a clean reformatting.

Here's the output of the installed ffmpeg, though there is no ffplay binary:

~ (master) $ ffmpeg
ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct 25 2011 15:13:43 with gcc 4.2.1 (Apple Inc. build 5666) (dot 3)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/0.8.5 --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --cc=/usr/bin/gcc-4.2 --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid
  libavutil    51.  9. 1 / 51.  9. 1
  libavcodec   53.  7. 0 / 53.  7. 0
  libavformat  53.  4. 0 / 53.  4. 0
  libavdevice  53.  1. 1 / 53.  1. 1
  libavfilter   2. 23. 0 /  2. 23. 0
  libswscale    2.  0. 0 /  2.  0. 0
  libpostproc  51.  2. 0 / 51.  2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'~ (master) $ ls /usr/local/Cellar/ffmpeg/0.8.5/bin/
ffmpeg*  ffprobe*  ffserver*~ (master) $ ls -l /usr/local/bin/ff*
lrwxr-xr-x 1 nrajlich wheel 33 Oct 25 15:13 /usr/local/bin/ffmpeg -> ../Cellar/ffmpeg/0.8.5/bin/ffmpeg*
lrwxr-xr-x 1 nrajlich wheel 34 Oct 25 15:13 /usr/local/bin/ffprobe -> ../Cellar/ffmpeg/0.8.5/bin/ffprobe*
lrwxr-xr-x 1 nrajlich wheel 35 Oct 25 15:13 /usr/local/bin/ffserver -> ../Cellar/ffmpeg/0.8.5/bin/ffserver*

Could this be looked into? Thanks again!

@mistydemeo
Contributor

Do you have SDL installed? I think ffplay only builds if the SDL library is available.

@TooTallNate

Thanks @mistydemeo, this did the trick:

  1. brew install sdl --use-gcc
  2. brew uninstall ffmpeg
  3. brew install ffmpeg --use-gcc

Closing...

@TooTallNate TooTallNate closed this Nov 8, 2011
@Sharpie
Contributor
Sharpie commented Nov 9, 2011

Added a --with-ffplay option in cdcb773 that should take the guesswork out of knowing when installing FFmpeg will build ffplay.

@Sharpie Sharpie added a commit to Sharpie/homebrew that referenced this issue Sep 12, 2012
@Sharpie Sharpie FFmpeg: Add option to build ffplay
The ffplay binary is only built by default if SDL is present---which made
obtaining it a hit-and-miss operation for some users. A new option,
`--with-ffplay`, has been added that will cause ffplay to be built.

ffplay will be explicitly disabled if the option is not invoked.

Fixes #6880.
c1afac6
@snakeyroc3 snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012
@Sharpie Sharpie FFmpeg: Add option to build ffplay
The ffplay binary is only built by default if SDL is present---which made
obtaining it a hit-and-miss operation for some users. A new option,
`--with-ffplay`, has been added that will cause ffplay to be built.

ffplay will be explicitly disabled if the option is not invoked.

Fixes #6880.
71708bb
@jiaaro
jiaaro commented Dec 19, 2013

For me, ffplay is still not being installed:

$ brew install ffmpeg --enable-libvorbis --enable-ffplay --enable-libfaac --enable-libmp3lame --enable-libtheora

output:

Warning: No developer tools installed.
You should install the Command Line Tools.
Run `xcode-select --install` to install them.
==> Downloading http://ffmpeg.org/releases/ffmpeg-1.2.4.tar.bz2
######################################################################## 100.0%
==> Patching
patching file libavfilter/vf_drawtext.c
==> ./configure --prefix=/usr/local/Cellar/ffmpeg/1.2.4 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-avresample --ena
==> make install
[beer unicode character]  /usr/local/Cellar/ffmpeg/1.2.4: 147 files, 26M, built in 3.5 minutes

This yields a working ffmpeg, ffprobe, and ffserver, but no ffplay to be found.

I have installed SDL as mentioned earlier in this thread, but to no avail.

I'm on home-brew version 0.9.5.

Additional note: Despite home-brew's complaints, I do have the command line tools installed, I suspect they're just not the same version as Xcode:

$  gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin13.0.0
Thread model: posix
@MikeMcQuaid
Member

That's not the command line tools, that's the Xcode tools. See if xcode-select --install fixes things. Also, you specified --enable-ffplay rather than --with-ffplay which is the correct option.

@jiaaro
jiaaro commented Dec 19, 2013

@mikemcquaid oh hell, I had the wrong flag – using --with-ffplay fixed it.

Thanks for your help!

PS - I installed the command line tools when I had Xcode 4, I've since installed Xcode 5 and it is now complaining that I don't have them, but things compile fine. running xcode-select --install goes through the normal Terms and conditions stuff and eventually shows a dialog saying "Can't install the software because it is not currently available from the Software Update server."

but again, I've installed the command line tools before, and other than the homebrew warning, everything works fine :)

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.